Question: Write a program that display a message indicating whether the person has optimal weight, is underweight, or is overweight. The program should ask the user

 Write a program that display a message indicating whether the person
has optimal weight, is underweight, or is overweight. The program should ask

Write a program that display a message indicating whether the person has optimal weight, is underweight, or is overweight. The program should ask the user to enter a number within the range of 1 through 3. Use switch statements to display the appropriate message according to body mass index (BMI) value. Expected outputs: Microsoft Visual Studio Debug Console Body Mass Index 1- BMI less than 18.5 2- BMI betueen 18.5 to 25 3- BMI greater than 25 Please select a number between 1 to 3 according to your BMI : 1 You are underveight. Microsoft Visual Studio Debug Console Body Mass Index 1- BMI less than 18.5 2 - BHI hetween 18.5 to 25 3- BMI greater than 25 Please select a number between 1 to 3 according to your BMI : 3 You are overveight. Microsoft Visual Studio Debug Console Body Mass Index 1- BMI less than 18.5 2- BMI between 18.5 to 25 3- BMI greater than 25 Please coloct a nunbor between 1 to 3 according to your BMI : 2 Your weight is optimal. Microsoft Visual Studio Debug Console Body Mass Index 1- BMI less than 18.5 3- BMI between 18.5 to 25 3- BMI greater than 25 Please select a number between 1 to 3 according to your UNI : 5 Invalid choice: choose a nunber 1 -3. C++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!