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), 25.06.2019 11:40
The sociological perspective focuses on what? a. general social patterns b. individual behaviors c. biological explanations d. mental processes
Answers: 1
question
Advanced Placement (AP), 25.06.2019 23:00
Use the conversion factors to rewrite the distances in different, but equivalent, units. celestial objects distance from the star object a 0.000001877 pc object b 30.06 au object c 778.3 million km
Answers: 1
question
Advanced Placement (AP), 26.06.2019 04:00
What information does a survey provide? a. an accurate description of the population surveyed b. whether there is a predictive relationship between two variables? c. whether there is a cause-and-effect relationship between two variables d. none
Answers: 2
question
Advanced Placement (AP), 27.06.2019 01:00
Type the correct answer in each box. use numerals instead of words. amanda is placing an order for running shoes and leather boots for her footwear boutique. she needs a total of 48 pairs of shoes and twice as many pairs of running shoes as leather boots. set up the two equations that can be used to find the number of each type of shoe that amanda needs to order. let the equation that represents the total number of pairs of shoes be referred to as constraint 1. let constraint 2 refer to the equation that describes the ratio of the number of running shoes to leather boots.
Answers: 3
You know the right answer?
88 points Generally speaking, on average it takes you 3500 calories each day to maintain your weight...
Questions
question
Mathematics, 26.07.2019 03:30
Questions on the website: 13722363