The local pet store has 35 different bowls with fish in them arranged in a circle in the “fish room." The first six have goldfish, the next seven have guppies, the next nine have angel fish, the next eight have goldfish, and the last five hold tiger fish. As the bowls vary in size, the number of fish that are in each bowl at the start of the day also varies. The count of fish in each bowl is as follows: Bowls 1- 3: 15 fish 8 fish Bowls 4 – 7: Bowl 8: Bowls 9 - 12: Bowls 13 – 22: 19 fish 16 fish 14 fish 31 fish 9 fish 26 fish 8 fish Bowls 23 – 24: Bowls 25 – 29: Bowls 30 – 33: Bowls 34 – 35: Houston...We have a Problem: A trained seal finds its way into the store. The seal begins to eat fish in the following manner. a. It walks over to bowl #1. b. It counts four bowls and then eats a fish (the first fish it eats comes from bowl #4 and it's a goldfish). c. It again counts four, starting with the next available bowl, and eats a fish (the second fish it eats comes from bowl #8 and it's a guppy. Method: The conditions that controls the seal are: a. If there are no fish left in a bowl, the seal does not count the bowl and skips it and goes to the next bowl containing fish. (It starts counting four from the bowl it ate from.) b. The bowls are arranged in a circle, there is no last bowl. c. After the seal eats a bowl #35, it counts over 4 bowls and finds itself at bowl #4. (Bowl #3 if four bowls away from 34, etc.) d. The seal continues to eat until 361 fish are consumed. Your Task: You are to write a C++ program that will calculate and report the following (put breaks in so the user can read): a. The number and type of fish in each bowl before the seal begins eating. b. The total number of each type of fish before the seal begins to eat. c. After each time the seal eats: a. The type of fish that was just eaten and how many fish are left in the bowl. b. The total number of each type of fish left in all the bowls. d. The total number of each type of fish remaining after the seal eats.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
C++ Please make simple Include
Background:
The local pet store has 35 different bowls with fish in them arranged in a circle in the “fish room." The first six
have goldfish, the next seven have guppies, the next nine have angel fish, the next eight have goldfish, and the
last five hold tiger fish. As the bowls vary in size, the number of fish that are in each bowl at the start of the
day also varies. The count of fish in each bowl is as follows:
Bowls 1- 3:
Bowls 4 – 7:
Bowl 8:
Bowls 9 – 12:
15 fish
8 fish
19 fish
16 fish
14 fish
Bowls 13 – 22:
Bowls 23 – 24:
31 fish
Bowls 25 – 29:
Bowls 30 – 33:
Bowls 34 – 35:
9 fish
26 fish
8 fish
Houston...We have a Problem:
A trained seal finds its way into the store. The seal begins to eat fish in the following manner.
a. It walks over to bowl #1.
b. It counts four bowls and then eats a fish (the first fish it eats comes from bowl #4 and it's a goldfish).
c. It again counts four, starting with the next available bowl, and eats a fish (the second fish it eats
comes from bowl #8 and it's a guppy.
Method:
The conditions that controls the seal are:
a. If there are no fish left in a bowl, the seal does not count the bowl and skips it and goes to the next
bowl containing fish. (It starts counting four from the bowl it ate from.)
b. The bowls are arranged in a circle, there is no last bowl.
c. After the seal eats a bowl #35, it counts over 4 bowls and finds itself at bowl #4. (Bowl #3 if four
bowls away from 34, etc.)
d. The seal continues to eat until 361 fish are consumed.
Your Task:
You are to write a C++ program that will calculate and report the following (put breaks in so the user can read):
a. The number and type of fish in each bowl before the seal begins eating.
b. The total number of each type of fish before the seal begins to eat.
c. After each time the seal eats:
a. The type of fish that was just eaten and how many fish are left in the bowl.
b. The total number of each type of fish left in all the bowls.
d. The total number of each type of fish remaining after the seal eats.
Transcribed Image Text:Background: The local pet store has 35 different bowls with fish in them arranged in a circle in the “fish room." The first six have goldfish, the next seven have guppies, the next nine have angel fish, the next eight have goldfish, and the last five hold tiger fish. As the bowls vary in size, the number of fish that are in each bowl at the start of the day also varies. The count of fish in each bowl is as follows: Bowls 1- 3: Bowls 4 – 7: Bowl 8: Bowls 9 – 12: 15 fish 8 fish 19 fish 16 fish 14 fish Bowls 13 – 22: Bowls 23 – 24: 31 fish Bowls 25 – 29: Bowls 30 – 33: Bowls 34 – 35: 9 fish 26 fish 8 fish Houston...We have a Problem: A trained seal finds its way into the store. The seal begins to eat fish in the following manner. a. It walks over to bowl #1. b. It counts four bowls and then eats a fish (the first fish it eats comes from bowl #4 and it's a goldfish). c. It again counts four, starting with the next available bowl, and eats a fish (the second fish it eats comes from bowl #8 and it's a guppy. Method: The conditions that controls the seal are: a. If there are no fish left in a bowl, the seal does not count the bowl and skips it and goes to the next bowl containing fish. (It starts counting four from the bowl it ate from.) b. The bowls are arranged in a circle, there is no last bowl. c. After the seal eats a bowl #35, it counts over 4 bowls and finds itself at bowl #4. (Bowl #3 if four bowls away from 34, etc.) d. The seal continues to eat until 361 fish are consumed. Your Task: You are to write a C++ program that will calculate and report the following (put breaks in so the user can read): a. The number and type of fish in each bowl before the seal begins eating. b. The total number of each type of fish before the seal begins to eat. c. After each time the seal eats: a. The type of fish that was just eaten and how many fish are left in the bowl. b. The total number of each type of fish left in all the bowls. d. The total number of each type of fish remaining after the seal eats.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Header Files
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education