Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a console application that allows the user to enter weight in kilograms and height in centimetres and calculates the body mass index (BMI).
Write a console application that allows the user to enter weight in kilograms and height in centimetres and calculates the body mass index (BMI). Use the following formula to calculate the BMI: bmi=weight/((height"height)/100)*100; For example: Enter weight >> 125 Enter height >> 188 Your BMI is >>35.36668175645089 10bese Use the following classifications to determine BMI and print out the results messages. Classification BMI Underweight Below 18.5 Normal Overweight Obese Criteria Variable Declarations Input Calculations Output 18.5-24.9 25-29.9 30 and above Operation Marks Variables are declared and initialised 5 marks properly. Weight and height values are captured 4 marks correctly. BMI is correctly calculated using the 2 marks given formula Based on BMI classifications, the 8 marks correct output is displayed on the screen.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Steps Step 1 of 3 Here I am providing the c code for yo...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