C++ The Program Specification Writ an application that, based on… C++The Program SpecificationWrit an application that, based on valid user input data, calculates the average of a group of diving score marks, where the lowest score in the group is dropped. The application should prompt and obtain user input at run-time for the following information: 5 driving scores.Your program need use the following user-defined functions:Driving scores:1- 82-63-94-7.55-5void getScore() Description: Asks the user for a diving score, stores the validated user supplied data in a reference variable. This function will be called by main once for each of five scores to be entered. void calcAverage() Description: Calculates and displays the average of the four highest scores. This function will be called just once by main and should be passed the five scores. int findLowest() Description: Finds and returns the lowest of the five scores passed to it. This function will be called by calcAverage(), which uses the function to determine which of the five scores to drop.Testing SpecificationInput ErrorsValidate user input: Diving scores need to be no lower than 0 nor higher than 10 (0 <= score<= 10).Pigeonhole the user to obtain valid input.Demonstrate that your program validates user input for both boundary values.Demonstrate a program run. Example Test RunYour program display should look something like this example run:/*Enter a diving score: -1Enter a diving score between 0 and 10: 11Enter a diving score between 0 and 10: 0Enter a diving score: 10Enter a diving score: 4Enter a diving score: 7Enter a diving score: 6After dropping the lowest score, 0, the diving average score is 6.*/Computer Science Engineering & Technology C++ Programming CS 102
You will get a plagiarism-free paper and you can get an originality report upon request.
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more