64 584
Assignments Done
99,2%
Successfully Done
In September 2018

Answer to Question #20145 in C++ for tatako

Question #20145
In Program 15-18, the le Time.h contains a Time class. Design a class called
MilTime that is derived from the Time class. The MilTime class should convert time
in military (24-hour) format to the standard time format used by the Time class. The
class should have the following member variables:
milHours: Contains the hour in 24-hour format. For example, 1:00 pm would
be stored as 1300 hours, and 4:30 pm would be stored as 1630
hours.
milSeconds: Contains the seconds in standard format.
The class should have the following member functions:
Constructor: The constructor should accept arguments for the hour and seconds,
in military format. The time should then be converted to standard
time and stored in the hours, min, and sec variables of the Time
class.
setTime: Accepts arguments to be stored in the milHours and milSeconds
variables. The time should then be converted to standard time and
stored in the hours, min, and sec variables of the Time class.
getHour: Returns the hour in military format.
getStandHr: Retur
Expert's answer
Unfortunately, your question requires a lot of work and cannot be done for free.
Submit it with all requirements as an assignment to our control panel and we'll assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions