Question: Write a program that asks the user to enter 4 test scores. The program should display a letter grade for each score and the average
Write a program that asks the user to enter test scores. The program should display a letter grade for each score and the average test score.Write the following functions in your program:main: This is where your program input, output, and functions calls to calcaverage and determinegrade will reside.calcaverage: This function should accept test scores as arguments and RETURN the average of the scores.determinegrade: This should should accept a test score as an argument and RETURN a letter grade for the score based on the following grading scale:SCORELETTER GRADEABCDBelow FAn example of a running program's output can resemble the following:Welcome to the Grade and Average Calculator.Please enter Test Score #: Please enter Test Score #: Please enter Test Score #: Please enter Test Score #: Test Score # receives a letter grade of DTest Score # receives a letter grade of CTest Score # receives a letter grade of BTest Score # receives a letter grade of AYour overall test average is:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
