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, 21.06.2019 16:00
Areal estate agent earns $32,000 a year plus $1,000 for each apartment he sells. write an equation that shows the relationship between the number of apartments abe sells,n, and the total amount he earns in a year,e. what is the total amount abe would earn from selling 10 apartments in one year
Answers: 3
question
Mathematics, 21.06.2019 17:00
If the wwight of a package is multiplied by 7/10 the result is 65.8 find the weight of the package
Answers: 1
question
Mathematics, 21.06.2019 19:00
Use the quadratic formula to solve the equation. if necessary, round to the nearest hundredth. x^2 - 8 = -6x a. –7.12, 1.12 b. 7.12, –1.12 c. 7.12, 1.12 d. –7.12, –1.12
Answers: 2
question
Mathematics, 21.06.2019 20:30
If a 36 inch yardstick casts a 21 foot shadow, how tall is a building whose shadow is 168 feet? what is the scale factor
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
Biology, 04.11.2020 07:00
question
Mathematics, 04.11.2020 07:10
question
Computers and Technology, 04.11.2020 07:10
question
Mathematics, 04.11.2020 07:10
question
Mathematics, 04.11.2020 07:10
question
Mathematics, 04.11.2020 07:10
Questions on the website: 13722367