Define a class called Grade_Revision with the following specifications:
Class name : Grade_Revision
Data Members : name (to store the name)
bas (to store the basic pay)
expn (to store the length of service)
inc (to store the increment)
nbas (to store the new basic – (basic + increment)) Member functions :
Grade_Revision() : default constructor
void accept() : to input name, basic and experience
void increment() : to calculate the increment with the following specifications
Experience Increment
Upto 3 years Rs. 1000 + 10% of basic
3 years or more & upto 5 years Rs. 3000 + 12% of basic
5 years or more & upto 10 years Rs. 5000 + 15% of basic
10 years or more Rs. 8000 + 20% of basic
void display() : to print all the details of the employee.
Write the main method to create an object of the class and call all the member methods.
Answers
Answered by
0
Answer:
Explanation:
T7ct7f75f7557f65f55f65f57ftctydrdts53s5syuguyvuyyuyhhij89k7yyg6g6gtuyutufufys46d64s6srts54steses5s54s45s4554t6ft7fytctycytrcyryrxtrztezetxtestes
Similar questions