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
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
English,
12 hours ago
Science,
12 hours ago
English,
23 hours ago
History,
23 hours ago
Environmental Sciences,
8 months ago
English,
8 months ago
World Languages,
8 months ago