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: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
1. so if i wanted to build a linux server for web services(apache) with 1cpu and 2 gb of memory.-operating at 75% of memory capacity2. a windows server with 2 cpu/ 4gb memory- operating at 85% of memory capacity3. a storage server with 1 cpu/ 2gb memory- operating at 85% of memory capacityhow much memory do i have to add for each server.so that the utilization rate for both cpu and memory is at a baseline of 60%."the details for the cpu like its processor or the memory's speed isnt to be concerned" yeah i kept asking my teacher if he's even sure about the but the whole class seems to be confused and the project is due in 3 days..this is a virtualization project where i have to virtualize a typical server into an exsi hypervisor.
Answers: 2
question
Computers and Technology, 23.06.2019 00:40
Consider the following statements: struct nametype{string first; string last; }; struct coursetype{string name; int callnum; int credits; char grade; }; struct studenttype{nametype name; double gpa; coursetype course; }; studenttype student; studenttype classlist[100]; coursetype course; nametype name; mark the following statements as valid or invalid. if a statement is invalid, explain why.a.) student.course.callnum = "csc230"; b.) cin > > student.name; c.) classlist[0] = name; d.) classlist[1].gpa = 3.45; e.) name = classlist[15].name; f.) student.name = name; g.) cout < < classlist[10] < < endl; h.) for (int j = 0; j < 100; j++)classlist[j].name = name; i.) classlist.course.credits = 3; j.) course = studenttype.course;
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Visualizing a game of “tag” to remember the meaning of contagious
Answers: 3
question
Computers and Technology, 24.06.2019 11:20
Print "censored" if userinput contains the word "darn", else print userinput. end with newline. ex: if userinput is "that darn cat.", then output is: censoredex: if userinput is "dang, that was scary! ", then output is: dang, that was scary! note: if the submitted code has an out-of-range access, the system will stop running the code after a few seconds, and report "program end never reached." the system doesn't print the test case that caused the reported message.#include #include using namespace std; int main() {string userinput; getline(cin, userinput); int ispresent = userinput.find("darn"); if (ispresent > 0){cout < < "censored" < < endl; /* your solution goes here */return 0; }
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
Health, 16.02.2021 22:20
question
Mathematics, 16.02.2021 22:20
question
Social Studies, 16.02.2021 22:20
Questions on the website: 13722360