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

Assignment Help:

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.

 


Related Discussions:- Write a perl script to assign letter grades to the students

Arithmetic involving matrices, We next require taking a look at arithmetic ...

We next require taking a look at arithmetic involving matrices. We'll begin with addition and subtraction of two matrices. Therefore, assume that we have two n x m matrices, which

Shell script to compare that given two files are same or not, Normal 0 ...

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

C++, A charitable organization wants to design a special ATM machine to be ...

A charitable organization wants to design a special ATM machine to be used by needy people. The association supplies the needy person with a pin number to be able to use the ATM

Write out the syntax of nested if statements, Write out the Syntax of Neste...

Write out the Syntax of Nested if Statements? The universal form is                         If(expression 1)                         {

Hack winrar password, how to make a program using vb?seriously i don''t kno...

how to make a program using vb?seriously i don''t know

Develop a windows forms application, Develop a Windows Forms Application by...

Develop a Windows Forms Application by creating a new project named "xxxxxxxx" in a new folder named "xxxxxxxxas3" where xxxxxxxx is your student id. You should delete file(s) with

(l)unix commands, 1. Logon to Linux. 2. Create a directory ...

1. Logon to Linux. 2. Create a directory "Unix" under your home directory. Command(s): …………………………………………. 3. Create four sub-directories bin, conf, docs

Implement the control mechanism for the robot, You must implement the contr...

You must implement the control mechanism for the robot arm so that it can safely move the blocks from the source pile to their destination, without colliding with any obstacles or

Java source code classes and objects, Design and implement a stringed music...

Design and implement a stringed musical instrument class using the following guidelines: a. Data fields for your instrument should include number of strings, an array of stri

Programming code for supermarket software , The software development team i...

The software development team identified the following classes based on the analysis of given requirements: Product, Employee, ProductList, Supplier. 1.  Identify the relationsh

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd