Design a grade average program that will produce the numerical grade average of
ID: 3661281 • Letter: D
Question
Design a grade average program that will produce the numerical grade average of test scores input by a user. Your program design should contain the following: You must use an Array as your data structure to store the input grades You must use a Looping structure to initialize the elements of your array to clear out system garbage. The user may input up to 5 test scores. Hint: This does not mean each user will input 5 scores. 3 scores may be entered for calculation. You must use a Looping structure to traverse the elements of your array to produce your calculation. You are to submit the following for the assignment: Your RAPTOR source code file with comments added to each line or where necessary to explain program flow. Also submit the flowchart of your working program.Explanation / Answer
class GradeAverageProgram main() main() //Declarations num tests [testCount] num index = 1 num sum = 0 num testCount num score output “Welcome to the Grade Average Program” output “Enter up to 5 test scores ” input testCount while index = 0 sum = tests[index] + sum output “Please enter another test grade: ” input count[index] endWhile average = sum/(index - 1) output “You grade average is: ” average return endClassRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.