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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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