Question: Answer in Java To reinforce the concepts of the loop statement. To reinforce object-oriented techniques such as passing objects as parameters and object calling the

Answer in Java  Answer in Java To reinforce the concepts of the loop statement.

To reinforce the concepts of the loop statement. To reinforce object-oriented techniques such as passing objects as parameters and object calling the methods of other objects. You are a loc cream shoppe simulation. For this simulation, you will need a scoop class and a carton class (both classes described in the below UML diagrams). At the start of the simulation, you should ask the user for scoop and carton information (radii of each and height of carton). There may be than one scoop. Then you should ask for orders until the user is done. At the end of the orders, you should print the number of cartons used (always round up). You can assume that the scoops are all perfectly spherical. Remember that the volume of a sphere is (4/3)m^3 and the volume of a cylinder is m^3h. Your Ice cream Shoppe should create two scoops with radii entered by the user, create carton with radius and height entered by the user. Then, you should ask the user if they would like ice cream. If they would, you should ask how many of the each size scoop and subtract the appropriate amount from the carton. If the requested amount ever exceeds the amount remaining in the carton, you should open a new carton to complete the order. Continue asking the user until they indicate they are done. At the end, you should print how many cartons were used. You should implement your program according to the design below. javadoc for this program has also been provided

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!