Create class called employee that includes three pieces


Create Class called Employee that includes three pieces of information as data members - a first name (type string), a last name (type string) and monthly salary (type float). Your class should have a constructor that initializes the three data members. Provide set and get function for each data member. If monthly salary not positive, set it to 0. Write a test program that demonstrates class Employee's capabilities. Create two Employee objects and display each object's yearly salary. Then given each Employee a 10 percent raise and display each Employee's salary again.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Create class called employee that includes three pieces
Reference No:- TGS0141527

Expected delivery within 24 Hours