Answer all questions
CPSC 442 – Assignment #2 Problem 1: Write a program to compute the grades of students. The test scores are to be read from a text file. Using Notepad, create a comma separated file with the data in it. Note that the data contains: firstname, lastname,id,test1,test2,final: The weight of the first test is 30%, the weight for second test is 30%, and the weight for the final is 40%. The grades breakdown is: >90% A 85% – 89.99% A80% – 84.99% B+ 70% – 79.99% B 60% – 69.99% C 50% – 59.99% D The compute grades are to be stored in an output file as: Id last name grade Problem 2: Write a program to compute the pay of Employees. The data is to be read from a file as: first name, last name, employee id, hours worked and pay rate You will write a function called compute_pay that will compute the pay of the employee. The pay is to be computed as hours worked multiplied by the pay rate if the number of hours worked is less than 40. If the number of hours worked is greater than 40, then the pay has to be 1.75 * pay_rate * hours_worked. The computed pay is to be stored in an output file as: Id last name pay
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.