Monday, January 1, 2018

Write a program in C++ to define the class worker shown below. Create an array of n objects and display the objects' details.

Aim : Write a program in C++ to define the class worker shown below

class worker ( 
private :
      Wname character (20),
      Wno integer,
      Wgrate float,
      Hourlywagerate float,
      Totwage float,
      Calcwage(hrwg,wgrate)
public :
      Worker();
      Indata();
      Outdata();
)

CODE:

OUTPUT:


No comments:

Post a Comment