QUESTION 1:
Design a class sample for the following function to print cash memo for a product-
void product(): create this function with product code (integer), unit price of product in
decimals) and quantity of product in decimals) as parameters. Calculate total cost of product,
discount as 12% on total cost and net price to be paid for the product.
Write a main function to invoke function product by passing required values and print
all the data members including total, discount and net price of product with suitable
messages.
Answers
Answered by
0
Answer:
Discount = List price x Discount Rate
For example :
A pen costs 50$ and it is been sold at a discount of 12%, what is the discount price of the pen?
A: = 50 x 12/100
= 50 × 0.12
= $ 6
Similar questions
Science,
4 months ago
Social Sciences,
4 months ago
Accountancy,
4 months ago
Math,
9 months ago
English,
9 months ago
Chemistry,
1 year ago