Blog of Andrés Aravena
CMB2:

Homework 2

23 February 2019. Deadline: Friday, 1 March, 9:00.

Using R Turtle Graphics, write four functions to draw:

To do so, you must use Rstudio to create a R Script file. The filename must be homework2.R.You can use this template as a starting point. The suggested function names are:

Notice that only the last function takes an input value. The letter n represents how many sides are there in the polygon. With these functions you should be able to draw a figure like this:

Send your answer to andres.aravena+cmb@istanbul.edu.tr. Write your student number in the email’s Subject and at the beginning of the file.

Hints

Deadline: Friday, 1 March, 9:00.

Originally published at https://anaraven.bitbucket.io/blog/2019/cmb2/homework-2.html