Question: A. Write a Java program that reads a student's full name (including first and last name), age, weight (in Kilograms) and height (in meters)

A. Write a Java program that reads a student's full name (including first and last name), age, weight (in

A. Write a Java program that reads a student's full name (including first and last name), age, weight (in Kilograms) and height (in meters) from the keyboard. It should: Extract the student's first name and display it in lowercase letters, Extract the student's last name and display it and display it in uppercase letters, Calculate the student's Body Mass Index (BMI) and display an appropriate message as per the table below: BMI Value Less than 18.5 Message Underweight Healthy Weight Overweight Obese Over 30 Note: Body mass index (BMI) is a person's weight in kilograms divided by the square of height in meters (weight (kg) / [height (m)]2). This formula applies only for age greater than 20. Otherwise, an appropriate message should be displayed. Between 18.5-24.9 Between 25-29.9 B. The University offers four different types of discount ('A', 'B', 'C', and 'X') based on students' CGPA, as shown below: Discount Type A B C X Amount discounted per semester AED 2000 AED 2500 AED 2000 AED 5000 Extend your program to allow the student to enter a type of discount. The program should display the amount of money discounted for the given type of discount for the current semester. You should use the switch statement when implementing this part.

Step by Step Solution

3.45 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The Java program that fulfills the given requirements import javautilScanner public class StudentI... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!