Question: Provide sample output after coding. There are several samples output to look. This is sample output that needs code. I need the code in java

Provide sample output after coding. There are several samples output to look.

  • This is sample output that needs code.
  • I need the code in java netbeans. I need the code to be exactly the same from the picture below. Also, I provide the instructions on what needs to be done.
Have the program display a message box confirming the cake order. Usethe 'Yes' and 'No' buttons. If the client confirms the order (clicksyes), a message should display confirming that the order has been placedand generate and print a random 5-digit confirmation number. Make a methodin OrderCake class to accomplish it. Confirm Order Message ? $30.00 forVanilla flavoured Birthday cake Total amount of the order is $30.00 Youhave to pay: $30.00 Yes No Thank you Your order has beenplaced. Your Confirmation Code is : 028829 OKimage

Have the program display a message box confirming the cake order. Use the 'Yes' and 'No' buttons. If the client confirms the order (clicks yes), a message should display confirming that the order has been placed and generate and print a random 5-digit confirmation number. Make a method in OrderCake class to accomplish it. Confirm Order Message ? $30.00 for Vanilla flavoured Birthday cake Total amount of the order is $30.00 You have to pay: $30.00 Yes No Thank you Your order has been placed. Your Confirmation Code is : 028829 OK

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Program Plan Cake Class Abstract Superclass This class represents a general cake It has a flavour attribute and two abstract methods calcCakeCost and toString CustomCake Class Subclass of Cake This cl... View full answer

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 Programming Questions!