How to modify the below code that the motor works (Turns on) for tamount of time

Hi

You already told me to delete following lines from the codes

//temporary code to test the motor control functions
Serial.println("Testing motor functions. Please wait");
motorRight("testing");
delay(200);
motorStop("testing");
delay(2000);
motorLeft("testing");
delay(200);
motorStop("testing");
delay(2000);
Serial.println("Finished testing motor functions");

I faced with compiling problem When I did it but you told you can easily compile it, so I began deleting the lines one by one to see which line made compiling problem and I saw all lines could be deleted without any compiling problem except delay(2000);

So, I let delay (2000); stay there and tested the system after compiling and uploading the code and as i told you, the testing function was gone. that was all

Now, for printing problem, the program does not compile when I delete the limes that are shown in IDE serial monitor after entering 1 or 2

Regards