Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

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 3x7 array, where each row represents a different monkey and each column represents a different day of the week. The program should first have the user input the data for each monkey. Then it should create a report that includes the following information:

Average amount of food eaten per day by the whole family of monkeys.

The least amount of food eaten during the week by any one monkey.

The greatest amount of food eaten during the week by any one monkey.

Input Validation

Do not accept negative numbers for pounds of food eaten.

Note:

In addition to some arrays, please use an array of string objects to hold the seven days names, i.e. Monday, Tuesday, etc, so that you can use it to prompt the user when the user input the data for each monkey.

in C++

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 18th International Conference Dasfaa 2013 Wuhan China April 22 25 2013 Proceedings Part 2 Lncs 7826

Authors: Weiyi Meng ,Ling Feng ,Stephane Bressan ,Werner Winiwarter ,Wei Song

2013th Edition

3642374492, 978-3642374494

More Books

Students also viewed these Databases questions

Question

6. Explain the strengths of a dialectical approach.

Answered: 1 week ago