This is a C++ program and I need to be able to build it with Visual Studio 2010 Express. Thank you.
Create a new project which consists of two classes; the base Time class and a derived extTime class.
The base class should have data members that are used to represent the hour and the minute both of type integer. The derived class has one additional data member that represents the time zone. This data member should have a string data type.
Create a function for each of the operations listed below:
• set the time
• return the time
• print the time
• increment the hour
• increment the minute
• a default constructor and a constructor with parameters
Derived class: should have (in addition to the classes above) its own
• print which prints the time zone in addition to the time
Construct the main method so that it can test the member functions of each of the parent and the child class by instantiating objects of these classes and calling the appropriate functions.
Time starts out = 5:10
doTest <> with a Time object:
initially time = 5:10
after setting, time = 0.0
after incrementing time = 23:59
doTest<> with an extTime object:
Initially time = 5:10
After setting, time = 0.0
After incrementing time = 23:59
After changing tz et = 5:10 EST