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 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Define a function printfeetinchshort, with int parameters numfeet and numinches, that prints using ' and " shorthand. ex: printfeetinchshort(5, 8) prints: 5' 8"
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
Companies that implement and apply an information system effectively can create
Answers: 1
question
Computers and Technology, 24.06.2019 06:00
Hey i really need some solving this problem: 1. encrypt this binary string into cipher text: 110000. include in your answer the formula the decoder would use to decrypt your cipher text in the format (coded answer) x n mod (m) = y & 2. decrypt this cipher text into a binary string: 106 you.
Answers: 2
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
History, 09.10.2019 23:10
question
Business, 09.10.2019 23:10
question
Mathematics, 09.10.2019 23:10
Questions on the website: 13722360