Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using if or swich statements java Exercise Write a program that gets three numbers from the user and prints them in descending order (biggest to
using if or swich statements
java
Exercise Write a program that gets three numbers from the user and prints them in descending order (biggest to smallest) Example: Enter three numbers: 4 91 The three numbers in descending older are 941 Exercises Write a program that will ask the user about his weight (in kilograms) and height (in meters). then will output his Body Mass Index (BMI) and his category according to this chart: BMI Weight Status Below 185 Underweight 18.5 24.9 Nomial 25029.9 Overweight 30.0 and Above Obese Body Mass Index (or BMD) is calculated as your weight in kilograms) divided by the square of your height (in metres) or BMI-KM Example 1: Enter your weight in Kilograms: 50 You're your height in Meters: 1.7 Your BMI is Underweight Example 2 Enter your weight in Kilograma: 100 You're your height in Meters: 1 Your BMI is Obese Exercise Write a program to ask the user for a transaction type, old balance, and the money amount for the transaction. Then it tells the user the new balance after the transaction. Use switch statement to implement your solution Possible transaction types are: 'D' or ' for deposite, 'W' or 'w' for withdraw, 'T' or 'tfor transfer Example! Enter your transaction typ D Printer your old balance: 100 Enter the money for transaction : 20 Output Your new balance 120 Example Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started