Average amount of food eaten per day

Assignment Help C/C++ Programming
Reference no: EM132075126

While researching two-dimensional array I discovered this intriqing example question and have a curiousness of how such a C++ program would be coded. Can someone please show how the source code and any output would look like?

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. Code a program that stores this information in a two-dimensional 3 x 7 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 output 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

Reference no: EM132075126

Questions Cloud

What is the amount of fica tax : He has no voluntary deductions. His yearly pay is under the limit for OASDI. What is the amount of FICA tax that will be withheld from Berkley's pay
Use while loop to find the digit of integer : Take a user input integer, and print out the digit by digit. (can enter any positive number, e.g. 123, 34567,37,... )(hint: first you need to find the digit
Determine the price of the bonds at january : On January 1, 2016, Bishop Company issued 10% bonds dated January 1, 2016 with a face amount of $20 Million. Determine the price of the bonds at January
What are the memory requirements of arrays : What are Arrays? What are the memory requirements of Arrays? How do you access Array Elements?
Average amount of food eaten per day : 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
Determine the effective interest rate : Bencorp issues a $90,000, 6 month, non-interest bearing note that the bank discounted at a 10% discount Rate. Determine the effective interest Rate
What is the importance of creating your own data types : What is the importance of creating your own data types? What are the benefits and drawbacks from developing your own data types?
What was the original estimated life of the machine : On 1/1/16 Volcano sold the machine for $40,000. A gain of $20,000 was recorded. What was the original estimated life of the machine
Output various methods of passing structure variables : Can someone please explain with examples of source code and output various methods of passing structure variables as arguments to functions in C++.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Program to translates letter grade into number grade

In C++ (should be able to compile in Visual Studio 2010): Write a program to translates letter grade into number grade. Letter grades are A,B,C,D and F, possibly followed by a + or -.

  How many whole numbers they wish to enter

Write a program, which will ask the user how many whole numbers they wish to enter. The program will then read that many numbers, print them in the order they were entered, sort them in order by increasing value, and print them in sorted order.

  Which of the following is a true statement

Which of the following is a true statement?

  Design how to do the logic in your own words first

Design how to do the logic in your own words first. Do not even think about C until you understand the true false logic and the arithmetic needed to do it. Make sure you have a formula or a plan to calculate each case.

  Flipflapsthe project is to design and write a c 11fltk game

flipflapsthe project is to design and write a c 11fltk game program with a graphical user interface.the game is based

  Read ascii strings from standard input

Your program must read 8-bit ASCII strings from standard input -- for instance, using the cin object in C++, or stdin in C. You must consume all input from standard input

  Program that prints out any size triangle based on 2 inputs

My goal is to write a program that prints out any size triangle based on either one or two inputs (would prefer 2; e.g. range[a, e]). Each line of the triangle will be centered and looks like the attached output (equilateral triangle).

  Program that uses the attached data file as input

Please do this the easiest way possible, I am learning C++ by myself but I just don't understand input/output so this will help me understand it better.

  Program of a class date which displays the date

Write a C++ program of a Class Date which displays the date. Use the subsequent requirements:

  Write a c++ program that prompts the user for a double

Write a C++ program that prompts the user for a double that is either positive or negative.

  What is the output of the corrected loop

What is the output of the loop as it is written and correct the syntax of the loop so that the logic of the corrected loop corresponds to the formatting of the original loop. What is the output of the corrected loop?

  Implement a second-order low-pass filter

Implement a second-order low-pass filter using the finite difference method. The finite difference method is a useful mathematical method that is used to numerically solve differential equations.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd