Answer all questions
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →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
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds