Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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. 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
Step: 1
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...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started