Write program that stores this information in a two-d array

Assignment Help Programming Languages
Reference no: EM131320974

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 3 × 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 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.

Reference no: EM131320974

Questions Cloud

Identify the variables of the marketing mix : Objectives - Identify the variables of the marketing mix and gain skill in combining them. Within the Discussion Board area, write 750-1,000 words that respond to the following questions with your thoughts, ideas, and comments
Media program to build consumer engagement : "Suppose that Samsung wants to create a social media program to build consumer engagement around a new line of smartphones. Using the 4Es (Excitement, Education, Experience and Engagement) framework, explain (with examples) how Samsung could build..
Discuss how you have planned for your retirement so far : Discuss how you have planned for your retirement so far, whether you are on track to reaching your goals, and what changes you need to make. Are there any specific ideas that will help you reach your goals and if so, discuss.
Yield to maturity and required returns : Yield to Maturity and Required Returns The Brownstone Corporation's bonds have 6 years remaining to maturity. Interest is paid annually, the bonds have a $1,000 par value, and the coupon interest rate is 9%. What is the yield to maturity at a current..
Write program that stores this information in a two-d array : Write a program that stores this information in a two dimensional 3 × 7 array, where each row represents a different monkey and each column represents a different day of the week.
How should volkswagen handle the emissions scandal : How should Volkswagen handle the emissions scandal in an ethical way? Discuss the related ethical issues from both consumer and brand manager perspectives
Net present value-annual pretax cost savings : CSM Machine Shop is considering a four-year project to improve its production efficiency. Buying a new machine press for $486,000 is estimated to result in $185,000 in annual pretax cost savings. The press falls in the MACRS five-year class (MACRS Ta..
Bond valuation and interest rate risk : Bond Valuation and Interest Rate Risk The Garraty Company has two bond issues outstanding. Both bonds pay $100 annual interest plus $1,000 at maturity. Bond L has a maturity of 15 years, and Bond S has a maturity of 1 year. What will be the value of ..
Develop auto inventory system which contains functionality : You will develop a simple auto inventory system which contains the following basic functionality: Read the supplied autoInventory.txt file to obtain the auto inventory with the file path supplied as the first run-time parameter.

Reviews

Write a Review

Programming Languages Questions & Answers

  This program is a simple shopping list

This program is a simple shopping list that could also be used for TODOs or similar purposes. The program maintains a list of items in a file, and each item has:

  Implement a rule crypto that solves cryptarithmetic problem

Programming Languages Assignment. Implement a rule "crypto" that solves the following cryptarithmetic multiplication problem: TOCK * TOCK = GRIPTOCK

  Write a prolog program to solve the water jugs problem

Write a Prolog program to solve the water jugs problem: There are two jugs, one holding 3 and the other 5 litres of water. A number of things can be done with the jugs: they can be filled, emptied, and dumped one into the other either until the pou..

  Create database tables in mysql

Write the SQL command to find any tutors who have not submitted a report for July

  Give a flowchart and a pseudocode for the program.

The type field holds the type of animal that is the pet. Example values are "Dog", "Cat", and "Bird".

  User defined function to calculate average of three scores

A user defined function that will calculate and display the average of the 3 scores that remain after dropping the highest and lowest scores the performer received.

  Write the code to display a menu and test it

Write a method to display instructions to the user, Write the code to display a menu and test it, Write the code to display the contents of the data file line by line

  Which two are valid constructors for thread

Which two are valid constructors for Thread?1) Thread(Runnable r, String name)2) Thread()

  Calculates and displays the property tax

Write a java application that calculates and displays the property tax for N property owners. N should be declared as a constant and it should be equal to the largest digit of your student ID number

  Design program and incorporates sequential statements

Design the simple, working C++ program which uses the good design process and incorporates sequential, selection and repetitive programing statements and function.

  Constructors need to be declared for each class.

Hi, I need helping figuring out the following questions. I need to identify the following statements as either true or false. If an answer is true, I need to explain why and, where appropriate, provide an example. If the answer is false, I also ne..

  Write function template to return number of element in queue

Add operation queueCount to class queueType (the array implementation of queues), to return number of elements in the queue. Write down the definition of function template.

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