Exercise 1: Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data, similar to the following:
3 ***
5*****
2 **
7 *******
Exercise 2: Define output operators for Clock and Travel Clock. Modify the classes Clock and Travel Clock to declare the output operators as friends.
Exercise 3: Change the class TeachingAssistant to use nested classes. Add a member function as_employee to the class TeachingAssistant that will return an object of type Employee, and the member function as_student that will, from this value, return the student object. Again show how to use the same value on a list of students and a list of Employees. Is this technique easier or more difficult to use than the multiple inheritance technique?