Question
C++ Program In this project you will be creating an application to compute the winner and statistics from a fishing tournament. The program will provide
C++ Program
In this project you will be creating an application to compute the winner and statistics from a fishing tournament. The program will provide the user an interface to enter in the kind of fish caught and its weight. Once all fish have been registered, the largest fish of each kind (Bass, Catfish, etc.) will be printed out, followed by the smallest of each kind, and the average weight for each kind.
Description
When the program begins, the user will be requested to enter in the type of fish and weight until the user indicates they have finished. Once finished, statistics for each type of fish should be displayed: largest, smallest, and average.
Requirements
- The code should be cleanly formatted.
- The program should clearly communicate with the user what kind of data it expects.
- The program should allow the user to continue entering in data until they indicate they are finished.
- The program should support (at minimum) the following "kinds" of fish:
- Bass
- Catfish
- Carp
- The program should indicate the largest fish of each kind.
- The program should indicate the smallest fish of each kind.
- The program should compute the average weight for each kind of fish.
Hints
- Use arrays or vectors to store weights of each fish
- CREATE FUNCTION TO FIND MIN, MAX, AVERAGE VALUES.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started