C++ Design a class called bowler that stores data about a participant in a bowling tournament. For each bowler, the following information should be tracked: first name, last name, three bowling scores, and an average score. Valid bowling scores are in the range of 0-300. Include appropriate constructors, mutators, and accessors. Overload the ==, <, and > operators to compare the average score of one bowler's record to another. Once you have designed your class, implement an array that can store up to 25 bowler records. An index should be included to keep track of how many bowler records have been entered. Include an insertionSort routine to sort the bowler records. (Hint: If you overload the ==, <, and > operators, a standard insertionSort will work. However, you will need to revise the algorithm to sort from highest to lowest.) Implement a menu system that implements options to add a bowler to the list and print a complete list of bowlers in the array sorted by bowling average (highest to lowest).

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter11: More Object-oriented Programming Concepts
Section: Chapter Questions
Problem 5RQ
icon
Related questions
Question

C++

Design a class called bowler that stores data about a participant in a bowling tournament. For each bowler,
the following information should be tracked: first name, last name, three bowling scores, and an average score.
Valid bowling scores are in the range of 0-300. Include appropriate constructors, mutators, and accessors.
Overload the ==, <, and > operators to compare the average score of one bowler's record to another.
Once you have designed your class, implement an array that can store up to 25 bowler records. An index
should be included to keep track of how many bowler records have been entered.
Include an insertionSort routine to sort the bowler records. (Hint: If you overload the ==, <, and >
operators, a standard insertionSort will work. However, you will need to revise the algorithm to sort from
highest to lowest.)
Implement a menu system that implements options to add a bowler to the list and print a complete list of
bowlers in the array sorted by bowling average (highest to lowest).

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT