Question: Name your c++ file cpp . PerfectScore_LastNameFirstName.cpp Write a program that contains a function call Input. The Input function should accept at least 2 decimal

Name your c++ file cpp. PerfectScore_LastNameFirstName.cpp Write a program that contains a function call Input. The Input function should accept at least 2 decimal test scores but no more than 5 test scores can be entered from the user and stores them in an array. '-1' should be used to exit the loop for entering test scores but dont store any number less than 0. Return the array and number of score entered to main. Inside main, the program should pass the array and the total number of scores to countBGrade function. The countBGrade function should count how many B scores (80 to 89) were entered by the user and return the total to main.

void Input(figure this out);

int countPerfect(double array[], int size);

Once back inside main, the program should display how many B scores were entered and how many perfect scores were entered (i.e., scores between 80 and 89). OUTPUT: Enter a score 0 - 100 (or -1 to quit): 87

Enter a score 0 - 100 (or -1 to quit): -80.5

User entered a number less than 0!!!

Enter a score 0 - 100 (or -1 to quit): 100

Enter a score 0 - 100 (or -1 to quit): 100

Enter a score 0 - 100 (or -1 to quit): 75

Enter a score 0 - 100 (or -1 to quit): -1 There were 4 scores entered include 1 B scores. (Printed inside main)

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!