arduino robot

what i want to do is to combine sound sensor program with an automatical arduino robot program which using ultrasonic sensor.So whenever the robot detect the sound it'll start to move

So, you have a program that can read the sound sensor, and do something with the data.

You have a program that contains what you want to do. Combining them should be trivial. What have you tried? What were the results?