Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

The Java program that fulfills the given requirements import javautilScanner public class StudentI... 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_2

Step: 3

blur-text-image_3

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

Visual C# How to Program

Authors: Paul J. Deitel, Harvey Deitel

6th edition

134601548, 134601793, 978-0134601540

More Books

Students also viewed these Programming questions

Question

Find Rab in the network shown. 6 kQ 6 kQ 2 kQ RAB 6 kQ

Answered: 1 week ago

Question

Draw a schematic diagram of I.C. engines and name the parts.

Answered: 1 week ago

Question

What are the advantages to using object-oriented techniques?

Answered: 1 week ago

Question

11. Conduct a member check or member validation.

Answered: 1 week ago