CS9A C++ Programming Class objects and Arrays LAB Score Keeper Plus BACKGROUND: Class Objects and Arrays...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 <stdlib.h> 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. 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 <stdlib.h> 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.
Expert Answer:
Related Book For
OM operations management
ISBN: 978-1285451374
5th edition
Authors: David Alan Collier, James R. Evans
Posted Date:
Students also viewed these algorithms questions
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Suzanne acquired the following ordinary shares in Quarine plc: She made no further acquisitions and the shares were valued at 3.20 each on 31 March 1982. On 24 July 2020, Suzanne sold 1,200 shares...
-
Cushing filed an application with the office of the Adjutant General of the State of New Hampshire for the use of the Portsmouth Armory to hold a dance on the evening of April 29. The application,...
-
Refer to Exercise 18.10. For the two-equation system there obtain the reduced-form equations and estimate their parameters. Estimate the indirect least-squares regression of consumption on income and...
-
You are auditing the financial statements of the Ute Corporation for the year ended December 31, 1999. The client has prepared the following schedules for the fixed assets and depreciation accounts....
-
Colonel Electric is a large company that produces lightbulbs and other electrical products. One particular lightbulb is supposed to have an average life of about 1,000 hours before it burns out....
-
Can we expect to see some long-term beneficial consequences from COVID-19 and its associated hysteria (mandatory business closure, social distancing, etc.)? Think about the Broken Window Fallacy and...
-
You will file 2022 Federal income tax return (treat all info as for year 2022not year 2021). Ignore the last paragraph of the tax return problem info (it does not apply to 2022, the book was still on...
-
What are the emerging techniques and technologies employed in studying and detecting mutations at the genomic level, and how are they advancing our understanding of genetic disorders?
-
Some claim that Microsoft is a monopolist because of the Windows operating system: there are no close substitutes for this product and, therefore, Microsoft enjoys positive profits despite making...
-
A class is a description of a set of objects that share the same (a) attributes, behavior and operations (b) identity, behavior and state (c) attributes, operations and relationships (d)...
-
Explain whether you agree with the following remark: In a perfectly competitive market, each firm faces a horizontal demand curve. This means that the firm will be unable to sell its product at a...
-
In the United States, who has the authority to prescribe accounting practices and procedures for all public oil and gas companies and to prescribe the form and content of financial reports? a....
-
Suppose that the price of cut wood decreases, lowering the cost of furniture. What effect would this have on the U.S. furniture industry, in general, and on U.S. companies, in particular? Illustrate...
-
A Eurobond is quoted at 95%. The annual coupon is 6% and we are exactly three months from the past payment. The bond is traded at ?
-
What services are provided by the provincial and territorial governments?
-
Identify an organization that has achieved ISO 9000 certification and write a short paper (1 page maximum) that summarizes the benefits and results that the organization has achieved using ISO 9000....
-
Suppose that in Problem 12, a forecasting study determines that he probabilities of demand volume are Low = 0.4, Medium = 0.1, and High = 0.5. Using the techniques in Supplementary Chapter SC E,...
-
Automobile transmission manufacturer is considering using a JIT approach to replenishing its stock of transmissions. Daily demand for transmission #230 is 25 transmissions per day and they are built...
-
Let \(P(A \cap \bar{B})=0.3\) and \(P(\bar{B})=0.6\). Determine \(P(A \cup B)\).
-
Is it possible that for two events \(A\) and \(B\) with \(P(A)=0.4\) and \(P(B)=0.2\) the relation \(P(A \cap B)=0.3\) is true?
-
Check whether for 3 arbitrary random events \(A, B\), and \(C\) the following constellations of probabilities can be true: (1) \(P(A)=0.6, P(A \cap B)=0.2\), and \(P(A \cap \bar{B})=0.5\), (2)...
Study smarter with the SolutionInn App