Computer Science, asked by lavanyapunjala14, 23 hours ago

Write a program to create a class by the name Salary. Calculate allowances, salary and print all the data of an
employee.
II) Write a menu-driven program to accept a number 1 or 2 as a choice.
When choice is 1
Accept date as dd, mm, yy and check and display if the accepted date is valid or not. Display a proper
message.
i need output also

Answers

Answered by es548560
1

Answer:

Dearness Allowance = 15% of salary

House Rent Allowance = 10% of salary

Provident Fund = 12% of salary

Gross Salary = Salary + Dearness Allowance + House Rent Allowance

Net Salary = Gross Salary - Provident Fund

Similar questions