Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please write in basic C++ nothing complicated. Write a program that display a message indicating whether the person has optimal weight, is underweight, or is

please write in basic C++ nothing complicated.
image text in transcribed
image text in transcribed
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 - BMI less than 18.5 2- BMI betueen 18.5 to 25 3- BMI greater than 25 Please select 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 10.5 - II hatunen 1.5 to 25 3 - Lyreater than 25 Please select a number hetuen 1 to 3 according to your : 3 You are overweight. Microsoft Visual Studio Debug Contole Body Mass Index - 1 less than 10.5 2- I bet 18.5 to 25 TIMI enter than 26 Please select number on to according to your BMI 2 Your ught is optimal Microsoft Visual Studio Debug Console Body Mass Index 11- BMI less than 18.5 2- BMI between 18.5 to 25 2- IMI greater than 25 Please select a nunber between 1 to 3 according to your BMI : 2 Your weight is optinal. Microsoft Visual Studio Debug Console Body Mass Index 1- UML less than 10.5 - BMI between 18.5 to 25 3- UMI greater than 25 Please select a number between 1 to y according to your BMI 5 Invalid choicet choose a nunber 1-3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions