Question: Write a Python program that accepts three values from the user, converts each to float, and stores the values in three variables. The expected input

Write a Python program that accepts three values from the user, converts each to float, and stores the values in three variables. The expected input values represent grades between 0.0 and 100.0. The program should then sum the three grades, and store the sum in another variable. Then the program should calculate the numeric average of the three. After calculating the average, the program should use Python conditional (if/elsif/else) statements to determine and print out a final letter grade
1) Assign the addition of the these three variables into a third sum variable
Calculate the average of the three numbers, and print out the average.
2) If the average of the three numbers >= 90.0 the program should print the text string Final grade is an A
If not an A, and if the average of the three numbers >= 80.0 the program should print the text string Final grade is a B
If not an A or a B, and if the average of the three numbers >= 70.0 the program should print the text string Final grade is a C
If not an A, B, or a C, and if the average of the three numbers >= 60.0 the program should print the text string Final grade is a D
3) If not an A, B, C, or a D the program should print the text string Ooops, please work harder

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!