1. PROGRAM FLOW DESIGN MODELLING
BASIC LEVEL
This is the activity diagram for the basic level of the program. The first thing is that the program is opened, screen loads up, and then the shapes are loaded up. After that, the robot moves in a predefined path until screen times out. When the time out is reached, the program closes.
INTERMEDIATE LEVEL
2. This is the activity diagram for the intermediate level of the program. The intermediate follows from the basic level, when it gets to the shapes being loaded up, the next thing is that the robot path is randomised and it has three different paths to follow. The robot can choose anyone of the path to follow. When it chooses one of them, the robot then moves in a predefined path until screen times out. When the traffic light shows red, it stops and when it shows green, it keeps on moving in the predefined route. The robot keeps on doing that until the time out is reached and then the program closes.
ADVANCED LEVEL
This is the activity diagram for the advanced level of the program. The first thing is that the program opens, and then synchronization takes place that is the loading of the shapes, robots and lights all occur at the same time. The robots move randomly throughout the program. When the robots detects that they are close to each other, they move away from themselves and continue moving randomly. Then, when either of the robots collides with the wall or the obstacles, it rebounds and keeps on moving randomly. Also, when the red light shows red, the robot stops and when the light changes to green, it
3. keeps on moving randomly until timeout and then the program closes.