Question: can you please code in assign variable and easy codes: Write a program that asks the user to enter 4 test scores. The program should
can you please code in assign variable and easy codes:
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 F
An 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 D
Test Score # receives a letter grade of C
Test Score # receives a letter grade of B
Test Score # receives a letter grade of A
Your 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
