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).
j509
0
Newbie Poster
Recommended Answers
Jump to PostOK, sounds like a good project to work on. What have you done with it so far?
Jump to PostLet's get started by getting the code properly indented, so that it is readable. A quick pass through the AStyle tool highlights one of the primary problems you've got right away:
Jump to PostPull 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
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
j509
0
Newbie Poster
j509
0
Newbie Poster
j509
0
Newbie Poster
j509
0
Newbie Poster
j509
0
Newbie Poster
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
j509
commented:
thanks that helps.
+0
ohman
0
Newbie Poster
j509
0
Newbie Poster
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
j509
0
Newbie Poster
ohman
0
Newbie Poster
j509
0
Newbie Poster
ohman
0
Newbie Poster
j509
0
Newbie Poster
ohman
0
Newbie Poster
j509
0
Newbie Poster
ohman
0
Newbie Poster
j509
0
Newbie Poster
ohman
0
Newbie Poster
j509
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.