JavaFX: UI controls and Events -- 3

Job ID: 30905798

Budget: $30 – $250 USD

Note: Use eclipse.
1. In this assignment you will use JavaFX to create a Pizzeria Application.
2. Please look at the attached sample images to see what your application should like in Java.
3. I attached a sample vb.NET executable for you to use as a reference.
4. Your application MUST work just like this sample executable. Make sure the events work the same way in your application.
5. Selecting a checkbox will add it to the order and compute the corresponding subtotal and total.
6. If the checkbox is not selected, changing the size or quantity does NOT add it and resets it to its first value.
7. Deselecting a checkbox will remove it, recomputes totals and resets size and quantity to first value.
8. Pizzas could be small ( default size and default price ), medium ( $5 extra ) and large ( $10 extra ).
9. Print Receipt, should print the order. (See sample image).

To support the functionality of your GUI:
1. Implement a class to encapsulate the logic corresponding to an item.
a. It has name, price, quantity, size, image name and type of item.
b. It has only ONE constructor.
c. An item could be a Pizza or a Side.
d. Implement getters and setters.
e. Implement toString to return the string representation of the object.
f. Implement a method to compute its total.
g. Implement other methods as required.
2. Complete the implementation of the Menu class provided.
a. It has only 1 attribute, a map of items that retains insertion order. The key is the name of the item and the value is the item.
b. Only 1 constructor.
c. Implement any other methods as required.
3. Implement a class to encapsulate the logic corresponding to a shopping cart/order.
a. It has only 1 attribute, a map (that retains insertion order) of items and 1 constructor.
b. Implement methods to: add and remove items (only 1 simple line of code each), subtotals, total, and print the receipt.
4. Implement a class Asg3YourName that extends Application to create your GUI.
a) In paper, design a strategy for you GUI. Think of what layouts, panes, controls to use.
b) Use the provided Menu class to create the menu ( Pizzas and Sides panes) in the GUI.
c) Start by creating the row for 1 item. Then use a loop to create the remaining ones.
d) Create event handlers for the checkboxes and combo boxes.
e) In your Eclipse project, create a folder image to place all the images. To reference an image in javaFX use file:./image/works.jpg.

5. Provide brief comment for each function.
6. Submit Asg3YourName.java.

This project is an individual project. Everyone should submit their own work. If I determine that two or more students have collaborated, then those students will all fail the course immediately, regardless of who copied from whom.