Question: They are two question do it in Java program. I tried to answer it but I couldn't Assignment2 Due date: 12-March Q1. Write a program
Assignment2 Due date: 12-March Q1. Write a program that calculates the users body mass index(BMI) and categorizes it as underweight, normal, overweight or obese, based on it following table from United States Centers for Disease Control: BMI Weight Status Below 18.5 Underweight 18.5-24.9 Normal 25.0-29.9 Overweight 30.0 and above Obese To calculate BMI based on weight in pounds(wt_lb) and height in inches[ht_in), use this formula: 703*wt_ID Ht_in? Prompt the user to enter weight in pounds and height in inches. Q2. Write a program that reports the contents of a compressed-gas cylinder based on the first letter of the cylinder's color. The program input is a character representing the observed color of the cylinder: wy" or "Y" for yellow, "O" or "o" for orange, and so on. Cylinder colors and associated contents are as follows: Orange ammonia carbon monoxide hydrogen Green oxygen Your program should respond to input of a letter other than the first letters of the given colors with the message, Contents unknown. (Use switch case) Brown Yellow
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
