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
Problem: This assignment is about deleting nodes from the binary search tree. You need to use given sequence to construct a binary search tree and then delete some nodes from

Expertsmind brings you unique solution in java assignments Packages A Java packages is a process for planning Java sessions into namespaces just like the segments of Modu

(a)  Create procedures for accessing the root, left subtree and right subtree, and also mutators for changing the root, left subtree and right subtree of an avl argument. (b) Wr

You need to create a simple application for the Note Plus book Store. The interface for the application is shown below:   REQUIRED: 1)  Create all necessary contro

You have been asked to set up a project plan for developing a mobile phone application for London Olympics. Major tasks include conducting some research into different mobile ph

Recent problems in finishing implementation: This mobile application is built with Sencha Touch framework. Source code is attached in this zip package. The daily rest calc

1. Write a program that figures out how long it will take to pay off a credit card by making payments of $10 each month. Take care to avoid infinite loops. (How would a bank preven

This section is proposed to be a catch all for several of the fundamental concepts which are used occasionally in working with systems of differential equations. There will not be

1.  Develop a Web page via href attribute of anchor tag and the attribute: vlink, alink, etc. 2.  Develop a Web page, in which when the user clicks on the link it will go to the

You have been employed by a bounty hunter to create hit list (yes... you better do this right). Create a Hit List program that can records the name, bounty, and difficulty for ten