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
Expert Solution
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
Recommended textbooks for you
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…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
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…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
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)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY