Question: A Program: Use Python Ask the user to input 4 test grades as floats. Average the grades. Print out the test grades formatted with 1
A Program: Use Python
Ask the user to input 4 test grades as floats.
- Average the grades.
- Print out the test grades formatted with 1 place past the decimal as in the example output below
- Print out the average formatted with 1 place past the decimal
- Use formatting to have all numbers line up based on the decimal,
- Use if statements to determine the appropriate message to display based on the average
96.0 100: Congratulations, you are at the top of the class!
90.0 95.9: Great job! You have an A average
80.0 89.9: Good job! You have an B average
70.0 79.9: Not bad, you have an C average
60.0 69.9: Spend more time studying and you can bring up your D average
Less than 60.0: Try going to tutorials to bring up your F average
- Follow standard programming procedures including initializing all variables prior to usage, variable naming conventions, use of constants where appropriate, code separated into IPO sections, and appropriate comments.
- NOTE: Do not use any Python programming techniques that we have not yet covered in class. This includes lists, arrays, functions and tuples.
Example Input:
Enter test grade 1: 96
Enter test grade 2: 100
Enter test grade 3: 87
Enter test grade 4: 91
Example Output:
Test grade 1: 96.0
Test grade 2: 100.0
Test grade 3: 87.0
Test grade 4: 91.0
Test Average: 93.5
Great job! You have an A average
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
