void calculate( ) : to find and print hd
An electronics shop has announced a special discount on the purchase of Laptops as
given below:
Category
Discount on Laptop
Up to 25,000
5.0%
25,001 - 50,000
7.5%
50.001 -
1,00.000
10.0%
More than 1,00,000
15.0%
Define a class Laptop described as follows:
Data members/instance variables:
name, price, dis, amt;
Member Methods:
(1) A parameterised constructor to initialize the data members
(ii) To accept the details (name of the customer and the price)
(iii) To compute the discount
(iv) To display the name, discount and amount to be paid after discount
Write a main method to create an object of the class and call the member methods.
Site
sacer
Answers
Answered by
1
Answer:
I will die what are you writing you are mad
Explanation:
good morning bro have a
Answered by
0
Answer:
Sorry I don't know the correct answer of this question
Explanation:
Which language is this blah blah blah blah blah blah blah blah blah blah blah blah
Similar questions