Program Code Screenshot :
![Main.java import java.util.Scanner; 1 2 3 4 5 class Main { public static void main(String[] args) { Scanner obj = new Scanner](http://img.homeworklib.com/questions/3d457e70-de33-11ea-8e72-1750d3fcedd3.png?x-oss-process=image/resize,w_560)
Sample Output :

Program Code to Copy
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner obj = new Scanner(System.in);
//Array to store food
double food[][] = new double[3][5];
double total = 0;
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 5; j++) {
//Read food
food[i][j] = obj.nextDouble();
while(food[i][j]<0){
System.out.print("Quantity can't be negative. Please re-enter : ");
food[i][j] = obj.nextDouble();
}
}
}
//Initialize min and max
double max = food[0][0];
double min = food[0][0];
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 5; j++) {
while(food[i][j]<0){
System.out.print("Quantity can't be negative. Please re-enter : ");
food[i][j] = obj.nextDouble();
}
//Find total
total += food[i][j];
//Find max and min
max = Math.max(max, food[i][j]);
min = Math.min(min, food[i][j]);
}
}
double avg = total/15d;
//Print results
System.out.println("Average amount of food "+avg);
System.out.println("Least amount of food "+min);
System.out.println("Greatest amount of food "+max);
}
}In java 1. Monkey Business (10 points) A local zoo wants to keep track of how...
C++ Monkey Business 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 × 5 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...
Pseudocode please
Special Problem for Swap 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 x 7 array, where each row represents a different monkey and each column represents a different day of the week. The monkeys are represented by integers 1, 2, and 3; the weekdays are "Sunday" "Monday" "Tuesday". "Wednesday. Thursday"....
In C++ Rewrite Modularity section to clarify functions should be separate. Assignment 6 - Monkey Food In the Gaddis textbook read Chapter 8 sections 8.1-8.9 before starting this assignment. This assignment is Programming Challenge 4 from Chapter 8 of the textbook. 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 x 7 arrray,...
In C++ Rewrite Modularity section to clarify functions should be separate. Assignment 6 - Monkey Food In the Gaddis textbook read Chapter 8 sections 8.1-8.9 before starting this assignment. This assignment is Programming Challenge 4 from Chapter 8 of the textbook. 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 x 7 arrray,...
What are the 8 errors in this C++ program below: /* CSE 100 Professor Feng Learn to read data from user and fill a two-dimensional array. Learn how to compute the sum of one row or one column in a 2D array Learn how to compute the sum, average of a 2D array */ #include<iostream> #include<cmath> #include<iomanip> using namespace std; double bananaMon=0; //Global Variables to be used in the program double bananaSat=0; double totalSum=0.0; //Global variable total sum double findGroupTotal();...
Write a program in java. You are tasked with writing an application that will keep track of Insurance Policies. Create a Policy class called InsurancePolicies.java that will model an insurance policy for a single person. Use the following guidelines to create the Policy class: • An insurance policy has the following attributes: o Policy Number o Provider Name o Policyholder’s First Name o Policyholder’s Last Name o Policyholder’s Age o Policyholder’s Smoking Status (will be “smoker” or “non-smoker”) o Policyholder’s...
Looking for some help with this Java program I am totally lost
on how to go about this.
You have been approached by a local grocery store to write a program that will track the progress of their sales people (SalesPerson.java) The information needed are: D Number integer Month 1 Sales Amount-Double Month 2 Sales Amount-Double Month 3 Sales Amount-Double Write a Java program that allows you to store the information of any salesperson up to 20 While the user...
This needs to be written in Python. I'm writing this but I'd love to see how others would do it. I have idea to make a program to keep track of reading. Set goal per day. Input minutes per day & book read. Could accumulate for whole month. Input daily, but you can input it all at the end of the week if you want. I want the user to be prompted to enter a numerical value and book for...
Please write a Java program that ask the user how many beers he or she expects to consume each day, on average, as well as the average amount of money he or she spends on a single 12-ounce can of beer. Studies have shown that, on average, someone who consumes a single 12-ounce can of beer every day without compensating for the calorie intake through diet modifications or extra exercise, will gain approximately 15 pounds in one year. You can...
I am writing a Python program to serve as a fitness tracker. I would love some input as to how you would code this. I've included what I want this program to accomplish, what I will keep track of, and below all of that I have posted the assignment guidelines. Any suggestions on how to make this better/ more efficient would be welcome! I'm thinking of making a weekly tracker that takes input per day, and outputs at the end...