Computer Science, asked by kothaswetha1970, 21 days ago

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 Anonymous
0

Classification of matter

Solids,Liquids,Gases

Solids have a fixed shape

Similar questions