Answered step by step
Verified Expert Solution
Link Copied!

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 

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... 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_2

Step: 3

blur-text-image_3

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

Introduction to Java Programming, Comprehensive Version

Authors: Y. Daniel Liang

10th Edition

133761312, 978-0133761313

More Books

Students also viewed these Programming questions

Question

How does deviance play a role in the ideal society? explain

Answered: 1 week ago