Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Filename: assign 3 - 3 . py Write a program that calls the following functions to produce the output shown below. * calcavg function takes
Filename:
assignpy
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 grades. Verify the grades and make sure all the grades are numeric. If there are nonnumeric 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.
tableNumeric Grade,Letter GradeABCDF
Input:
Output:
a Average:
Letter grade:
b Average:
Letter grade: B
c Error, all grades must be numeric.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started