Develop a body mass index (BMI) calculator program that reads body weight and height as inputs and calculate the BMI based on the following formula: BMI = Weight/Height? Using the calculated BMI, determine the individual weight category based on the following Table 1 and the program will count how many user's BMI based on a particular category : Table 1 BMI Category > 30 25 – 30 You are obese 18.5 – 24.9 < 18.5 Your weight is overweight You have an ideal weight You are too thin Use if...else statements or switch statements and loop where it is appropriate and create a program with the following output ********* PROGRAM TO CALCULATE BMI & CATEGORY********* Please enter your weight(kg): Please enter your height (m) : Your BMI is 19.38. 56 1.7 Your have an ideal weight Would you like to calculate another BMI? y = yes, n = no :y Please enter your weight (kg): Please enter your height (m) : Your BMI is 30.47. 78 1.6 You are obese Would you like to calculate another BMI? y = yes, n = no : obes 1 overweight : 0 : 1 : 0 ideal thin Thank you for using BMI calculator i) Draw flowchart of the solution. ii) Write a complete C program based on the problem.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Write a C program and draw a flowchart
Develop a body mass index (BMI) calculator program that reads body weight and height as
inputs and calculate the BMI based on the following formula:
BMI = Weight/Height?
Using the calculated BMI, determine the individual weight category based on the following
Table 1 and the program will count how many user's BMI based on a particular category :
Table 1
BMI
Category
> 30
You are obese
Your weight is overweight|
You have an ideal weight
25 – 30
18.5 – 24.9
< 18.5
You are too thin
Use if...else statements or switch statements and loop where it is appropriate and create a
program with the following output
********* PROGRAM TO CALCULATE BMI & CATEGORY*********
Please enter your weight(kg):
Please enter your height(m) :
Your BMI is 19.38.
Your have an ideal weight
56
1.7
Would you like to calculate another BMI?
y = yes, n = no :y
Please enter your weight(kg):
Please enter your height(m) :
Your BMI is 30.47.
78
1.6
You are obese
Would you like to calculate another BMI?
y = yes, n = no :
obes
: 1
overweight : 0
ideal
thin
: 1
: 0
Thank you for using BMI calculator
i)
Draw flowchart of the solution.
ii)
Write a complete C program based on the problem.
Transcribed Image Text:Develop a body mass index (BMI) calculator program that reads body weight and height as inputs and calculate the BMI based on the following formula: BMI = Weight/Height? Using the calculated BMI, determine the individual weight category based on the following Table 1 and the program will count how many user's BMI based on a particular category : Table 1 BMI Category > 30 You are obese Your weight is overweight| You have an ideal weight 25 – 30 18.5 – 24.9 < 18.5 You are too thin Use if...else statements or switch statements and loop where it is appropriate and create a program with the following output ********* PROGRAM TO CALCULATE BMI & CATEGORY********* Please enter your weight(kg): Please enter your height(m) : Your BMI is 19.38. Your have an ideal weight 56 1.7 Would you like to calculate another BMI? y = yes, n = no :y Please enter your weight(kg): Please enter your height(m) : Your BMI is 30.47. 78 1.6 You are obese Would you like to calculate another BMI? y = yes, n = no : obes : 1 overweight : 0 ideal thin : 1 : 0 Thank you for using BMI calculator i) Draw flowchart of the solution. ii) Write a complete C program based on the problem.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY