Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

4. What are a countrys terms of trade?

Answered: 1 week ago

Question

What is the most effective way to stop a nose bleed ?

Answered: 1 week ago

Question

The patients blood pressure is 180/105 is hyper tension?

Answered: 1 week ago

Question

How can you assess for jaw fractures ?

Answered: 1 week ago