Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C 1. Write a Calorie Calculator program to determine what a person's caloric intake should be for a 24 hour span. The program must

In C image text in transcribed
1. Write a Calorie Calculator program to determine what a person's caloric intake should be for a 24 hour span. The program must make a decision about caloric intake, to maintain current body weight, based on gender, age, weight, and height, and activity level. Before you implement any code, you must draw a flowchart on the whiteboard. Below is the start of flowchart that will help you with this program: perform low activity 2. The Program must first compute the Basal Metabolic Rate (BMR). The BMR formula is the following: Women: BMR - 655+ (4.35 weight in pounds) + (4.7" height in inches) - (4.7" age in years) Men: BMR - 66+ (6.23 * weight in pounds) (12.7" height in inches). (6.8 age in years) To determine total daily calorie needs, your program must apply the following guidelines: 1. Sedentary little to no exercise): Calories BMR 1.2 2. Low activity: Calories BMR * 1.375 3. Moderate activity: Calories BMR 1.55 4. High activity: Calories - BMR 1.725 5. Extra activity: Calories - BMR 1.9 Define functions where appropriate! Also, read age, gender, weight, and height values from a file. How should you arrange the data in your .txt file to represent each of the values? The way you organize the file will directly impact the way your program reads the data from the file. Be very meticulous with the organization of your .txt file

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions

Question

c. What were you expected to do when you grew up?

Answered: 1 week ago

Question

d. How were you expected to contribute to family life?

Answered: 1 week ago

Question

e. What do you know about your ethnic background?

Answered: 1 week ago