Question
JavaFX You are going to create 3 separate windows. Each window will allow you to order some food that has at least 6 customizable options.
JavaFX
You are going to create 3 separate windows. Each window will allow you to order some food that has at least 6 customizable options. These customizable options are up to you. An example of this can be a coffee, where you can choose milk, cream, sugar, etc...
Each window should be nicely designed with pictures and CSS.
Pricing Your Items
Each window will have a price for the item you are customizing. At least 2 of your item customizations should change the price based on your selection.
Interface
Create the following interface in your project.
public interface Food{
public abstract double getSubtotal();
public abstract String toString();
}
Food Object
Create an encapsulated object for each of your menu pages. Each object should extend the interface Food and override the methods appropriately. Create a static List in a logic class of type Food. When a person is finished customizing each food item, have an "ADD" button that creates an object for that food and adds that food item to the List. Include a toString for each food item. You will use this toString method to write your food to a file. Ensure to reset all order options after the person adds their food to the list. You should also be able to navigate between food pages.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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