Display a product number, name (or description), and price for four retail products. They could be food, clothing, auto parts, plants, tools, kitchen utensils, or any other type of retail product. Prompt the user to enter the product number of each product they wish to buy, one at a time, and provide an escape character or number so that the user can let the program know when they are finished shopping and are ready to check out. When this escape character or number is entered, display the name (or description) and price of each product they chose, the subtotal, the sales tax (8% of subtotal), and the total after sales tax. The user should be able to buy up to a maximum of 10 items (the user may want more than one of a product). Additionally, the program must use object orientation (a class and/or struct or multiple classes and/or structs).
Jump to Post
OK, sounds like a good project to work on. What have you done with it so far?
Jump to Post
Pull the other leg, now; it's got bells on it.
Seriously, there's little reason to try and hide the fact that this is a homework assignment; the description and requirements are pretty much a giveaway. We don't have a problem with students coming here to get help, quite the contrary. …
All 21 Replies
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.