Question: QUESTION THREE (35 MARKS ) A company is interested in implementing a payroll system for its employees . You are requested to develop such program

 QUESTION THREE (35 MARKS ) A company is interested in implementing

QUESTION THREE (35 MARKS ) A company is interested in implementing a payroll system for its employees . You are requested to develop such program in which you must : Declare the base class emp . Use the function called getInfo( ), to get the employee details . Declare the derived class salary . Declare and define the function getSalary ( ) to get the salary details . Define the function calculate Net ! ) to find the net pay . Read the number of employees . Call the function getInfo ( ) , getSalary ( ) and calculate Net ( ) to each employees . Test the above operations by writing a complete C + + program using single inheritance

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!