subject

88 points 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 readable 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

ansver
Answers: 3

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 24.06.2019 01:00
Agroup leader is speaking to his group about the need to increase productivity. in order to avoid offending the group members, he is being vague and indirect. his comments are met with confused looks. which area of individual competence is lacking
Answers: 2
question
Advanced Placement (AP), 24.06.2019 16:00
The biome pictured above is found in areas such as kenya and south africa. the land is grass-covered with very few trees and gazelles and other grazers are common here. why does this biome have a low population of trees? a) large grazing animals destroy the trees. b) it is a deforested rainforest with poor soil. c) it has high temperatures and low precipitation. d) it has a long rainy season followed by flooding.
Answers: 1
question
Advanced Placement (AP), 26.06.2019 09:10
What is a purpose of using a standardized recipe in a food service establishment? creativitycan be adjusted based upon inventorycan be adjusted for guest preferenceconsistency .
Answers: 2
question
Advanced Placement (AP), 26.06.2019 10:00
Which of the following ideas would not lead to lower amounts of waste? a) the extension of a product’s lifetime b) the elimination of unnecessary packaging c) flexible construction for simple repair d) built-in obsolescence e) the introduction of new design technology
Answers: 1
You know the right answer?
88 points Generally speaking, on average it takes you 3500 calories each day to maintain your weight...
Questions
question
Social Studies, 13.12.2021 04:50
question
Mathematics, 13.12.2021 04:50
question
Mathematics, 13.12.2021 04:50
question
Mathematics, 13.12.2021 04:50
question
Mathematics, 13.12.2021 04:50
Questions on the website: 13722367