newbie project

hey! i am very new to arduino programming and i am learning programming by understanding the code. Following are 3 problems i have thought of! as i have no prior knowledge in any programming language , i am learning by example. If you could tell me how i can code my problems ( the 3 below)
, i can get a good understanding of the code and learn! thank you :slight_smile:

1)Write a program for reading the serial input from the user and perform the following operation,

Red led should glow if the user inputs numbers (integers)

Blue led should glow if the user inputs strings (string size minimum 5 characters)

White led should glow for any other garbage input from the user

  1. Write a program to make the LED blink according to the delay given by the user (in

milliseconds) through Serial input screen and at every 10 second interval the program

should update the Serial output screen with the current delay of the LED.

  1. Write a program, which will perform the following,

White led should glow for one second when user inputs white

Red led should glow for one second when the user inputs red

Blue led should glow for one second when user inputs blue

For any other case all the three led’s should blink simultaneously with any delay of your choice.

simple !

open your IDE and then select the menus
load the examples
these will walk you through the basics.

if you want a bit more, click on the 'learning' tab at the top of this site.
put check out the tutorials about serial.

I suggest that you also read this post:
http://forum.arduino.cc/index.php?topic=261445.0