Computer Science, asked by harshmahnot006, 9 months ago

21.
[ICSE 2019)
Design a class name ShowRoom with the following description:
Instance variables / Data members:
String name
To store the name of the customer
long mobno
To store the mobile number of the customer
double cost
To store the cost of the items purchased
double dis
To store the discount amount
18
Member methods:
ShowRoom() - default constructor to initialize data members
void input() To input customer name, mobile number, cost
void calculate() - To calculate discount on the cost of purchased items, based on following criteria
Cost
Discount (in percentage)
Less than or equal to 10000
5%
More than 10000 and less than or equal to '20000
10%
More than 20000 and less than or equal to '35000
15%
20%
More than '35000
void display() - To display customer name, mobile number, amount to be paid after discount.
Write a main method to create an object of the class and call the above member methods.​

Answers

Answered by Anonymous
0

Answer:

yivyicyciuo hi ih high goug9og ohgoog got ho hoh high kh hi kh kyo hk ggiho it you ouo u you yo you y ohoo hiyo u you got kyu y y you ou oyy9 y y you oh h o oy ou 0u u0u0uot h

Similar questions