Question: To complete the program, follow the steps: (1) Prompt the user to input 3 student scores, then output them. (from 0 - 100). Note, the

To complete the program, follow the steps: (1) Prompt the user to input 3 student scores, then output them. (from 0 - 100). Note, the format of the scores, use %0.2f.(Submit for 2 points) Enter the 1st score: 92.5 Enter the 2nd score: 87.3 Enter the 3rd score: 83.4 The scores entered are: 92.50, 87.30 and 83.40 (2) Extend the program to output the average of the 3 scores entered in step 1. Note, use %0.2f for the format of the average. (Submit for 3 points, so 5 points total) Enter the 1st score: 92.5 Enter the 2nd score: 87.3 Enter the 3rd score: 83.4 The scores entered are: 92.50, 87.30 and 83.40 The average score is: 87.73 (3) Extend again to output the letter grade baseTo complete the program, follow the steps: (1) Prompt the user tod on the result in step 2. Hint: use if statement (Submit for 5 points, so 10 points total) Enter the 1st score: 92.5 Enter the 2nd score: 87.3 Enter the 3rd score: 83.4 The scores entered are: 92.50, 87.30 and 83.40 The average score is: 87.73 Your grade is B

System keeps telling me that >= cannot be used. Also, if you know how to get the comma next to value 1 on line 8, that would be appreciated.

Thanks!

Run program Input (from above) main.py (Your program) Out Enter the 1st score: 92.5 Enter the 2nd score: 87.3 Enter the 3rd score: 83.4 The scores entered are: 92.50, 87.30 and 83.40 The average score is: 87.73 Your grade is B Program errors displayed here Traceback (most recent call last): File "main.py", line 13, in if (average >= 90): TypeError: '>=' not supported between instances of 'str' and 'int' Program output displayed here 290804.1774886 LAB ACTIVITY Enter the 1st score: Enter the 2nd score: Enter the 3rd score: The scores entered are: 92.50, 87.30 and 83.40 The average score is: 87.73 12.17.1: Prog Assignment 3 - 3: Letter Grade ma 2 gradel = float(input('Enter the 1st score: ')) 3 grade2 = float(input('Enter the 2nd score: ')) 4 grade3 = float(input('Enter the 3rd score: ')) 5 one = '{e:.2f}'.format(grade1) 6 second = '{0.2f}'.format(grade2) 7 third = '{0.2f}'.format(grade3) 8 print("The scores entered are:", one, ",", second, "and", third) 9 avg = (gradel + grade2 + grade3)/3 10 average = {0.2f}'.format(avg) 11 print("The average score is:", average) 12 13 if (average >= 90): 14 print("Your grade is A') 15 elif (average >= 80): 16 print('Your grade is B') 17 elif (average >= 70): 18 print("Your grade is c') 19 elif (average >= 60): 20 print('Your grade is D') 21 else: 22 print("Your grade is F')

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!