Question: Before attempting this project, be sure you have completed all of the reading assignments, non- graded exercises, discussions, and assignments to date. Write a Java
Before attempting this project, be sure you have completed all of the reading assignments, non- graded exercises, discussions, and assignments to date. Write a Java program as follows: (1) Prompt the user which action they want to take: (a) Convert pounds into kilograms (b) Convert height in inches to centimeters (c) Calculate BMI display category (d) Exit program (2) Programs at minimum must have the following methods: (a) Convert weight method gets pounds and returns kilograms (6) Convert to height method that gets height in inches and returns meters (c) Calculate BMI method that gets weight in kilograms and height in meters and returns BMI value (3) For each action the user should be prompted for corresponding data and given the appropriate output (4) User should be able to select one action and then get prompted again for selection until they select exit choice Use the following for calculations To convert from pounds to kilograms use the formula: 1 pound =0.45 kilograms To convert from height in inches to centimeters use the following formula: 1 inch = 2.54 cm To calculate BMI use the formula: weight-kg/height-cm/height-cm * 10,000 For categories use: o Underweight 30.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
