Design an application that works as a shopping cart system. The user should be able to add any of the following items to his or her shopping cart:
Print Books (books on paper):
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
Audio Books
Learn Calculus in One Day - $29.95
The History of Scotland - $14.50
The Science of Body Language - $12.95
Relaxation Technique - $11.50
The application's main form should appear similar to the one shown in Figure 7-65.
The list box shows all items in the shopping cart. There is a 6% sales tax on the total cost of the items in the shopping cart. Also, for each item in the shopping cart there is a $2.00 shipping charge. To remove an item from the shopping cart, the user se- lects it in the list box and clicks the Remove button. The subtotal, tax, shipping, and total fields should be adjusted accordingly. The main form's menu system is sketched in Figure 7-66.
When the user selects Reset from the File menu, all items in the shopping cart should be removed, and the subtotal, tax, shipping, and total fields should be cleared. When the user selects Exit from the File menu, the application should end. When the user selects About from the Help menu, a simple About box should appear. When the user selects Print Books from the Products menu, the form in Figure 7-67 should appear.
To add one of the items in the list to the shopping cart, the user selects it and clicks the Add Book to Cart button. To cancel the operation, the user simply clicks the Close button without selecting a book. On the main form, when the user selects Audio Books from the Products menu, the form in Figure 7-68 should appear.
To add one of the items in the list to the shopping cart, the user selects it and clicks the Add Book to Cart button. To cancel the operation, the user simply clicks the Close button without selecting a book.