8 Define a class called Appliance with the following description. Instance variables int pcode - Stores the product code. long mobileno - Stores the mobile number String name - Stores the name of the customer. double price - Stores the cost of the appliance. double discount - Stores the discount. double netAmbit- Stores the net amount Member methods : in) Appliance ( ) – Default constructor ii) Appliance (int,long,String,double) – parameterized constructor ii) void compute() – to calculate the discount according to the following criteria. Purchase Amount Discount percentage Rs.1 to Rs. 5000 Nil Rs. 5001 to Rs. 15000 5% Rs. 15001 to Rs. 25000 10% Above Rs. 25000 15% iii) void display ( ) – Produce the bill in the following format. Customer name Mobilenumber ProductCode Price Discount NetAmount
Answers
Answered by
0
Answer:
it would be better if you search the code from Google and paste the code in your editor it will take nearly half n hour
Similar questions
English,
4 months ago
Math,
4 months ago
Chemistry,
9 months ago
Math,
9 months ago
Social Sciences,
1 year ago