Question: CS9A C++ Programming Class objects and Arrays LAB Score Keeper Plus BACKGROUND: Class Objects and Arrays Assignment: The scorekeepers of the Yuba College Diving

CS9A C++ Programming Class objects and Arrays LAB Score Keeper Plus BACKGROUND: 

CS9A C++ Programming Class objects and Arrays LAB Score Keeper Plus BACKGROUND: Class Objects and Arrays Assignment: The scorekeepers of the Yuba College Diving Club need a program to determine the winner of the final round. Each competitor is given six scores, of which the highest and the lowest are discarded. The remaining four scores are then averaged to obtain a final score. The maximum score for each event is 6.0. Write a program that reads the names and scores of ten finalists and produces a listing of the diver's names and final scores in order of finish. Sample inputs and needed outputs are as follows: (Information including names and scores should be read from a text file) SAMPLE INPUT DATA (You may use your own) Names Scores Phredrick TheGreat 5.7 5.3 5.1 5.0 4.7 4.8 Robbie The Rock 3.1 4.9 4.1 3.7 4.6 3.9 CannonBallKelly 4.1 5.3 4.9 4.4 3.9 5.4 Marty TheMissile 5.1 5.7 5.6 5.5 4.4 5.3 BillieBomb 5.9 4.8 5.5 5.0 5.7 5.7 JackknifeJake 5.1 4.7 4.1 3.1 4.6 5.0 Splash 5.1 5.1 4.9 3.4 5.5 5.3 Data is to be passed into all member functions. All information generated from the functions must be passed out using the return statement. Milly TheMalard 4.9 4.3 5.2 4.5 4.6 4.9 Horace TheDiving Horse 6.0 6.0 5.7 Read data from a text file. 5.8 5.9 5.9 Fish Tank 4.3 5.2 5.9 5.3 4.3 6.0 Results as Output (Example) PLACE 1 2 3 Yuba College Diving Club NAME SCORE Horace TheDivingHorse 5.90 BillieBomb 5.47 Marty The Missile 5.37 4 Fish Tank 5.17 5 Splash 5.12 6 Phredrick TheGreat 5.05 7 8 9 10 MillyTheMalard 4.72 CannonBall Kelly 4.67 JackknifeJake 4.60 Robbie The Rock 4.07 You will need a sort routine.... On the reverse is a sample of how to use qsort from the Borland help menu. Feel free to use the build in qsort function from or feel free to implement any other sort routine you wish to list the divers by their computed scores. Use proper input and output formatting in this assignment. Remember, you must use class objects in this LAB for credit.

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 Algorithms Questions!