From 73ce0c8345e1c86bd5e75249e432273bf3a24ed2 Mon Sep 17 00:00:00 2001 From: jacobsgm Date: Tue, 28 Nov 2017 17:18:49 -0500 Subject: [PATCH 1/8] done --- src/m2_hello_world.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/m2_hello_world.py b/src/m2_hello_world.py index aaa506a..3391aea 100644 --- a/src/m2_hello_world.py +++ b/src/m2_hello_world.py @@ -13,7 +13,7 @@ ######################################################################## # -# TODO: 1. +# Done: 1. # (Yes, that means for YOU to DO things per these instructions:) # # Run this module by right clicking anywhere in this window and select @@ -26,7 +26,7 @@ ######################################################################## # -# TODO: 2. +# Done: 2. # Notice the small horizontal BLUE bars on the scrollbar-like thing # on the right. Each blue bar indicates a TO DO in this module. # @@ -34,7 +34,7 @@ # by clicking on the blue bars. ** Try that now. ** # # b. When you have completed a TO DO, you should change the word -# TODO +# TO DO # to # DONE. # Try it now on line 16 above, and note that its blue bar on From ec95f314ebc78fd468c38d584b243c3c80d1863d Mon Sep 17 00:00:00 2001 From: jacobsgm Date: Tue, 28 Nov 2017 23:08:47 -0500 Subject: [PATCH 2/8] done --- src/m2_hello_world.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/m2_hello_world.py b/src/m2_hello_world.py index 3391aea..08c44ce 100644 --- a/src/m2_hello_world.py +++ b/src/m2_hello_world.py @@ -51,7 +51,7 @@ ######################################################################## # -# TODO: 3. +# TO DO: 3. # Add another print statement below. # It should print any string that you want (but keep it G-rated!) # Test your code by re-running this module using either the right click @@ -60,9 +60,10 @@ # ######################################################################## +print('Hello World Again!') ######################################################################## # -# TODO: 4. +# TO DO: 4. # Add yet another print statement. # This one should print the *product* of 3,607 and 34,227. # Let the computer do the arithmetic for you (no calculators!). @@ -74,6 +75,7 @@ # ######################################################################## +print(3607*34227) ######################################################################## # # TODO: 5. From a8d688d6ac4796d640409092907279ebb8c88945 Mon Sep 17 00:00:00 2001 From: jacobsgm Date: Tue, 28 Nov 2017 23:09:12 -0500 Subject: [PATCH 3/8] done --- src/m2_hello_world.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m2_hello_world.py b/src/m2_hello_world.py index 08c44ce..ee10b4f 100644 --- a/src/m2_hello_world.py +++ b/src/m2_hello_world.py @@ -78,7 +78,7 @@ print(3607*34227) ######################################################################## # -# TODO: 5. +# TO DO: 5. # Look at the list of files in this project to the left. # Note that this file (m2_hello_world.py) is now displayed in a blue # font color (if the file is highlighted select a different file so yu can From 07ad607c171cf5ebf8a1f3f2a470150950a2fbe3 Mon Sep 17 00:00:00 2001 From: jacobsgm Date: Tue, 28 Nov 2017 23:13:24 -0500 Subject: [PATCH 4/8] done --- src/m2_hello_world.py | 10 +++++----- src/m3_turtles.py | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/m2_hello_world.py b/src/m2_hello_world.py index ee10b4f..9ea58e0 100644 --- a/src/m2_hello_world.py +++ b/src/m2_hello_world.py @@ -13,7 +13,7 @@ ######################################################################## # -# Done: 1. +# DONE: 1. # (Yes, that means for YOU to DO things per these instructions:) # # Run this module by right clicking anywhere in this window and select @@ -26,7 +26,7 @@ ######################################################################## # -# Done: 2. +# DONE: 2. # Notice the small horizontal BLUE bars on the scrollbar-like thing # on the right. Each blue bar indicates a TO DO in this module. # @@ -51,7 +51,7 @@ ######################################################################## # -# TO DO: 3. +# DONE: 3. # Add another print statement below. # It should print any string that you want (but keep it G-rated!) # Test your code by re-running this module using either the right click @@ -63,7 +63,7 @@ print('Hello World Again!') ######################################################################## # -# TO DO: 4. +# DONE: 4. # Add yet another print statement. # This one should print the *product* of 3,607 and 34,227. # Let the computer do the arithmetic for you (no calculators!). @@ -78,7 +78,7 @@ print(3607*34227) ######################################################################## # -# TO DO: 5. +# DONE: 5. # Look at the list of files in this project to the left. # Note that this file (m2_hello_world.py) is now displayed in a blue # font color (if the file is highlighted select a different file so yu can diff --git a/src/m3_turtles.py b/src/m3_turtles.py index df507f3..0cabb33 100644 --- a/src/m3_turtles.py +++ b/src/m3_turtles.py @@ -10,11 +10,11 @@ -- ASSIGNING a VALUE to a NAME (VARIABLE). Authors: David Mutchler, Dave Fisher, Valerie Galluzzi, Amanda Stouder, - their colleagues and PUT_YOUR_NAME_HERE. + their colleagues and Garrett Jacobs. """ ######################################################################## # -# TODO: 1. +# Done: 1. # (Yes, that means for YOU to DO things per these instructions:) # # On Line 13 above, replace PUT_YOUR_OWN_NAME_HERE with your OWN name. From 6ffd4a581ee4b75f9e362aad6003301c6120d58e Mon Sep 17 00:00:00 2001 From: jacobsgm Date: Tue, 28 Nov 2017 23:49:51 -0500 Subject: [PATCH 5/8] this is very different than java --- src/m3_turtles.py | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/src/m3_turtles.py b/src/m3_turtles.py index 0cabb33..ceb5849 100644 --- a/src/m3_turtles.py +++ b/src/m3_turtles.py @@ -14,7 +14,7 @@ """ ######################################################################## # -# Done: 1. +# DONE: 1. # (Yes, that means for YOU to DO things per these instructions:) # # On Line 13 above, replace PUT_YOUR_OWN_NAME_HERE with your OWN name. @@ -29,7 +29,7 @@ ######################################################################## # -# TODO: 2. +# DONE: 2. # Allow this file to use the rosegraphics.py file by marking the src # directory as a "Sources Root". Do that by right clicking on the src folder, # then selector Mark Directory As --> Sources Root @@ -73,11 +73,13 @@ matt.backward(50) matt.left(90) matt.forward(50) - +matt.left(85) +matt.backward(60) +matt.right(90) ######################################################################## # -# TODO: 3. +# DONE: 3. # Add a few more line of your own code above to make one of the # existing Turtles move some more and/or have different # characteristics. @@ -89,9 +91,10 @@ # ######################################################################## + ######################################################################## # -# TODO: 4. +# DONE: 4. # The code above CONSTRUCTS two SimpleTurtle objects and gives those objects NAMES: # dave matt # @@ -110,9 +113,17 @@ # ######################################################################## +garrett = rg.SimpleTurtle('turtle') +garrett.pen= rg.Pen('green', 20) +garrett.speed = 50 +garrett.forward(100) +garrett.left(100) +garrett.backward(100) +garrett.right(100) + ######################################################################## # -# TODO: 5. +# DONE: 5. # Run one more time to be sure that all is still OK. # Ensure that no blue bars on the scrollbar-thing to the right remain. # From e4c0171272659208ae7b060766b2f5fdd462c7fa Mon Sep 17 00:00:00 2001 From: jacobsgm Date: Wed, 29 Nov 2017 00:10:46 -0500 Subject: [PATCH 6/8] this is very different than java --- src/m5_your_turtles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m5_your_turtles.py b/src/m5_your_turtles.py index d9de2a6..ef6f6a3 100644 --- a/src/m5_your_turtles.py +++ b/src/m5_your_turtles.py @@ -2,7 +2,7 @@ Your chance to explore Loops and Turtles! Authors: David Mutchler, Dave Fisher, Valerie Galluzzi, Amanda Stouder, - their colleagues and PUT_YOUR_NAME_HERE. + their colleagues and Garrett Jacobs. """ ######################################################################## # TODO: 1. From adf178fe1266242527abd00cff3b0d5a9fa1ebef Mon Sep 17 00:00:00 2001 From: jacobsgm Date: Wed, 29 Nov 2017 00:15:44 -0500 Subject: [PATCH 7/8] this is very different than java --- src/m5_your_turtles.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/m5_your_turtles.py b/src/m5_your_turtles.py index ef6f6a3..d1a6735 100644 --- a/src/m5_your_turtles.py +++ b/src/m5_your_turtles.py @@ -5,12 +5,12 @@ their colleagues and Garrett Jacobs. """ ######################################################################## -# TODO: 1. +# DONE: 1. # On Line 5 above, replace PUT_YOUR_NAME_HERE with your own name. ######################################################################## ######################################################################## -# TODO: 2. +# DONE: 2. # # You should have RUN the PREVIOUS module and READ its code. # (Do so now if you have not already done so.) @@ -28,3 +28,17 @@ # # Don't forget to COMMIT your work by using VCS ~ Commit and Push. ######################################################################## + +import rosegraphics as rg + +window = rg.TurtleWindow() + +turtle1 = rg.SimpleTurtle('turtle') +turtle1.pen = rg.Pen('green', 5) +turtle1.speed = 50 + +size = 50 + +for k in range(5): + + From 1e741bc99c5fb0a99dcb0c70ba4312f44bd50164 Mon Sep 17 00:00:00 2001 From: jacobsgm Date: Wed, 29 Nov 2017 00:32:33 -0500 Subject: [PATCH 8/8] i need help with this --- src/m5_your_turtles.py | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/m5_your_turtles.py b/src/m5_your_turtles.py index d1a6735..075cc27 100644 --- a/src/m5_your_turtles.py +++ b/src/m5_your_turtles.py @@ -35,10 +35,33 @@ turtle1 = rg.SimpleTurtle('turtle') turtle1.pen = rg.Pen('green', 5) -turtle1.speed = 50 +turtle1.speed = 10 size = 50 for k in range(5): + turtle1.draw_circle(50) + turtle1.pen_up() + turtle1.forward(100) + turtle1.right(100) + turtle1.right(150) + turtle1.right(100) + + turtle1.pen_down() + size = size-5 + + +turtle2 = rg.SimpleTurtle('turtle') +turtle2.pen = rg.Pen('pink', 12) +turtle2.speed = 5 + +for k in range(15): + + turtle2.forward(100) + turtle2.right(100) + turtle2.forward(100) + + +window.close_on_mouse_click()