Computer Science, asked by ridhimachatterjee2, 10 months ago

1. Create a class Stock as given below
1151
class name : Stock
Data members / instance variables :
onde (long integer type) - To store product code
qty tinteger) - To store quantity of product
price, total, discount, netprice fall double type)
Member functions / methods
void accept) - To accept code, quantity & price
TU) void compute() - to calculate total cost Discount of 25% is allowed
on total cost if total cost is more than 15000/- otherwise no
discount. Also find net price to be paid after discount.
fi) void display() - To display product code, price, quantity, discount,
total cost and net price.
Write a mhain method to create un object of the class and call the above
n'ethods​

Answers

Answered by sa9482271
0

Answer:

phele follow karo tab bataunga

Similar questions