subject

Monkey business, a local zoo, wants to keep track of how many pounds of food each of its three monkeys eats each day during a typical week. write a program that stores this information in a two-dimensional 3 7 array, where each row represents a different monkey and each column represents a different day of the week. the monkeys are represented by integers 1, 2, and 3; the weekdays are "sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday". the program should first prompt the user to input the data for each monkey, starying with "sunday" for monkey #1, then monkeys #2 and #3 followed by "monday" for monkey #1, then monkeys #2 and #3 and so on, through "saturday". the program then creates a report that includes the following information, each properly labeled (see below): average amount of food eaten per day by the whole family of monkeysthe least amount ot food eaten during the week by any one monkeythe greatest amount of food eaten during the week by any one monkeyinput validation: do not accept negative numbers for pounds of food eaten. when a negative value is entered, the program outputs "invalid (negative) food quantity-reenter" and attempts to reread the value. prompts and ouput labels: decimal values should be displayed using default precision (do not specify)each item read should be prompted for by a string of the form "enter the food eaten by monkey #n on day: " where n is 1,2, or 3 and day is "sunday" through "saturday".the output should be of the form: average food consumed daily: 6.23.the least daily food consumed was by monkey #1 on friday. the most daily food consumed was by monkey #2 on sunday.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
Which of the following is not a symptom of chronic fatigue syndrome
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
Which statement is true of web-based social media? a.they allow consumers to interact with and update content. b.they cannot be updated easily, as compared to print media. c.they are expensive to produce and maintain, as compared to print and television. d.they can exist independent of the internet.
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
Match the file formats with the types of multimedia they can store
Answers: 2
question
Computers and Technology, 23.06.2019 20:30
What are some settings you can control when formatting columns?
Answers: 1
You know the right answer?
Monkey business, a local zoo, wants to keep track of how many pounds of food each of its three monke...
Questions
question
Physics, 02.09.2019 09:30
question
Mathematics, 02.09.2019 09:30
question
Mathematics, 02.09.2019 09:30
question
Mathematics, 02.09.2019 09:30