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..
Answers: 2
Mathematics, 21.06.2019 18:30
Is the square root of 4 plus the square root of 16 rational?
Answers: 2
Mathematics, 21.06.2019 23:30
Sally deposited money into a savings account paying 4% simple interest per year.the first year,she earn $75 in interest.how much interest will she earn during the following year?
Answers: 1
Mathematics, 21.06.2019 23:50
What is the scale factor of two similar pyramids with volumes of 64 cubic feet and 8 cubic feet
Answers: 1
Please help
Generally speaking, on average it takes you 3500 calories each day to maintain your wei...
Mathematics, 20.10.2019 14:10
Chemistry, 20.10.2019 14:20
Social Studies, 20.10.2019 14:20
Mathematics, 20.10.2019 14:20
History, 20.10.2019 14:20
Mathematics, 20.10.2019 14:20
Computers and Technology, 20.10.2019 14:20