Question: *In Java GUI implementation Design and create a Java application that works like a shopping cart system for a book store. The stores book information
*In Java GUI implementation
Design and create a Java application that works like a shopping cart system for a book store. The stores book information is stored in the BookInventory.txt (see contents below). This files contains the names and the prices of various books. Your application should allow the user to select the book list file, read the contents of that file, and store the book titles in an appropriate component. What I mean by appropriate is a component that allows you to store multiple items and select them individually. The user should be able to select a title from the list and add it to a shopping cart, which can simply be aJTextArea object. The application should have a combination of buttons and menu items that allow the user to remove items from the shopping cart, clear the shopping cart of all selections, and check out. When the user checks out, the application should calculate and display the subtotal of all the books in the shopping cart, the sales tax (6%), and the total. The application should also incorporate JSpinner and JSlider components and I will leave the task of how to use these items up to you be creative! You can add extra functionality if you want to, just make sure you include the functionality specified here. *Make sure to incorporate a JSpinner and JSlider component and to also allow a user to select the book list file
This is the contents of BookInventory.txt:
How to Write A Lot, 10.50 Java for Dummies, 33.76 The Soul of a New Machine, 23.55 The Google Story, .05 The Most Human Human, 11.25 The Pattern on the Stone, 12.66 Automate This: How Algorithms Came to Rule Our World, 55.35 Blown to Bits, .00 Turing's Cathedral: The Origins of the Digital Universe, 134.79
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
