Question: How do I write a C program that calculates calories used per day of a 1500calories/day/7 days/week diet, starting at 0 calories and increasing by

How do I write a C program that calculates calories used per day of a 1500calories/day/7 days/week diet, starting at 0 calories and increasing by xcalories per meal and returns allowable left for the day and for the week; incorporating user defined functions(which have input and output) and loops (while, for, and/or do-while) and decision statements(if/else, switch) and utilizes pointers for file input/output in one version of program and manual input and output to screen in a second version of program. Input file has 18 values from 200calories to 500 calories for the 7 days. Output file would be the result of those deductions from the total of 1500/day and 10,500/wk

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!