Question: please show the output LAB #5-Using CLASSES DESIGN AND IMPLEMENT A CLASS and THEN A COMPLETE PROGRAM THAT UTILIZES ALL THE FUNCTIONALITY IN THE CLASS

 please show the output LAB #5-Using CLASSES DESIGN AND IMPLEMENT A

please show the output

LAB #5-Using CLASSES DESIGN AND IMPLEMENT A CLASS and THEN A COMPLETE PROGRAM THAT UTILIZES ALL THE FUNCTIONALITY IN THE CLASS DESCRIBED BELOW. Suppose these three variables are: int hr; int min; int sec; We also want to perform the following operations on the time: 1. Set the time. 2. Retrieve the time. 3. Print the time. 4. Increment the time by one second. 5. Increment the time by one minute. 6. Increment the time by one hour. 7. Compare the two times for equality. To implement these seven operations, we will write seven functions-setTime, getTime, printTime, incrementSeconds, incrementMinutes, incrementHou rs, and equalTime. Note 1: IN the Main Program, we should INVOKE/ CALL each of the FUNCTIONS defined above for EACH OBJECT. That means you will: (1) Define the class (2) Have at least 2 objects of the class objects instantiated in the program, (3) Utilize ALL the functionality of each function member in the program. (4) CALL/ INVOKE ALL FUNCTION-MEMBERS defined in the class. Note 2: You will have to include all the FULL-FUNCTION DEFINITIONS after the end of the Main Program. You can input from either a file and/or from the console for the HOURS, MINUTES and SECONDS. PLEASE REFER TO THE CHAPTER in the B0OK RELATED TO CLASSES

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!