Computer Science, asked by schoolworkera, 5 months ago

7.
Create a class Salary with the following specification:
Data Members:
String name : to store the name of the employee
String dept : to store the department of the employee
double basic : to store the basic salary of the employee
double da : to calculate and store the dearness allowance
double hra : to calculate and store the House rent allowance
double pf : to calculate and store the Provident fund
double gross : to calculate and store the gross salary
double net : to calculate and store the net salary
Member methods:
Salary(): default constructor to initialize the data members.
Numeric variables with O and String variables with
void input(): to accept the name, department and basic salary
void calculate(): to calculate the following:​

Answers

Answered by mirajgaming780
1

Answer:

24000

a month for the big day

Similar questions