Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ PROGRAMMING 14. Fishing Game Simulation For this assignment, you will write a program that simulates a fishing game. In this game, a six-sided die

C++ PROGRAMMING
image text in transcribed
14. Fishing Game Simulation For this assignment, you will write a program that simulates a fishing game. In this game, a six-sided die is rolled to determine what the user has caught. Each possible item is worth a certain number of fishing points. The points will not be displayed until the user has finished fishing, then a message is displayed congratulating the user depending on the number of fishing points gained. Here are some suggestions for the game's design: . Each round of the game is performed as an iteration of a loop that repeats as long as the player wants to fish for more items. . At the beginning of each round, the program will ask the user whether he or she wants to continue fishing. The program simulates the rolling of a six-sided die (use the Die class that was demonstrated in this chapter). .Each item that can be caught is represented by a number generated from the die. For example, 1 for "a huge fish," 2 for "an old shoe," 3 for "a little fish," and so on. . Each item the user catches is worth a different amount of points. . The loop keeps a running total of the user's fishing points. . After the loop has finished, the total number of fishing points is displayed, along with a message that varies depending on the number of points earned

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

Step: 3

blur-text-image

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

Highlight 2 3 key facts for Accountability in accounting ethics.

Answered: 1 week ago