For this assignment, I choose Processing application as my interface programming tool.
I wrote a simple code for controlling the servo motor.
I can drag the circle on screen by pressing mouse to control the movement of the servo motor.
It also needs a simple code for Arduino part. Please see the image below.