Question: Please solve this in C++ .Thanks Data Abstraction and Problem Solving with C++ 6th ed page 115 Design and implement an ADT that represents the

 Please solve this in C++ .Thanks Data Abstraction and Problem Solving

Please solve this in C++ .Thanks

Data Abstraction and Problem Solving with C++ 6th ed page 115 Design and implement an ADT that represents the time of day. Represent the time as hours and minutes on a 24-hour clock. The hours and minutes are the private data members of the class that implements the ADT. Include at least two initialization operations: one that provides a default value for the time, and another that sets the time to a client- supplied value. These operations are the class's constructors. Also include operations that set the time, increase the present time by a number of minutes, and display the time in 12-hour and 24-hour notations. Demonstrate your ADT in a main function. Input o The ADT includes interfaces for set the time and increase the present time by a number of minutes. o Users cannot impact non-interface members of the ADT. Processing o The ADT handles various time related math (e.g. increasing time by 60 minutes increases the number of hours displayed by 1) oCorrect use of initialization and constructors Output o The ADT correctly handles different time displays ("display the time in 12-hour and 24-hour notations.")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!