From 5aeee9383a274fdc256d461ba005431ce2b1638b Mon Sep 17 00:00:00 2001 From: turnerwb Date: Sat, 25 Nov 2017 15:04:51 -0500 Subject: [PATCH 1/9] Added 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..ce57d33 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 Wesley Turner. """ ######################################################################## # From 5531838839a8a22bd44872e37c5d6a69ba1ba8e1 Mon Sep 17 00:00:00 2001 From: turnerwb Date: Sat, 25 Nov 2017 15:34:32 -0500 Subject: [PATCH 2/9] Finished Method Two --- src/m1e_comments_strings_print.py | 1 + src/m2_hello_world.py | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/m1e_comments_strings_print.py b/src/m1e_comments_strings_print.py index 18eb8a0..9619a15 100644 --- a/src/m1e_comments_strings_print.py +++ b/src/m1e_comments_strings_print.py @@ -14,3 +14,4 @@ print('one', 'two', 'buckle my shoe') print(3 + 9) print('3 + 9', 'versus', 3 + 9) +print("Hello World") \ No newline at end of file diff --git a/src/m2_hello_world.py b/src/m2_hello_world.py index aaa506a..b1aa04b 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 +# DONE # to # DONE. # Try it now on line 16 above, and note that its blue bar on @@ -51,7 +51,7 @@ ######################################################################## # -# 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 @@ -59,10 +59,10 @@ # Look at the Console to be sure that your string printed as expected. # ######################################################################## - +print('Four Score and Seven Years Ago...') ######################################################################## # -# 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 2399a6490b3fae55ba466307a0390911b251c9a4 Mon Sep 17 00:00:00 2001 From: turnerwb Date: Sat, 25 Nov 2017 15:35:02 -0500 Subject: [PATCH 3/9] Cleaned last TODO --- 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 b1aa04b..46fefa0 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 1da5e69c7278ba22a4236c7bfb4a27814db175fe Mon Sep 17 00:00:00 2001 From: turnerwb Date: Mon, 27 Nov 2017 10:31:51 -0500 Subject: [PATCH 4/9] Cleaned m1e and did 1-3 in m3 --- src/m1e_comments_strings_print.py | 3 +-- src/m3_turtles.py | 9 +++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/m1e_comments_strings_print.py b/src/m1e_comments_strings_print.py index 9619a15..a04a92c 100644 --- a/src/m1e_comments_strings_print.py +++ b/src/m1e_comments_strings_print.py @@ -13,5 +13,4 @@ print('hi there') print('one', 'two', 'buckle my shoe') print(3 + 9) -print('3 + 9', 'versus', 3 + 9) -print("Hello World") \ No newline at end of file +print('3 + 9', 'versus', 3 + 9) \ No newline at end of file diff --git a/src/m3_turtles.py b/src/m3_turtles.py index ce57d33..5ea0d39 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 @@ -73,11 +73,12 @@ matt.backward(50) matt.left(90) matt.forward(50) - +matt.right(20) +matt.forward(100) ######################################################################## # -# 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. From 7455a3b8e882c05ab2724780d863cfbec240ad4e Mon Sep 17 00:00:00 2001 From: turnerwb Date: Mon, 27 Nov 2017 10:37:24 -0500 Subject: [PATCH 5/9] Finished m3 --- src/m3_turtles.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/m3_turtles.py b/src/m3_turtles.py index 5ea0d39..5c0c845 100644 --- a/src/m3_turtles.py +++ b/src/m3_turtles.py @@ -92,7 +92,7 @@ ######################################################################## # -# TODO: 4. +# DONE: 4. # The code above CONSTRUCTS two SimpleTurtle objects and gives those objects NAMES: # dave matt # @@ -110,10 +110,15 @@ # As always, test by running the module. # ######################################################################## - +mary = rg.SimpleTurtle('turtle') +mary.pen = rg.Pen('green', 10) +mary.speed = 5 +mary.forward(10) +mary.left(90) +mary.forward(50) ######################################################################## # -# 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 a602f4ac2f4a3ace999392de03e0eb0b9f22802f Mon Sep 17 00:00:00 2001 From: turnerwb Date: Mon, 27 Nov 2017 11:32:46 -0500 Subject: [PATCH 6/9] Finished! --- src/m5_your_turtles.py | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/src/m5_your_turtles.py b/src/m5_your_turtles.py index d9de2a6..d603c09 100644 --- a/src/m5_your_turtles.py +++ b/src/m5_your_turtles.py @@ -2,15 +2,15 @@ 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 Wesley Turner. """ ######################################################################## -# TODO: 1. +# DONE: 1. # On Line 5 above, replace PUT_YOUR_NAME_HERE with your own name. ######################################################################## - +import rosegraphics as rg ######################################################################## -# 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,26 @@ # # Don't forget to COMMIT your work by using VCS ~ Commit and Push. ######################################################################## +window = rg.TurtleWindow() +julia = rg.SimpleTurtle() +julia.pen = rg.Pen('black', 20) +julia.speed = 5 +maria = rg.SimpleTurtle("turtle") +maria.pen = rg.Pen('green', 35) +maria.speed = 5 +julia.right(30) +for i in range(5): + julia.forward(250) + julia.right(150) + julia.forward(250) +maria.pen_up() +maria.left(90) +maria.forward(150) +maria.right(50) +maria.forward(50) +maria.pen_down() +for i in range(12): + maria.forward(40) + maria.left(30) + +window.close_on_mouse_click() \ No newline at end of file From badd7dcd917f72f6ed223d4f8d2c143259930b87 Mon Sep 17 00:00:00 2001 From: turnerwb Date: Mon, 27 Nov 2017 11:36:00 -0500 Subject: [PATCH 7/9] Finished! For Real this time --- 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 d603c09..f698456 100644 --- a/src/m5_your_turtles.py +++ b/src/m5_your_turtles.py @@ -50,4 +50,4 @@ maria.forward(40) maria.left(30) -window.close_on_mouse_click() \ No newline at end of file +window.close_on_mouse_click() From c3a6ad54e98f0ca56141e094c62daedba9c1cb9e Mon Sep 17 00:00:00 2001 From: turnerwb Date: Mon, 27 Nov 2017 11:37:16 -0500 Subject: [PATCH 8/9] Finished! For Real this time --- 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 f698456..5f8b910 100644 --- a/src/m5_your_turtles.py +++ b/src/m5_your_turtles.py @@ -46,7 +46,7 @@ maria.right(50) maria.forward(50) maria.pen_down() -for i in range(12): +for j in range(12): maria.forward(40) maria.left(30) From ac6edb62a5a26283c36dc5c03468341199d19c67 Mon Sep 17 00:00:00 2001 From: turnerwb Date: Mon, 27 Nov 2017 11:37:31 -0500 Subject: [PATCH 9/9] Finished! For Real this time --- 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 5f8b910..bf562b0 100644 --- a/src/m5_your_turtles.py +++ b/src/m5_your_turtles.py @@ -46,7 +46,7 @@ maria.right(50) maria.forward(50) maria.pen_down() -for j in range(12): +for k in range(12): maria.forward(40) maria.left(30)