- Create an employee class, including two data: an employee number (type int ) and the employee's compensation (in dollars; type float). The member data should comprise an int for storing the employee number and a float for storing the employee's compensation. Member functions should allow the user to enter this data and display it. Write a main() that allows the user to enter data for three employees and display it.
- Declare a class with name Cubicle. The name stands for any rectangular prismatic solid body having three dimensions, i.e. length, width, and height. The program calculates the surface area and volume of cubic prisms. Two instances or objects are created by names cube1 and cube2.
Functions in Cubicle class include:
void set_sides( int , int, int );
int volume ();
int surface_area ();