Question: This has to be coded in JavaFX. Please provide all the code for each class, and please comment throughout the code so I can follow
This has to be coded in JavaFX. Please provide all the code for each class, and please comment throughout the code so I can follow along.
I have made a drawing of what I am struggling to create in JavaFX. This application is supposed to allow the user to pick and choose what kind of burger that they want, along with the size of fries, the condiments on the burger, and the drink of their choice. The total price is supposed to be located on the bottom left of the GUI, and two buttons, "Clear" and "Submit" are supposed to be on the lower right of the GUI. The price is supposed to update on the left when each selection is selected. When the submit button is chosen after all selections are made, another window is supposed to open up and thank the user for their submission. The clear button is supposed to clear all choices. The meat selection has to be a separate class. The fries are supposed to have its own class. The condiments are a separate class. The drink is a separate class. The total and buttons are supposed to be part of the class that contains the JavaFX code.
The meat selection doesn't have a price tag, but the base price of a burger is $ The fries price depends on the size; halforder is no extra charge, fullorder is $ more, and doubleorder is $ more. Condiments are $ each, and drinks are $ each. Only one burger per order can be purchased at one time.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
