Implement a class called ArrayMath, containing the following methods to perform calculations on arrays:
Write the code to test this class and its methods.
Write the basic parts of a car game program. The program must include a Car class with the following members:
Furthermore, the program must contain a class called CarGame that (by using an array) contains 5 objects of type Car. It must be possible to move each car (forward and reverse) and to get the position of each of the cars by providing an array index of the corresponding car.
Write a small test program to ensure that the two classes function correctly.