Answer to Question #130492 in C++ for Rashid

Question #130492
Write a class called Product. The class should have fields called name, stock-items, and price, holding the product’s name, the number of items of that product in stock, and the regular price of the product. There should be a method get_price that receives the number of items to be bought and returns the cost of buying that many items, where the regular price is charged for orders of less than 10 items. There should also be a method called make_purchase that receives the number of items to be bought and returns the decreased amount by that much. As a 10% discount is applied for orders of between 10 and 99 items, and a 20% discount is applied for orders of 100 or more items.
Moreover, get additional marks for:
1. Add more functionality in the identified class.
2. Design a user friendly interface for given task.
1
Expert's answer
2020-08-24T01:48:18-0400
Dear Rashid, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS