Using object orientated programming

I have to draw a n-pointed and n-sized star using a turtle which basically functions as a pen that can be told to draw a certain length and to rotate to draw in different directions. It should work as a function where the user inputs the size and number of points and the turtle draws the star.

1 comentario

Guillaume
Guillaume el 17 de Oct. de 2016
Editada: Guillaume el 17 de Oct. de 2016
Do it in LOGO. Done in 8 lines of code!
More seriously, what is your question and where does OOP figure into this?
Hopefully, you're not asking for somebody to do your homework for you.

Iniciar sesión para comentar.

Categorías

Más información sobre Instrument Control Toolbox Supported Hardware en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 17 de Oct. de 2016

Editada:

el 19 de Oct. de 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by