Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 3 : Write a program to calculate Body Mass Index ( BMI ) and display a message about the diagnosis of BMI. The program
Problem : Write a program to calculate Body Mass Index BMI and display a message about the diagnosis of BMI. The program prompts the user to input hisher valid height in height and valid weight in weight The program then converts units from to and from to BMI is calculated as BMI The program displays a message according to the values of the diagnosis of BMI as follows:
tableBMIMessageBMI Under weight BMI Congratulations, you have an ideal weightBMI Over weight
Input Output Samples:
Bnter weight in and height in : Your weight or height is incorrect
Bnter weight in and height in : your weight in your height in your BMI is and you are under weight
Enter weight in and height in cm:
your weight in
your height in
your BMI is Congratulations, you have an ideal weight!
Enter weight in and height in cm:
your weight in
your height in
your BMI is and you are over weight
I need answer with c
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started