Originally Posted by
PenLix
Well, i' ll try to translate it caz its in greek language :P
We have made in class a program that simulate 2 cars that they move randomly in a 1-dim array untill they collide. Use this program so it works in d-dimensions. In the d-dimensions for every move of a car for every dimension the value is +1, 0, or -1. The value of a dimension can't be more than 2 or less than -2. If we have d dimensions this means that the car moves in the d-cube [-2,2]^d. the cars start from 0. you must print the position that they collide. print the position of the cars in every time the move. d is given from the user. you must have a class Car which code is same as mains and one class Position and one Dimension....
(10 days...)