Computer Science, asked by ayushbajpai7856, 6 months ago

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 dhilipan790
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