Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your boss, Crystal Jaeger, is getting married and decides to hyphenate her name with her husband Andrew Meister and so her name will change. Complete
Your boss, Crystal Jaeger, is getting married and decides to hyphenate her name with her husband Andrew Meister and so her name will change. Complete the following program so that you can type in the new name, Crystal Jaeger-Meister, for the boss:
int main()
{ Employee boss("Crystal Jaeger", 95000.00); // Your code goes here; leave the code above unchanged cout << "Name: " << boss.get_name() << endl; cout << "Salary: " << boss.get_salary() << endl;
return 0;
}
The problem is that there is no set_name() member function for the Employee class. Hint: Make a new object of type Employee with the new inputted name and the same salary. Then assign the new object to boss.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started