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 01:30
Someone wishes to run the software on another computer system that runs an operating system that does not support the software what can he do
Answers: 3
question
Computers and Technology, 22.06.2019 21:50
Answer the following questions regarding your system by using the commands listed in this chapter. for each question, write the command you used to obtain the answer. a. what are the total number of inodes in the root filesystem? how many are currently utilized? how many are available for use? b. what filesystems are currently mounted on your system? c. what filesystems are available to be mounted on your system? d. what filesystems will be automatically mounted at boot time?
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 00:00
What season was better from fortnite?
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
English, 04.06.2020 13:13
Questions on the website: 13722363