Question: **USING C++** Create a class for storing a simple employee record database. Youll need the string library included for this exercise. Name your class Employee
**USING C++**
Create a class for storing a simple employee record database. Youll need the string library included for this exercise.
Name your class Employee and declare the following private class data:
First name
Last name
Id #
Salary
Declare and implement the following member functions:
Constructor:
Takes two (2) string inputs for first and last name, respectively. Initializes the salary to $50,000.
Sets the Id # to 0 (for now)
setSalary():
Takes a double precision number to specify an updated salary
Returns nothing
raise():
Takes a rate as input, and increases the current salary by that rate. e.g. raise(0.05) would raise the current salary by 5%
The raise member function should provide a default raise of 3% if no raise rate is specified
Returns nothing
printInfo():
Prints all the current info for an employee: example below: (hint: the tab character \t can be useful)
Employee No: 0
Name: Bill, Hader
Salary: $240000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
