Automatic Car Park using Gizduino++ w/ ATmega644

Guys help with me with my code.
Our materials are gizduino atmega644, 4 (LDR), 1 or 2 (7 SEGMENT), 2 (MicroServo 9g SG90), and 1 rgb led
i don’t know coding and stuffs but our teacher asks us for a automatic carpark system.
he told us if the ldr has been covered by some vehicle, the servo motor from the entrance will automatically open up, the 7 segment will automatically count from 9 to 8, 8 to 7 and so on, and the rgb will turn red to green. same applies to the exit for the servo motor.
In my design i have 1 entrance and 1 exit

I see no code to help with.