Question: need help with this please Please adhere to the Java Standards and Guidelines document on the class site. Submit the following: List of source code

need help with this please need help with this please Please adhere to the Java Standards and

Please adhere to the Java Standards and Guidelines document on the class site. Submit the following: List of source code with comments to document Test output listed as comments at the end of your program Write a Java application having the class name Container that calculates How many and what size containers are needed to ship widgets. A shipping clerk at a plant that manufactures widgets is faced with a problem. Widgets are very delicate and must be shipped in special containers. These containers are available in four sizes: 1. Huge can hold 50 widgets and at this time the cost is $35 2. Large can hold 20 widgets andyat this time its cost is $15.00 3. Medium can hold 5 widgets and at this time its cost is $4.25 4. Small can hold 1 widget and at this time its cost is $0.95 [These costs are subject to occasional change so your program should declare these costs as constants (final)] Write a program that reads the number of widgets to be shipped and prints the number of huge, large, medium, and small containers needed to send the shipment in the minimum number of containers with the minimum amount of wasted space (Example: you can't ship 3 widgets in a medium box - you must use 3 small boxes). Also, print the total cost of the containers. The program output should look like this (Note: user input is indicated by Bold. In your program, it will not be in bold) Note: Everywhere above that you see an actual number, you should replace that value with a declared constant in your program. For example ent: final int HUGE_CAPACITY = 25; Hint: Use the division operator (/) to find the number of corresponding containers and then the remainder operator ( % ) operator to find the leftover widgets and keep doing that until you get to the smallest. It is a good idea if you write an IPO chart first and an algorithm in pseudocode. mbe See the expected output below

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!