Define a class worker with the following specifications:
Private members of a class worker
Wno integer
Wname 25 characters
Hwrk , wgrate flot ( hour worked and wage rate per hour )
Towage float ( hrwk * wgrate )
Calcwg ( ) a function to find
Hrwk * wgrate with float return type.
Public members of class workder
In data ( ) a function to accept values for wno, wname , hrwk, wgrate and invoke calcwg ( ) to calculate netpay.
Out data ( ) a function to display all the data members on the screen.
Answers
Answered by
2
Answer:
Check ICSE APC publication book you will get ur ans.
Similar questions