can anyone help me to do it? Thank!

Write a program that creates two rectangular shapes and then animates them. The two shapes
should start on opposite ends of the screen and then move toward each other. When they meet in
the middle of the screen, each shape reverses course and moves toward the edge of the screen.
The two shape keep oscillating and bouncing off of each other in the middle of the screen. The
program terminates when the shape meet each other in the middle for the tenth times.
Your program must use concepts of Object Oriented Programming (Class, polymorphism and virtual
functions)
Your program must be documented (indentation, comments, good use of variables). Use two
different colorsto show rectangular shape.

Topic archived. No new replies allowed.