So, you need to find out how to read an analogue sensor, how to compare the value returned to some constants and how to turn on LEDs
Here is an outline
declare global variables such as sensible names for pins
start of setup()
set the pinModes() for the pins
start the Serial interface to allow debug messages to be output if required
end of setup()
start of loop()
read value from sensor
if value less than 449
turn on green LED
else
if value is less than 471
turn on the yellow LED
else
if value is greater than 470 (flaw in the logic here based on your description)
turn on the red LED
end if
end of loop()
What conditions turn the LEDs off ?