Assignment 0 Java - norgedc84/Java-Programming-2 GitHub Wiki
Assignment 0
Create a Java Program as per instructions below: A local zoo wants to keep track of how many pounds of food each of its four monkeys eats each day during a typical week. Write a program that stores this information in a two dimensional 4 × 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 (displayed on the console) that includes the following information: • Average amount of food eaten daily by the whole family of monkeys. • Average amount of food eaten weekly by each monkey. • The least daily amount of food eaten during the week by any one monkey. • The greatest daily amount of food eaten during the week by any one monkey. Additional requirements:
- Your class must be named MonkeyBusiness.
- Create a method to obtain the user input.
- Create methods to compute and display each of the quantities above.
- Do not accept negative numbers for pounds of food eaten by the monkeys.
- Do not accept a number greater than 50 for pounds of food eaten by the monkeys.
Upload the code files (MonkeyBusiness.java) as your submission. Before 05/16 midnight. Include the following header at the top of each of the submitted code files (substitute bold items as needed): /*-------------------------------------------------------------------- Name: Your Name
Student ID: Your Student ID
COP 2805C - Java Programming 2
Semester / Year
Assignment # X
Plagiarism Statement
I certify that this assignment is my own work and that I have not copied in part or whole or otherwise plagiarized the work of other students and/or persons. --------------------------------------------------------------------*/