Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

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

C# 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. 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_2

Step: 3

blur-text-image_3

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

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students explore these related Databases questions