need code for analog input

Hi all
i know im gona kill your time , but im in need
im very new to programming, i have a nano ( Nano V3.0 ATmega 328 16M) board and i need a program to full fill these conditions

I have 4 LED at pin D2, D4,D3,D8 as output
D7 as digital input input (Button)
analog input from LDR at A0
analog input from LDR at A1

now if value at A0 is below 300, D2 should be ON and if D2 stayed on for more than 100 seconds D4 should be blinking, D2,and D4 states should be reset by an input from D7 and whole process repeats until value again goes below 300.

similarly

now if value at A1 is below 300, D3 should be ON and if D3 stayed on for more than 100 seconds D8 should be blinking, D3,and D8 states should be reset by an input from D7 and whole process repeats until value again goes below 300.

if you can provide explanatory notes it would be great, thanx in advance

Only a few hints because this is obviously school work.
Use current limiting resistors on your LEDS.
Use analogRead() to read the value of the LDRs. These are probably wired in such a way that in low light, the analog value is near zero and in strong light, the value is near 1023.
Use millis() to control the timings. Use if() statements for the conditions.

That's a pretty good program specification. It will almost write itself.

When you have made some serious attempt at the program post it here and we'll be happy to explain anywhere you've gone wrong and how to fix it.

Steve