Programming for Kids - ZedLX

The Easiest Way to Learn Computer Programming, for Free

Simple Graphics [1/9]

Simple Graphics

The given program contains an error. Try to correct it.

It is impossible for the computer to always guess exactly what the error is. In this case, the error report is not very helpfull.

Hint: The arguments must be separated by commas (,).

Inside an expression, a forward slash symbol signifies a division operation. Therefore, 20 /darkorange means: 20 divided by 'darkorange'.

If you are unable to solve a task, then it is fine to take a look at the solution. But, be sure to make a good effort before revealing the solution. In this exercise, try reading the provided hint again.


    disc(x, 200, 20, /darkorange);

After correcting the error and running the program, add a statement println "x: ", x; before the disc statement. Then try out the new program.