Question: Write a C++ program in visual studios which: Write a program which uses the following arrays: Prompts the user for 5 test scores as integers

Write a C++ program in visual studios which:

Write a program which uses the following arrays: Prompts the user for 5 test scores as integers greater than or equal to zero and less than or equal to 100. Ensures that the user entries are valid (integers greater than or equal to zero and less than or equal to 100). Stores the 5 tests scores in an array. Uses the bubble sort to sort the scores in ascending order. Calculates the letter grade for each test Displays the letter grade of each score as well as the overall average (the average of the 5 tests). You must include a method called calcAverage to compute the average of the 5 test scores; it takes an array of type int as a parameter and returns the average. You must include a method called validateUserInput to ensure user entries are integers greater than or equal to zero and less than or equal to 100. In the validation when pressing enter, putting in letters, spaces, and etc. The output should say "Invalid. Must be positive Number be a number greater than 0 and less than 100" You must include a method determineGrade to compute the average of the 5 test scores; it takes an int array with the test scores and a char array to store the corresponding letter grades. The letter grade is arrived at using the table below: score Letter Grade >=90 A >=80 and <90 b>=70 and <80 c>=60 and <70 d>=0 and <60 F. You must include a method called bubbleSort which sorts the values (test scores) stored in the array in ascending order. You must include a method called displayTestScores which displays each test score and its corresponding letter, as well as the overall average.

GENERAL RESTRICTIONS

No global variables. No labels or go-to statements. No infinite loops, examples include: for(;;) while(1) while(true) do{//code}while(1); No break statements to exit loops If you violate any of these restrictions, you will automatically get a score of ZERO!

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!