Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The BMI or body Mass index, is a measure of one's body fat based upon individual's height and weight. It can determine whether or not

image text in transcribed

image text in transcribed

The BMI or body Mass index, is a measure of one's body fat based upon individual's height and weight. It can determine whether or not an individual overweight or obese. The formula for calculating BMI is as following: BMI = weight In Pounds x 703/height In Inches x height In Inches The following table can be used to evaluate a BMI score. Less than 18.5 Underweight Between 18.5 and less than 25.0 Normal Between 25.0 and less than 30.0 Overweight 30.0 or greater Obese For this lab you are to construct a C program. c which includes a calculate BMI () that prompts the user to input a weight in pounds and height in inches and then calculates and displays the body mass index. The function should also display whether a person is underweight normal overweight or obese. Be sure that the user prompts as well as the height and weight values input the program are displayed in the output file. Note that the resultant BMI values should be displayed to one decimal place. The variables in your function that receive the height and weight values should be declared as double. provided below is the main () function that I would like you to use for your program. Please do not modify the main () function. It should appear as the first function in the program. Be sure to use function prototypes for each of the functions that are used in your program. Note that the for loop invokes the calculate BMI () function four times. Each time the calculate BMI () function is invoked, a different weight and height will be entered. Please be sure to use the data shown below: Output from your program should be sent to the terminal window (your screen) as well as the requested cases. txt output file. Be sure to read the document on Capturing Program Output. Your full name must appear as a comment in the source file that contains main (). Be sure to include the cases. txt output file in your zip archive

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

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

More Books

Students also viewed these Databases questions

Question

6. Vanguard

Answered: 1 week ago

Question

1. PricewaterhouseCoopers

Answered: 1 week ago