Bookstore Cart Example.
$30-50 USD
Paid on delivery
**This is for testing purposes only.**
A bookstore is going to set up a 'cart' option for a mobile store to help minimize the crowds in the store. You are to create an efficient, well designed OO application to implement a bookstore's sales processing. The store sells only textbooks and apparel items. Everything carried at the mobile store has a price between $5 and $250 and an initial number in stock between 1 and 20. Apparel includes the name of the item (**shirt, sweatshirt, and hat**) and the sizes **(S/M/L/XL**). Textbooks include the name (i.e. title of the book) and the course it is for (a valid course ID). The apparel items are charged a 5% sales tax and the textbooks are discounted by 10% with a valid member ID (note: NO sales tax on textbooks).
You are to 'fill' your mobile store with a variety of items (do not worry about
duplicates). Then 'open' the store for business. Customers may only
purchase ONE item at a time. They should choose between a book and
apparel item first (**choose 1 for book and 2 for apparel item)**. If they choose an apparel item, a sale will occur if their size is in stock. Similarly, if they choose textbook, a sale will occur if it is in stock. Present the user with a receipt. If they purchased a textbook, two receipts should be printed so one can be submitted to Financial Center.
Please consider the following:
- use an abstract class for the items.
- use a correct inheritance structure.
- Effective use of the inheritance structure to minimize redundant code.
- Exception Handling: NumberFormat, ArrayIndexOutOfBounds (at a minimum).
Project ID: #2737438