Question: Shopping Cart System (In Java) Create an application that works like a shopping cart system for an online book store. Here are the books: I

Shopping Cart System (In Java)

Create an application that works like a shopping cart system for an online book store. Here are the books:

I Did It Your Way,11.95

The History of Scotland, 14.50

Learn Calculus in One Day, 29.95

Feel the Stress, 18.50

Each line the file contains the name of a book, followed by a comma, followed by the book's price. When the application begins execution, it should read the contents of the file and store the book titles in a list component. The user should be able to select a title from the list and add it to a "shopping cart", which is simply another list component. The application should have buttons or 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 (which is 6% of the subtotal), and the total.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!