Question: Notes . In if-else statements, indent statements to be executed for if or else conditions three to five spaces. Align else or else if with

Notes . In if-else statements, indent statements to be executed for if or else conditions three to five spaces. Align else or else if with corresponding if. If functions are required, include a statement of purpose for each function. Prompt the user to enter the first letter of the color of a cylinder. Then use a switch statement, output the contents of the cylinder to the console screen, using this table 1. For a cylinder of this color Orange Brown Yellow Green User inputs It contains this B" or 'b Y' or Ammonia Carbon Monoxide Hydrogen 2. Write a program that calculates the user's body mass index(BMI) and categorizes it as underweight, normal, overweight or obese base on the table below: BMI Below 18.5 18.5-24.9 25.0-29.9 30.0 and above Weight Status Underweight Normal Overweight Obese Prompt the user to enter the person's weight in pounds and the person's height in inches. Use the following formula to calculate the BMI 703 * weight height2 BMI = Output the calculated BMI to the console window and the determined "weight status" based on that number. Test with 200 pounds and 72 inches You must use a ifelse ifelse structure for this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
