back to top
Assume MA University has employed you to write a program in Python that will ask a lecturer to enter a student’s marks for Assignment 1, Assignment 2, Assignment 3 and the Final Exam, one by one.
A lecturer is expected to enter a mark out of 100 for all assessment items. The weights of Assignment 1, Assignment 2, Assignment 3 and the Final Exam are 10%, 20%, 30% and 40%, respectively. The program needs to use the weights to calculate the weighted marks for the assessment items and the final mark for the subject.
The program should then display the weighted mark of each individual assignment, total weighted mark of the assignments, weighted mark for the Final Exam, and total weighted mark of the subject.
A weighted mark is calculated by multiplying the obtained mark and the weight of the assessment item. For exam