Question
Write a python program with appropriate comments that will create a grade calculator for COMP 1411. The program should prompt the user to enter grades
Write a python program with appropriate comments that will create a grade calculator for COMP 1411. The program should prompt the user to enter grades for various assessments items and will give them their current score, and what they would need to get on the final to get an A (>= 96%), A- (>= 91), B+ (>= 86%), B (>= 81), B- (>=76), C+ (>= 71), C (>= 66%), C- (>= 61), D+ (<= 56), D (>= 50), or F (< 50) in the class. Look at the syllabus for percent breakdowns. Prompt and accept the following inputs from the user: Accept 5 valid quiz scores entered as a list. Check once for the validity of all the scores entered. Prompt the user to enter valid scores, till valid scores are entered. Accept 5 valid quiz scores from the user. The maximum score for each of the quiz is 10. Accept 5 valid scores for programming assignment. For each of the scores entered, check for the validity of the scores entered. Prompt the user to enter valid scores, till valid scores are entered. Accept 5 valid assignment scores from the user. The maximum score for each of the assignments is 50, 75, 100, 125, and 150. Accept 2 valid scores labs. The maximum scores for each of the labs are 125 and 150. Ensure the validity of accepted grades. Prompt the user to enter valid scores, till valid scores are entered. Accept 1 valid score for midterm. The maximum score for midterm is 50. Calculate the average quiz score with the lowest score dropped. Calculate the average programming assignment score with a maximum of 100%. Print the calculated current score. Prompt the user to enter the anticipated grade among A, B, or C. If any other alphabet is entered, prompt the user to re-enter valid anticipated grade. Calculate the score needed on the final test out of 75 for the user to receive their anticipated grade. After printing the final test score, prompt the user whether they want to re-enter all the scores for another student. If user enters yes, then repeat steps 1 through 7. The program shall use main function that calls all other functions. Design the entire program keeping efficient and maintainable design in mind using functions and modules (built-in and/or user defined).
Points will be deducted for programs that: fail to follow instructions lack sufficient documentation violate basic program design
Programs that do not compile or compile with errors will earn zero points.
Sample run of the program appears below: Please enter quiz scores as a list: [4,5,6,7,8] Please enter score for programming assignment 1: 45 Please enter score for programming assignment 2: 65 Please enter score for programming assignment 3: 95 Please enter score for programming assignment 4: 115 Please enter score for programming assignment 5: 135 Please enter score for lab 1: 85 Please enter score for lab 2: 135 Please enter score for midterm: 45 What grade do you wish to receive? A ==================================================== Current quiz average after dropping lowest score is: 65% Current programming assignment average is: 91% Current labs average is: 80% Currently, the grade score for the course is: 83.71% The student will get 88.6 out of 100 if the student receives 100% on final. To receive the anticipated grade the student should receive 124.66% on final test, which means the student should receive 93.5 out of 75 to get an A grade
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started