In this assignment, you will write a program that asks the user to enter 8 numeric tests scores (out of 100 for each test).The program should calculate the average of the 8 numeric scores and then display a corresponding letter grade.
Write the following functions in the program:
calc_average- this function should ask the user for 8 test scores and return the average.
determine_grade- this function should accept a test score average as an argument and return a letter grade for the score based on the following grading scale:
90-100 |
A |
80-89 |
B |
70-79 |
C |
60-69 |
D |
Below 60 |
F |
Before you start this assignment, make sure that you have:
- Completed all the course materials
- Run and understood all the sample code or exercise files
- Completed the labs in the previous modules
Program Template
Since this is a programming course, we will use a program to run a series of tests on your submission. Please download the file from the link below and modify it following the comments in the file to complete the assignment.
Test Before You Submit
To ensure that you get the best score you deserve for the assignment and not waste the submission attempts, make sure that you test your program thoroughly on your computer before you submit. Since this course is self-paced, you can take as long as necessary to perfect the program before submission.
Below is a screenshot of expected result from running the program. Please note that the prompt messages has to be EXACTLY as in the screenshot. Pay attention to the comments in the provided template and do not alter the messages. Compare your final result with the screenshot to verify. Look for small things such as upper or lower cases or extra white spaces, etc.