Question
Please help me!!! Homework #19: Shopping List Application In Java In this assignment, you will create an interactive table-based shopping list application. Create an Item
Please help me!!! Homework #19: Shopping List Application In Java
In this assignment, you will create an interactive table-based shopping list application. Create an Item class that stores shopping items: a String called name, a Double called price, and an Integer called quantity. Create the corresponding get/set methods for each. Create a class called ShoppingList that extends the JavaFX Application class, and contains a TableView (with columns for Name, Price, and Quantity) that displays an ObservableList of Item objects. The list should initially be empty. The TableView should be editable. At the bottom of the application, create an area that allows a user to add a new item to the list, including Labels that display the words Name, Price, and Quantity and a TextField next to each. There should also be an Add button that, when pressed, uses the information stored in the textfields to create a new Item and adds it to the list (which will then be automatically stored in the table). Finally, add a button Total Price that, when clicked, calculates the total price of all items currently in the list (add together the price * quantity for each item in the list), and display the total in a label.
Grade your homework using the following criteria (partial credit allowed):
10 Points: Source code contains program header and comments; code organized and readable
10 Points: design aesthetics (fonts, colors, icons, labels, arrangement, alignment, etc.)
10 Points: Item class added as described
10 Points: TableView added as described
10 Points: TableView is editable (values in table can be changed)
20 Points: Add New Item button functions as described
20 Points: Calculate Total Cost button functions as stated
10 Points: Grade report completed fully and accurately If your program does not compile or crashes at runtime, or collaboration is undocumented: grade of 0%. (Note: this includes cases where files are forgotten or spelled incorrectly.)
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