Noor N.

asked • 09/23/17

solve the conversion of time in c++

Contains a class “time24”. The class contains hr, mn and sec integer data members. The class should have a constructor to assign initial values, a function to input time from user in 24 Hour format and a function to display time in 24 Hour format. The program should also contain “time12” class having proper data members, a casting function to convert the time from 12 Hour (PM/AM) to 24 Hour format. It also has functions to input and display time in 12 Hour format. A main function should call all defined functions by creating the object of both classes.

1 Expert Answer


Andy C. answered • 09/23/17

Math/Physics Tutor

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.


Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.