Define a class worker with the following specification: Private members of class worker
wname | 25 characters |
hrwrk | float (hors worked and wagerate per hour |
totwage | float(hrwrk*wgrate) |
calcwg | A fuction to find hrerk* wgrate with float return type |
Public members of class worker
in_data() | a function to accept values for wno, wname, hrwrk, wgrate and invoke calcwg() to calculate totwage. |
out_data() | a function to display all the data members on the screen you should give definations of functions |
All Replies
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.