Question: PLEASE HELP ASAP Make a time class that can represent hours, minutes and seconds. It has a call that will allow it to display that
PLEASE HELP ASAP Make a time class that can represent hours, minutes and seconds. It has a call that will allow it to display that time in either 24 hour time or with AM and PM. (You do not need a stream operator for this one. But it would be extra credit if you did.)
You need to have variables as part of the class that keep the values of hours, minutes and seconds. Those values can be set via a constructor, and get and set functions.
Make sure to have a file with main that makes a couple objects of your class and displays the time.
PLEASE CPP FILE ONLY
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
