Define a utility class for displaying values of type double. Call the class DoubleOut. Include all the methods in the class DollarFormat, all the methods from the class OutputFormat ,….
Use typeid to ﬁnd whether the faculty is a regular faculty or not, and then read the need for transport.
Recall Problem 9 of Chapter 10 related to visiting faculty and regular faculty. Visiting faculty is now divided into visiting faculty from another educational institute and visiting faculty from non-educational institute. All visiting faculty now need facility for transport. Details of such need are stored with their objects and can be retrieved using a function TransportNeed(). This function cannot be a part of the faculty base class. Use typeid to ﬁnd whether the faculty is a regular faculty or not, and then read the need for transport.