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
What is the digital revolution and how did it change society? what are the benefits of digital media?
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Arecipients list has been loaded into a document. which commands should be clicked in order to filter the list so that letters will not be printed for recipients who live in a certain state? mailings tab, start mail merge, select recipients, type new list, then insert only contacts from the desired states mailings tab, rules, select recipients, use existing list, then choose a recipients list that includes only contacts in certain states mailings tab, select recipients, use existing list, rules, fill in, then type in certain states mailings tab, rules, skip record select “state” under field name, then type in the state name under “equal to”
Answers: 2
question
Computers and Technology, 23.06.2019 20:40
Instruction active describing list features which statements accurately describe the features of word that are used to create lists? check all that apply. the tab key can be used to create a sublist. the enter key can be used to add an item to a list. the numbering feature allows for the use of letters in a list. the numbering feature can change the numbers to bullets in a list. the multilevel list feature provides options for different levels in a list.
Answers: 2
question
Computers and Technology, 24.06.2019 00:00
Visualizing a game of “tag” to remember the meaning of contagious
Answers: 3
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
Mathematics, 13.07.2021 20:10
question
Mathematics, 13.07.2021 20:10
question
Mathematics, 13.07.2021 20:10
question
History, 13.07.2021 20:10
Questions on the website: 13722360