subject
Mathematics, 24.01.2021 21:20 norahfrost

Please help Generally speaking, on average it takes you 3500 calories each day to maintain your weight, while 3500 extra calories generally equals 1 pound of weight gain (So, 7000 calories in one day would mean that you gained 1 pound that day).

Prompt for 7 days of calories consumed by day, starting with Sunday and going through Saturday and put the calories into an array. Print the array along with a nicely formatted header (printf is a requirement for this part of the program).

Write a method to calculate the total amount of calories consumed for the week and print the information in a nice format.

Write a method to calculate the average number of calories consumed in the week to the nearest tenth and print the information in a nice format.

Write a method to find if you gained or lost weight this week. Subtract your ideal calories to maintain your weight (7 * 3500) from the calories you consumed for the week. Did you gain or lose weight this week and by how many pounds to the nearest tenth of a pound? Print the information in a nice format.

Use the following test input to ensure your program is running properly:
Sunday - 4700 calories
Monday - 2500 calories
Tuesday - 2000 calories
Wednesday - 1800 calories
Thursday - 3000 calories
Friday - 1500 calories
Saturday - 3500 calories

This is in java..

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 20.06.2019 18:02
Ahas the coordinates (–4, 3) and b has the coordinates (4, 4). if do,1/2(x, y) is a dilation of △abc, what is true about the image △a'b'c'? check all that apply. ab is parallel to a'b'. do,1/2(x, y) = the distance from a' to the origin is half the distance from a to the origin. the vertices of the image are farther from the origin than those of the pre-image. a'b' is greater than ab.
Answers: 3
question
Mathematics, 21.06.2019 20:00
For what type of equity loan are you lent a lump sum, which is to be paid within a certain period of time? a. a line of credit b. equity c. a second mortgage d. an amortization
Answers: 3
question
Mathematics, 21.06.2019 22:00
Students at a high school were asked about their favorite outdoor activity. the results are shown in the two-way frequency table below. fishing camping canoeing skiing total boys 36 44 13 25 118 girls 34 37 22 20 113 total 70 81 35 45 231 select all the statements that are true based on the given table. more girls chose camping as their favorite outdoor activity than boys. more girls chose canoeing as their favorite outdoor activity than those who chose skiing. more boys chose skiing as their favorite outdoor activity than girls. there were more boys surveyed than girls. twice as many students chose canoeing as their favorite outdoor activity than those who chose fishing. more students chose camping as their favorite outdoor activity than the combined number of students who chose canoeing or skiing.
Answers: 1
question
Mathematics, 22.06.2019 04:50
Julius went on a volunteer trip to centralamerica and took medical supplies with him.he packed a bag with 50 pounds of supplies.he brought pieces of equipment that weighed10 pounds each and bottles of medicine thatweighed pound each prepresents thenumber of pieces of equipment he broughtand b represents the number of bottles ofmedicine he brought then the total weight canbe represented by the equation 10p+b 50.the brought 3 pieces of equipment, how manybottles of medicine did he bring?
Answers: 1
You know the right answer?
Please help Generally speaking, on average it takes you 3500 calories each day to maintain your wei...
Questions
question
Mathematics, 04.12.2020 21:30
question
Mathematics, 04.12.2020 21:30
question
Mathematics, 04.12.2020 21:30