Answered step by step
Verified Expert Solution
Question
1 Approved Answer
create a C + + to address the following program: a local zoo wants to keep track of how many pounds of food each of
create a C to address the following program:
a local zoo wants to keep track of how many pounds of food each of its two monkeys eats each day during a typical week. Write a C program that stores this information in a twodimensional array of size by rows and columns. Each row represents a different monkey, and each column represents a different day of the week. The program should have the following functions:
A function to ask the user to input and return the pounds of food that each Monkey eats per day. The number of pounds must be between and inclusive, pounds. If the user enters any other number of pounds, the function will show a message as an invalid entry, and it will ask the user to enter another number. The function only returns a float or double number of pounds.
A function to save the pounds of food that each Monkey eats per day for seven days. The seven days of pounds of food is saved in an array.
A function to prompt the data in an array.
A function to collect the seven days of pounds of food ate by each Monkey. Basically, it saves in a by array that amounts to pounds that Monkey and Monkey ate in the seven days.
A function that calculates and returns the average amount of food eaten per Monkey in the seven days.
A function to prompt a result as:
MONKEY DIET CHART
Food eaten in one week
Average food in one week
MONKEY DIET CHART
Food eaten in one week
Average food in one week
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started