Programming Practice
Deitel and Deital, 4th edition, Chapter 16

16.4 Provide a constructor that is capable of using the current time from time function--declared in the C standard library header time.h--to initialize an object of the Time class.

16.5 Create a class called Complex for performing arithmetic with complex numbers. Write a driver program to test your class. Complex numbers have the form realPart + imagniaryPart * i, where i is (-1)1/2.

Use double variables to represent to represent the private data of the class. Provide public member functions for each of the following:

(a) (a + b * i )  + (c + d * i) = (a + c) + (b + d) * i

(b) (a + b * i )  - (c + d * i) = (a - c) + (b - d) * i

16.7 Create a class Rectangle. the class has attribute length and width, each of which is defaults to 1. It has member functions that calculate the perimeter and the area of the rectangle. It has set and get functions for both length and width. The set functions should verify that length and width are each floating-point numbers larger than 0.0 and less than 20.0.

16.11 Create a class TicTacToe that will enable you to write a complete program to play the game of tic-tac-toe. The class contains as private data a 3-by-3 double array of integers. The constructor should initialize the empty board to all zeros. Allow two human players. Wherever the first player moves, place a 1 in the specified square; place a 2 wherever the second player moves. Each move must be an empty square. After each move, determine if the game has been won or if the game is a draw.