Question: Create a class called Luggage and write the Java code in the main method which represents the following pseudo code, use a constant for any
Create a class called Luggage and write the Java code in the main method which represents the following pseudo code, use a constant for any numeric value.
Write "Enter name ==> "
Read name
Write "Enter weight of luggage in kilograms ==> "
Read weight
IF weight is greater than 15 kilograms THEN
Write name + " your luggage is too heavy to check in. "
ELSE
Write name + " your luggage can be checked in. "
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
