This is the program you will use for the first additional task as well. Students should further develop the program. It starts by waiting for the current power to be more than 10. This is the value we reached in our tests but students may find other values. Then the T-Rex will move 5 rotations forward in order to attack.
In the additional task the students should add a wait block in a parallel string for the other motor to detect any movement and then should program the T-Rex to roar.
You can find programs for the robot here: https://www.fllcasts.com/programs/nfd3x8-program-for-the-ev3-t-rex-chasing-a-car-robot