Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Medical Image Databases

Authors: Stephen T.C. Wong

1st Edition

1461375398, 978-1461375395

More Books

Students also viewed these Databases questions

Question

Prove that there is no positive integer n such that n2 + n3 = 100.

Answered: 1 week ago

Question

a. Describe the encounter. What made it intercultural?

Answered: 1 week ago