Question: C++ Classes . OBJECTIVES Design, develop, and test CH+ programs that define and use classes. Procedure 1. If you have the 7th edition, design, develop,

 C++ Classes . OBJECTIVES Design, develop, and test CH+ programs that
define and use classes. Procedure 1. If you have the 7th edition,
design, develop, and test Chapter 10's Programming Exercise 7. If you have

C++ Classes . OBJECTIVES Design, develop, and test CH+ programs that define and use classes. Procedure 1. If you have the 7th edition, design, develop, and test Chapter 10's Programming Exercise 7. If you have the gah edition, design, develop, and test Chapter 10's Programming Exercise 9. Use the name Lab13Clock. This exercise requires you to add six (6) new member functions to the class. The six members are: one that sets just the hours, one that sets just the minutes, one that sets just the seconds, one that returns just the hours, one that returns just the minutes, and one that returns just the seconds. Your program should consist of three files: clockType.h, a header file that will be a modified version of the original clockType.h file which can be downloaded from Unit 13 - Lab Assignment. clockType.cpp, an implementation file that will be a modified version of the original clockType.cpp file which can be downloaded from Unit 13 - Lab Assignment Lab13Clock.epp, a file that tests your class by creating a clockType object and demonstrating the member functions. Let me know if you have questions. 2. If you have the 7th edition, design, develop, and test Chapter 10's Programming Exercise 8. If you have the 8 edition, design, develop, and test Chapter 10's Programming Exercise 10. Use the name Lab13ClockEnhanced. This exercise requires you to add three new member functions to the class, as described in items a, b, and c of the problem statement The third of these functions is the trickiest, since it must deal with two clockType objects. The original function named equalTime also deals with two clockType objects, so you might want to study it as a model for your third new function. Your program should consist of three files: clock TypeEnhanced.h, a header file that that will be a modified version of the previous program's clockType.h. clock TypeEnhanced.cpp, an implementation file that will be a modified version of the previous program's clockType.cpp. Lab13ClockEnhanced.cpp, a file that tests your class by creating two clockTypeEnhanced objects and demonstrating the member functions. Let me know if you have questions. A sample run of Lab13ClockEnhanced is below: Enter the time for Clock1: 2 15 31 The elapsed time of the day in seconds = 8131 The remaining time of the day in seconds = 78269 Enter the time for Clock2: 12 45 18 The elapsed time of the day in seconds = 45918 The remaining time of the day in seconds = 40482 The time difference between Clock1 and Clock2 = 10:29:47 ***** This lab has 2 named programs. If you didn't finish both of these during class, finish themtafter class. Then upload your source files along with a copy of each program's output (black screen) in a zip file to the Lab 13 dropbox. Each program consists of 3 source files, so you should upload a total of 6 program source files along with each programs output (black screen). ***** 738 Chapter 10: Classes and 9. that uses your class. This chapter defines the class clockType to implement time in a program. Add functions to this class so that a program this class can set only the hours, minutes, or seconds and retrieve hours, minutes, and seconds as inline. Also write a program to test only the hours, minutes, or seconds. Make the functions that retrieve 10. Enhance Programming Exercise 9 by adding functions to the class clockType so that a program that uses this class can perform the fol- lowing operations: Returns the elapsed time of the day of a clock in seconds. Returns the remaining time of the day of a clock in seconds. Determines and outputs how far apart in time two clocks are. Outputs the time in the form hr:min:sec. a. C. Also write a program to test your class

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!