A local zoo wants to keep track of how many pounds of foodeach of its three monk
ID: 3608570 • Letter: A
Question
A local zoo wants to keep track of how many pounds of foodeach of its three monkeys eats each day during a typical week.Write a program that stores this information in a two-dimensional3*7 arry, where each row represents a different monkey and eachcolumn represants a different day of the week. the program shouldfirst have the user input the data for each monkey. Then it shouldcreate a report that includes the following information: Average amount of food eaten per day by the wholefamily of monkeys, the least amount of food eaten during the week by anyone monkey. A local zoo wants to keep track of how many pounds of foodeach of its three monkeys eats each day during a typical week.Write a program that stores this information in a two-dimensional3*7 arry, where each row represents a different monkey and eachcolumn represants a different day of the week. the program shouldfirst have the user input the data for each monkey. Then it shouldcreate a report that includes the following information: Average amount of food eaten per day by the wholefamily of monkeys, the least amount of food eaten during the week by anyone monkey.Explanation / Answer
please rate - thanks on the average I wasn't sure what you wanted so I did it 2 ways #include void input(double[][7],int,int); using namespace std; int main() {double food[3][7],sum,average,total=0,least=5000;; int i,j; for(i=0;iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.