Write a program that asks users for their quiz scores, homework scores, midterm
ID: 3643964 • Letter: W
Question
Write a program that asks users for their quiz scores, homework scores, midterm scores, lab scores, and if they choose to, their final exam score From this the program calculates their class grade. If the user does not wish to include a final exam score then the total will be out of 80%. The program will read the number of tests, assignments, labs, and quizzes as command line inputs and then read the specific number of grades for each by prompting the user for the correct number of items. The user can supply these grades in any order. There are 5 quizzes, 8 homework assignments, 10 labs, and 2 midterms. The user may also choose to input their final exam score. The program should determine the average based on the following weights for each item which should be declared as constants.Labs = 10%
Quizzes = 15%
Assignments = 25%
Exams = 30%
Final = 20%