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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started