Question: Filename: assign 3 - 3 . py Write a program that calls the following functions to produce the output shown below. * calcavg function takes

Filename:
assign3-3.py
Write a program that calls the following functions to produce the output shown below.
*calcavg function takes five grades as parameters, calculates the average, and returns the average.
getletter function takes the average as a parameter and returns the letter grade. You can use the following table to find the letter grades.
*printresults function takes the average and letter grade as parameters, and prints the output as shown below.
Write a program that takes 5 grades. Verify the grades and make sure all the grades are numeric. If there are non-numeric grades, it should display the proper message to the user. If all the grades are numeric, use calcavg function to get the average, use getletter function to get your letter grade, and print the results using the printresults function.
\table[[Numeric Grade,Letter Grade],[90,A],[80,B],[70,C],[60,D],[60,F]]
Input:
Output:
a) Average: 74.2
Letter grade: C
b) Average: 89.2
Letter grade: B
c) Error, all grades must be numeric.
 Filename: assign3-3.py Write a program that calls the following functions to

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!