Computer Science, asked by samrata824, 4 months ago

20) Define class Employee having the following specifications: Employee

Class name

Instance variables/Data member

Emp-name

address

basic pay

np

Member functions/methods:

void stread()

void stdisplay

void calpay()

(String) - Employee name

(String) - Employee address (int) - basic salary

(int) Net Pay

for reading in the values of member variable except

net pay

displays all the member variables

calculates the net pay according to the following specifications. DA = 10% of basic pay if basic_pay is less than 10000 otherwise DA is 15%

HRA = 10% of basic_pay PF =8% of basic pay

np = basic pay + DA + HRA - PF

Using a main method create an object and call the above methods.​

Answers

Answered by yraja3557
2

Answer:

the answer is the method to create objectvis

Similar questions