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

Microsoft''s vc++, Microsoft's VC++ Windows V C++ was a highly effectiv...

Microsoft's VC++ Windows V C++ was a highly effective device. But it was too complicated. It has too many information kinds, and designers had to understand many your local lib

Scramble word game, The aims of this assignment are to:    Provide e...

The aims of this assignment are to:    Provide experience in the use of a modern Integrated Development Environment (specifically NetBeans running on a Linux platform) for t

Draw a use case diagram in uml for order book, SailDublin Ferry provides fe...

SailDublin Ferry provides ferries to mainland Britain, Europe and America. Having observed the success of Irish ferries and Stennaline online booking system; SailDublin ferry has d

Explain the use of sync and fsck, Problem 1 Define the architecture of ...

Problem 1 Define the architecture of UNIX operating system with appropriate diagram Problem 2 Define the term inter-process communication. What are several approaches t

Program for a simple search engine, Introduction A search engine (like ...

Introduction A search engine (like Google) has three main components: a crawler that finds and stores copies of files on the web, an indexer that creates a data structure that

Oracle , PLEASE HELP ME ORACLE PROGRAMING TRIGGER

PLEASE HELP ME ORACLE PROGRAMING TRIGGER

Silver light uses wpf to provide included web handles, Silver light uses WP...

Silver light uses WPF to provide included web handles Microsoft Technologies Silverlight uses WPF to provide included web handles similar to Adobe Display, but with more focus on a

Pseudocode for a program that reads a temperature, Write a pseudocode for a...

Write a pseudocode for a program that reads a temperature as a whole number from a user and outputs a “probable” season (winter, sprint, summer, or fall) depending on the temperatu

Oracle, What is "No_Data_Found" in Oracle?

What is "No_Data_Found" in Oracle?

Define remote procedure call, Problem: (i) Define Remote Procedure Cal...

Problem: (i) Define Remote Procedure Call (RPC). (ii) Explain with diagram how RPC works? (iii) A remote procedure is uniquely defined by (a) Program number. (b)

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