Lab #8 – Crazy Pet Store 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: Bowls 13 – 22: Bowls 23 – 24: 15 fish 8 fish 19 fish 16 fish 14 fish 31 fish 9 fish 26 fish Bowls 25 – 29: Bowls 30 – 33: Bowls 34 – 35: 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.
Lab #8 – Crazy Pet Store 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: Bowls 13 – 22: Bowls 23 – 24: 15 fish 8 fish 19 fish 16 fish 14 fish 31 fish 9 fish 26 fish Bowls 25 – 29: Bowls 30 – 33: Bowls 34 – 35: 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.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
![Lab #8 – Crazy Pet Store
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:
15 fish
8 fish
19 fish
16 fish
Bowl 8:
Bowls 9 – 12:
Bowls 13 – 22:
14 fish
Bowls 23 – 24:
31 fish
9 fish
26 fish
Bowls 25 – 29:
Bowls 30 – 33:
Bowls 34 – 35:
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
comes from bowl #8 and it's a guppy.
counts four, starting with the next available bowl, and eats a fish (the second fish it eats
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.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Ff37e3e56-07d0-488a-9abe-25f2d0c08466%2F897942dc-60ad-424e-bc06-d7df527a941b%2Fv04xrc9_processed.png&w=3840&q=75)
Transcribed Image Text:Lab #8 – Crazy Pet Store
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:
15 fish
8 fish
19 fish
16 fish
Bowl 8:
Bowls 9 – 12:
Bowls 13 – 22:
14 fish
Bowls 23 – 24:
31 fish
9 fish
26 fish
Bowls 25 – 29:
Bowls 30 – 33:
Bowls 34 – 35:
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
comes from bowl #8 and it's a guppy.
counts four, starting with the next available bowl, and eats a fish (the second fish it eats
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 9 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY