Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions

Question

5. Arranging for the training facility and room.

Answered: 1 week ago

Question

1. Discuss the five types of learner outcomes.

Answered: 1 week ago