Write a perl script to assign letter grades to the students, Programming Languages

Tasks:

Write a Perl script assignGrades.pl to assign letter grades to the students.

Please use the classList2.txt file.

Upon invoking, the script will access the file classList2.txt, compute the total percentage score for every student, assign a letter grade according to the Letter Grades Map, and record them in the file grades in the following format.

         Student# Given Name   Family Name Course Grade

Additional Information about classList2.txt file:

1. A mark can be a nonnegative integer, or an x for excused, or an a for absent.

If a mark is a, it will be assumed to be 0 for all computational purposes.

If a mark is x, it will not be counted as part of the final grade. This means that the final grade will be determined on the basis of the rest of the marks, changing lab total and the maximum lab total accordingly.

2. Each student will receive a letter grade based on the student's total percentage score and assigned according to the Letter Grades Map specified in the classList2.txt. The total percentage score will be computed as follows:

totalPercent = ( labWeight * labTotalPercent + examWeight * examTotalPercent + finalWeight * finalPercent )

Where:

labTotalPercent = labTotal / labMaxTotal

labTotal = sum of all labs

labMaxTotal = sum of maximum points per lab

examTotalPercent = examTotal / examMaxTotal

examTotal = sum of all exams
examMaxTotal = sum of maximum points per exam                  

finalPercent = final / finalMax

(lab, exam, final)Weight = Percentage distribution (lab, Midterms, Final)

Ø  You can find the classList2.txt file in the /tmp/CPSC1280/Assignment2 directory.

B. Write a perl script called circle.pl which takes one number from the command line (representing the radius of a circle), the script then prints the circumference and area of the circle.   

This script should execute as follows (sample numbers)

prompt> circle.pl 4

The radius of circle is 4.

The circumference of the circle is 25.12

The area of the circle is 50.24

Deliverables:

Create two script files (assignGrade.pl and circle.pl)

Create document with the following information:

  1. Brief introduction.
  2. List of assumptions & limitations made during program design & coding.
  3. List of known bugs.

 

Posted Date: 3/26/2013 6:25:04 AM | Location : United States







Related Discussions:- Write a perl script to assign letter grades to the students, Assignment Help, Ask Question on Write a perl script to assign letter grades to the students, Get Answer, Expert's Help, Write a perl script to assign letter grades to the students Discussions

Write discussion on Write a perl script to assign letter grades to the students
Your posts are moderated
Related Questions
Advantages of asp.net mvc framework MVC is a conventional style design that many designers are acquainted with. Some kinds of Web programs will advantage from the MVC structur

Consider a system that has the following UML models: Use Case for CalculateTotalProjectCost Trigger: End of each month Normal Flow of Events For each project in the pro

write a procedure to add toolbar in VB application adding icons to toolbar buttons & with the approprite example display the use of each button

I need help putting this into a flowchart constant c as Integer = 3500 Constant CALORIESTOOUNCE as Integer = 219 Declare Sex as Character Declare Age as Integer Declare Weight as I

what is the optimal solution for this problem? Max 1A + 1B s.t. 5A +3B 3A + 5B A,B >0

You are to write a program that determines the day of the week for New Year's Day in the year 3000. To do this, you must create your own date class (MyDate) and use the following i

Write your own version of the strcmp function string_compare. Supply a main program that will test each of the 3 differing outcomes. int string_compare(char *s, char *t); retu

Question: (i) What is multithreaded programming? Lists the benefits achieved by multithreading your code in a program. (ii) What type of coding should be eliminated when d

I do have an assignment in operating systems programming ... how can i attach my file?

Write a Prolog predicate has_duplicates(L) that is true if list L contains duplicated elements (that is at least 2 copies of an element). For instance: ?- has_duplicates([a,e,b,