Ok first let me explain I am a disabled vet and I have been in the hospital till friday. I took a crack at this assignment but I cant do it. So if someone can please please help me and explain why each step is the way it is that would be awesome. Remember this class is a basic class for me so to much and they will know its not me.
1. You will use Visual Studio – C++. If you are using the remote lab (Citrix), log in and locate the Visual Studio icon. If you are using a local install of Visual Studio, locate the program icon on the desktop or in the Programs menu.
2. Launch Visual Studio.
STEP 2: Create the Project and Main Class
1. Create a new project which consists of two classes; the base Time class and a derived extTime class.
2. The base class should have data members that are used to represent the hour and the minute of both types of integers. The derived class has one additional data member that represents the time zone. This data member should have a string data type.
STEP 2: Create the Member Functions
Create a function for each of the operations listed below:
1. Base class:
Set the time.
Return the time.
Print the time.
Increment the hour.
This function will take an integer parameter, which is the hours to be added and then mod 24 in case the new value is greater than 23. If the parameter is negative, there is a chance that the new value for hour will be negative. If so, we want to turn it back into a valid positive value.
Increment the minute
This function will take an integer parameter, which is the minute to be added. We perform mod 60 in case the new value is greater than 59. If the parameter is negative, there is a chance that the new value for min will be negative. If so, we want to turn it back into a valid positive value.
A default constructor and a constructor with parameters.
2. Derived class:
Should have (in addition to the classes above) its own class.
Print, which prints the time zone in addition to the time constructor.
STEP 3: Construct Main Method
1. 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.
STEP 4: Build and Test
1. Build your project (compile your program).
2. Eliminate all syntax errors.
3. Run the program.
4. Verify results of program execution and correct any logic errors discovered.