Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Your solution must include some kind of a product class with a name, category, description, and price for each item. 4 items minimum; stored in

Your solution must include some kind of a product class with a name, category, description, and price for each item. 4 items minimum; stored in a list. Present a menu to the user and let them choose an item (by number or letter). Allow the user to choose a quantity for the item ordered. create a class cart and add user's selected items to the cart create a class for payment methods.Give the user a line total (item price * quantity). Either through the menu or a separate question, allow them to re-display the menu and to complete the purchase. Give the subtotal, sales tax, and grand total. (Remember rounding issues the Math library will be handy!) Ask for payment typecash, credit, or check For cash, ask for amount tendered and provide change. For check, get the check number. For credit, get the credit card number, expiration, and CVV. At the end, display a receipt with all items ordered, subtotal, grand total, and appropriate payment info. Return to the original menu for a new order. (Hint: youll want an array or List to keep track of whats been ordered!) (Moderate) Store your list of products in a text file and then include an option to add to the product list, which then outputs to the product file.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students also viewed these Databases questions