Question: A shipping company classifies packages into five classes by weight. Write a Java program that displays a package weight class: 1. Prompt the user to

A shipping company classifies packages into five classes by weight.

Write a Java program that displays a package weight class: 1. Prompt the user to enter the weight of the package. 2. The package is classified as follows: a. Weight Class 1: less than 5 pounds. b. Weight Class 2: 5 to 20 pounds. c. Weight Class 3: 20 to 50 pounds. d. Weight Class 4: 50 to 250 pounds. e. Weight Class 5: greater than 250 pounds. 3. Display the weight class of the package.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!