Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

computer science 1 please use java NetBeans write in java Q1. Write a program that calculates the users body mass index(BMI) and categorizes it as

computer science 1 please use java NetBeans

write in java 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_lb

Ht_in2

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 cylinders color. The program input is a character representing the observed color of the cylinder: Y or y for yellow, O or o for orange, and so on. Cylinder colors and associated contents are as follows:

Orange ammonia

Brown carbon monoxide

Yellow 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)

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

Recommended Textbook for

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions

Question

What is meant by decentralisation of authority ?

Answered: 1 week ago

Question

Briefly explain the qualities of an able supervisor

Answered: 1 week ago

Question

Define policy making?

Answered: 1 week ago

Question

Define co-ordination?

Answered: 1 week ago

Question

What are the role of supervisors ?

Answered: 1 week ago

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago