Theapplicationshouldcomputethepayofanemployeeandprintthepayslipthepaysliptocontaininformation abouttheemployeeid,nameandpayCreateanEmployeeTypewithAttributes • Basesalary • ID • Name • Pay Create3argumentsConstructorMethodscomputePay():takes anargumenttosuitthesituationmentionedbelow. displayPayslip():printstheemployee detailsincludingthepay. Situation: An organizationcanhirebothcontractorsandpermanentstaffasEmployees,Thepayofanemployeeshouldbecalculatedaccordingly. Contractorswillbepaidfortheirovertime perhour) I.e.pay=basesalary+((NOOFHOURS)*75))Staffwillbe givenallowance I.e.pay=base Identifysuitableclasses/Abstractclasses/interfacestomeettheaboverequirementandcomputesalaryforbothcontractorsandstaffandprinttheirpayslipaswell.
Answers
Answered by
0
Classification of matter
Solids,Liquids,Gases
Solids have a fixed shape
Similar questions
Math,
10 days ago
India Languages,
10 days ago
Accountancy,
21 days ago
Sociology,
21 days ago
Math,
8 months ago
English,
8 months ago
Music,
8 months ago