write in c++ code please Design a Time Class. ⦁ hour, minute, and second data fields representing time ⦁ argumentless constructor that generates Time objects for the current time ⦁ Generator that creates a Time object representing the elapsed time in seconds from midnight on January 1, 1970. ⦁ constructor that generates Time objects with specified hours, minutes, and seconds ⦁ three get functions for hour, minute, and second data fields ⦁ setTime (intelapseTime) function that sets a new time for an object using elapsed time ⦁ Create a test program that uses two Time objects, one with no arguments and the other with Time (555550) and displays hours, minutes, and seconds on the screen
write in c++ code please
Design a Time Class.
⦁ hour, minute, and second data fields representing time
⦁ argumentless constructor that generates Time objects for the current time
⦁ Generator that creates a Time object representing the elapsed time in seconds from midnight on January 1, 1970.
⦁ constructor that generates Time objects with specified hours, minutes, and seconds
⦁ three get functions for hour, minute, and second data fields
⦁ setTime (intelapseTime) function that sets a new time for an object using elapsed time
⦁ Create a test program that uses two Time objects, one with no arguments and the other with Time (555550) and displays hours, minutes, and seconds on the screen.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images