내용은 아래와 같아요~~
1. Your boss, Juliet Jones, is getting married and decides to change her name. Complete the following program so that you can type in the new name for the boss:
int main()
{
Employee boss("Jones, Juliet", 45000.00);
/* your code goes here; leave the code above and below unchanged */
cout << "Name: " << boss.get_name() << "n";
cout << "Salary: " << boss.get_salary() << "n";
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 name and the same salary. Then assign the new object to boss.
2. Write a program that reads in three-floating point numbers and print the largest of the three inputs. For example:
Please enter three numbers: 4 9 2.5The largest number is 9.
1번 문제는 지난번의 Employee클래스 또 써먹는 거구요,
2번 문제는 숫자 3개의 크기비교하는 문제네요,,,
우리 교수님 항상 클래스문제와 프로그램 구현능력문제를 골고루 내주시는군요,,,
여러분 수고하세요^^