Grade Average Program Design a grade average program

Feb 3rd, 2012
Studypool Tutor
Absolute Safety Training Paramedic Program
Course: pro
Price: $10 USD

Tutor description

Grade Average Program 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.

Word Count: 81
Showing Page: 1/4
codeclass GradeAverageProgrammain()main()//Declarationsnum tests [testCount]num index = 1num sum = 0num testCountnum scoreoutput "Welcome to the Grade Average Program"output "Enter up to 5 test scores "input testCountwhile index <= maxGradescount[index] = 0index = index + 1endWhileindex = 1output "Please a test grade: "input tests[index]while tests[index] >= 0sum = tests[index] + sumoutput "Please enter another test grade: "input count[index]endWhileaverage = sum/(index - 1)output "You grade average is: " averagereturnendClassResultsFlow chart

Review from student

Studypool Student
" The best tutor out there!!!! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1828 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors