Question: Your solution must include these components: Flowchart Pseudo - code Program Coded Program Output write a program that asks the user to enter 5 test

Your solution must include these components:
Flowchart
Pseudo-code
Program Coded
Program Output
write a program that asks the user to enter 5 test scores. The program should display a letter grade for each score and the average test score. Design the following modules/functions in the program:
Module mainContains only a call to getScores
Module getScoresUses a loop to allow user input of five numeric scores between 1-100. For each score, determineGrade is called to determine and return the corresponding letter grade. The score is added to the total of all scores. When all scores have been entered, calcAverage is called to calculate and return the overall average.
Function calcAverageThis function should accept the total of all test scores and return the average of the scores
Function determineGradeThis function should accept a test score as an argument and return a letter grade for the score (as a String), based on the following grading scale:
90100A
8089B
7079C
6069D
Below 60F
Expected Output
Your results should be similar to the following:
Please enter 5 test scores to receive their letter grades and average of the 5 scores.
Enter grade for test 1: 90
The grade for test 1 is A
Enter grade for test 2: 80
The grade for test 2 is B
Enter grade for test 3: 70
The grade for test 3 is C
Enter grade for test 4: 60
The grade for test 4 is D
Enter grade for test 5: 50
The grade for test 5 is F
The average of the test scores is: 70.0

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!