Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Java GUI application that works like a shopping cart system for an online book store. You will be provided a file named BookPrice.

Java GUI application that works like a shopping cart system for an online book store.

·        You will be provided a file named BookPrice.txt. This file contains the names and prices of various books, formatted as follows:

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 in the file contains the name of a book, followed by a comma, followed by the book's retail price. When your application begins execution, it should read the contents of the file and store the titles in a ListView.

·        The user should be able to select a book from the list and add it to the Shopping Cart.

·        The Shopping Cart is another ListView.

·        The application should have buttons or menu items that allow the user to Add Selected Items, Remove Selected Items, and Check Out.

·        When the Check Out button is selected, the application should calculate and display the subtotal of all books in the shopping cart, the sales tax of 7%, and the total. It should also create a receipt file, which should be a text file that includes the books purchased, the quantities of each book purchased, their prices, and total price both before and after taxes. Here is an example of what the receipt file could look like:

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question