Question: C++ Programming This assignment is to give you practice using one-dimensional arrays and sorting. In competitive diving, each diver makes dives of varying degrees of

C++ Programming

This assignment is to give you practice using one-dimensional arrays and sorting.

In competitive diving, each diver makes dives of varying degrees of difficulty. Nine judges score each dive from 0 through 10 in steps of 0.5. The difficulty is a floating-point value between 1.0 and 3.0 that represents how complex the dive is to perform. The total score is obtained by discarding the lowest and highest of the judges scores, adding the remaining scores, and then multiplying that total by the degree of difficulty. Write a program to score each of the dives, using the following input and output specifications, and determine the winner of the competition. Input: Create the file m6dive.txt The first line contains an integer for the number of divers in the competition and subsequent lines contain: Divers name (10 characters max, no blanks included), difficulty (double), and judges ratings (nine doubles). There is one line of data for each diver. Should look like below!

C++ Programming This assignment is to give you practice using one-dimensional arrays

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!