To walk, the robot must receive input in meters, how long it has to walk. The robot will compute the distance it has moved every 1 meter. The process of checking the distance will be repeated every 1 meter until it finishes the movement.
My Pseudo code Design:
start num walkingDistance num distanceMoved = 0 Display "Enter the distance (in meter) : " Get walkingDistance for (count = 1 to walkingDistance) distanceMoved = distanceMoved + 1 endfor end
Is there any problems on my design? Any help is much appreciated.