Unit 3 Lesson 7- APIs and Function Parameters (Smiley Face Code)

Smiley Face Code:
moveTo(160, 220);
penColor("blue");
dot(1000000);
penColor("yellow");
dot(150);
moveForward(50);
turnRight(90);
moveForward(45);
penColor("black");
dot(20);
penUp();
turnTo(270);
moveForward(90);
penDown();
dot(20);
penUp();
moveForward(50);
turnLeft(90);
moveForward(50);
penDown();
penWidth(20);
arcLeft(180, 100);


Reflection:
  • Copy and paste your code to create your smiley face.  What challenges did you face in this lab? How did you solve these challenges?  Did you collaborate with others in class? Did you get or provide help to other "programmers" in class?  With what?  What documentation did you use for this lab today?  Provide examples of other libraries you are familiar with in other programming languages.

The challenges I faced in this lab was repetition because it was hard to track down the mistakes I made in the code if I have each line of code relying on the other line to be correct. In other words, if one line was messed up, then the others would follow through and look different as well. I collaborated with others in class such as Olivia. After going through each line, She and I tested that each line left no trouble and worked efficiently. I used several of the coding required such as Penwidth, dot (radius), moveForward, ArcLeft and Right, etc.

Comments

Post a Comment

Popular posts from this blog

Reflections from Blown to Bits Ch. 3 (Homework- 9/28/17)

Unit 3 Lesson 5- Creating Functions (Diamond Code)

Blown to Bits Appendix/Ch.3 Reflection (Homework- 10/11/17)