From ddcf464a4120bdac8c0aa78e3133ab1385eea693 Mon Sep 17 00:00:00 2001 From: mcgeeca Date: Sun, 26 Nov 2017 02:36:27 -0500 Subject: [PATCH 01/11] I added my name --- src/m3_turtles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m3_turtles.py b/src/m3_turtles.py index df507f3..2f8e63f 100644 --- a/src/m3_turtles.py +++ b/src/m3_turtles.py @@ -10,7 +10,7 @@ -- 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 Craig McGee Jr. """ ######################################################################## # From 99832f999671a9d97ca4c23ba74b895be2deddf3 Mon Sep 17 00:00:00 2001 From: mcgeeca Date: Sun, 26 Nov 2017 02:36:55 -0500 Subject: [PATCH 02/11] I added my name --- src/m3_turtles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m3_turtles.py b/src/m3_turtles.py index 2f8e63f..272280c 100644 --- a/src/m3_turtles.py +++ b/src/m3_turtles.py @@ -10,7 +10,7 @@ -- ASSIGNING a VALUE to a NAME (VARIABLE). Authors: David Mutchler, Dave Fisher, Valerie Galluzzi, Amanda Stouder, - their colleagues and Craig McGee Jr. + their colleagues and Craig McGee. """ ######################################################################## # From 8fa20e9e680814757ad54dae0c062d0bd06a00db Mon Sep 17 00:00:00 2001 From: mcgeeca Date: Sun, 26 Nov 2017 02:38:04 -0500 Subject: [PATCH 03/11] I added my name --- src/m3_turtles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m3_turtles.py b/src/m3_turtles.py index 272280c..2f8e63f 100644 --- a/src/m3_turtles.py +++ b/src/m3_turtles.py @@ -10,7 +10,7 @@ -- ASSIGNING a VALUE to a NAME (VARIABLE). Authors: David Mutchler, Dave Fisher, Valerie Galluzzi, Amanda Stouder, - their colleagues and Craig McGee. + their colleagues and Craig McGee Jr. """ ######################################################################## # From f0eff28048b8a027be394eef1171f00088a1013b Mon Sep 17 00:00:00 2001 From: mcgeeca Date: Mon, 27 Nov 2017 14:39:34 -0500 Subject: [PATCH 04/11] DONE --- src/m2_hello_world.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/m2_hello_world.py b/src/m2_hello_world.py index aaa506a..5812363 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. # @@ -48,10 +48,10 @@ # (and proceed similarly for all forthcoming TODOs in this course). # ######################################################################## - +print("My favorite food is lasagna") ######################################################################## # -# TODO: 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 @@ -62,7 +62,7 @@ ######################################################################## # -# TODO: 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!). @@ -73,7 +73,7 @@ # (HINT: It is an INTERESTING number.) Get help if your value is wrong. # ######################################################################## - +print(3607*34227) ######################################################################## # # TODO: 5. From e3b20a45dfad0291a607722bb55147b7fd32293d Mon Sep 17 00:00:00 2001 From: mcgeeca Date: Mon, 27 Nov 2017 14:40:14 -0500 Subject: [PATCH 05/11] 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 5812363..9a635da 100644 --- a/src/m2_hello_world.py +++ b/src/m2_hello_world.py @@ -76,7 +76,7 @@ print(3607*34227) ######################################################################## # -# TODO: 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 From 58f30dcb1a1e71a74a2efe3d2cb3b12cdb7192f8 Mon Sep 17 00:00:00 2001 From: mcgeeca Date: Mon, 27 Nov 2017 14:58:48 -0500 Subject: [PATCH 06/11] DONE --- src/m3_turtles.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/m3_turtles.py b/src/m3_turtles.py index 2f8e63f..9c452bb 100644 --- a/src/m3_turtles.py +++ b/src/m3_turtles.py @@ -14,7 +14,7 @@ """ ######################################################################## # -# 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. @@ -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 @@ -77,7 +77,7 @@ ######################################################################## # -# 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. @@ -88,10 +88,11 @@ # As always, test by running the module. # ######################################################################## - +matt.right(30) +matt.backward(100) ######################################################################## # -# TODO: 4. +# DONE: 4. # The code above CONSTRUCTS two SimpleTurtle objects and gives those objects NAMES: # dave matt # @@ -109,7 +110,12 @@ # As always, test by running the module. # ######################################################################## - +billNyeTheTurtleGuy = rg.SimpleTurtle("turtle") +billNyeTheTurtleGuy.pen = rg.Pen("blue", 30) +billNyeTheTurtleGuy.speed = 10 +billNyeTheTurtleGuy.forward(100) +billNyeTheTurtleGuy.left(40) +billNyeTheTurtleGuy.forward(200) ######################################################################## # # TODO: 5. From 141c8154d1cc722a8103f7ad448fd9d137821654 Mon Sep 17 00:00:00 2001 From: mcgeeca Date: Mon, 27 Nov 2017 14:59:26 -0500 Subject: [PATCH 07/11] DONE --- src/m3_turtles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m3_turtles.py b/src/m3_turtles.py index 9c452bb..11c1ea9 100644 --- a/src/m3_turtles.py +++ b/src/m3_turtles.py @@ -118,7 +118,7 @@ billNyeTheTurtleGuy.forward(200) ######################################################################## # -# 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 e2f33c7fb9a50d831dab06bc16fb94ab272ef978 Mon Sep 17 00:00:00 2001 From: mcgeeca Date: Mon, 27 Nov 2017 15:21:13 -0500 Subject: [PATCH 08/11] Working on Brutus --- src/m5_your_turtles.py | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/src/m5_your_turtles.py b/src/m5_your_turtles.py index d9de2a6..06a03ff 100644 --- a/src/m5_your_turtles.py +++ b/src/m5_your_turtles.py @@ -2,10 +2,10 @@ 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 Craig McGee Jr. """ ######################################################################## -# TODO: 1. +# DONE: 1. # On Line 5 above, replace PUT_YOUR_NAME_HERE with your own name. ######################################################################## @@ -28,3 +28,30 @@ # # Don't forget to COMMIT your work by using VCS ~ Commit and Push. ######################################################################## +import rosegraphics as rg +window = rg.TurtleWindow() +circle = rg.Circle +caesar = rg.SimpleTurtle("turtle") +caesar.pen = rg.Pen("yellow", 6) +caesar.speed = 15 +brutus = rg.SimpleTurtle("turtle") +brutus.pen = rg.Pen("royal blue", 4) +brutus.speed = 6 +size = 150 +size2 = 5 +for k in range(15): + caesar.draw_square(size) + caesar.pen_up() + caesar.right(35) + caesar.forward(20) + caesar.left(35) + caesar.backward(20) + caesar.pen_down() + size = size -6 + +for j in range(10): + brutus.draw_circle(size2) + + + +window.close_on_mouse_click() \ No newline at end of file From 99c11b9d0f1192ef1af57254c4e113d2cab1c5ae Mon Sep 17 00:00:00 2001 From: mcgeeca Date: Mon, 27 Nov 2017 16:06:56 -0500 Subject: [PATCH 09/11] Working on Brutus --- src/m5_your_turtles.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/m5_your_turtles.py b/src/m5_your_turtles.py index 06a03ff..916708e 100644 --- a/src/m5_your_turtles.py +++ b/src/m5_your_turtles.py @@ -30,16 +30,15 @@ ######################################################################## import rosegraphics as rg window = rg.TurtleWindow() -circle = rg.Circle caesar = rg.SimpleTurtle("turtle") caesar.pen = rg.Pen("yellow", 6) caesar.speed = 15 brutus = rg.SimpleTurtle("turtle") -brutus.pen = rg.Pen("royal blue", 4) +brutus.pen = rg.Pen("royal blue", 10) brutus.speed = 6 size = 150 -size2 = 5 -for k in range(15): +size2 = 120 +for k in range(10): caesar.draw_square(size) caesar.pen_up() caesar.right(35) @@ -47,10 +46,17 @@ caesar.left(35) caesar.backward(20) caesar.pen_down() - size = size -6 + size = size - 6 -for j in range(10): - brutus.draw_circle(size2) +for j in range(6): + brutus.draw_square(size2) + brutus.pen_up() + brutus.left(45) + brutus.backward(20) + brutus.right(45) + brutus.forward(20) + brutus.pen_down() + size = size - 5 From 20a631c126677631c1dd865e213d712fde4e2263 Mon Sep 17 00:00:00 2001 From: mcgeeca Date: Tue, 28 Nov 2017 19:49:14 -0500 Subject: [PATCH 10/11] DONE --- src/m5_your_turtles.py | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/src/m5_your_turtles.py b/src/m5_your_turtles.py index 916708e..a604067 100644 --- a/src/m5_your_turtles.py +++ b/src/m5_your_turtles.py @@ -31,32 +31,26 @@ import rosegraphics as rg window = rg.TurtleWindow() caesar = rg.SimpleTurtle("turtle") -caesar.pen = rg.Pen("yellow", 6) -caesar.speed = 15 +caesar.pen = rg.Pen("orange", 10) +caesar.speed = 10 brutus = rg.SimpleTurtle("turtle") brutus.pen = rg.Pen("royal blue", 10) -brutus.speed = 6 -size = 150 -size2 = 120 -for k in range(10): +brutus.speed = 10 +size = 50 +for k in range(5): caesar.draw_square(size) caesar.pen_up() - caesar.right(35) - caesar.forward(20) - caesar.left(35) - caesar.backward(20) + caesar.backward(200) + caesar.forward(100) caesar.pen_down() - size = size - 6 - -for j in range(6): - brutus.draw_square(size2) + size = size + 50 + brutus.draw_square(size) brutus.pen_up() - brutus.left(45) - brutus.backward(20) - brutus.right(45) - brutus.forward(20) + brutus.forward(200) + brutus.backward(100) brutus.pen_down() - size = size - 5 + size = size + 50 + From f21662e38ed754e13fb1c0deee11e812b50baaea Mon Sep 17 00:00:00 2001 From: mcgeeca Date: Tue, 28 Nov 2017 19:49:41 -0500 Subject: [PATCH 11/11] DONE --- 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 a604067..97b5747 100644 --- a/src/m5_your_turtles.py +++ b/src/m5_your_turtles.py @@ -10,7 +10,7 @@ ######################################################################## ######################################################################## -# 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.)