From 7c79561dcdc10c4d2d3b182de588e397b378a5a8 Mon Sep 17 00:00:00 2001 From: robertml2 Date: Mon, 5 Mar 2018 08:52:01 -0500 Subject: [PATCH 01/13] Commit --- src/m1e_comments_strings_print.py | 2 ++ src/m2_hello_world.py | 13 +++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/m1e_comments_strings_print.py b/src/m1e_comments_strings_print.py index b34fb87..6c1e5d2 100644 --- a/src/m1e_comments_strings_print.py +++ b/src/m1e_comments_strings_print.py @@ -23,3 +23,5 @@ print(3 + 9) print('3 + 9', 'versus', 3 + 9) + +print('Hello Everyone') \ No newline at end of file diff --git a/src/m2_hello_world.py b/src/m2_hello_world.py index 7f71b9e..7362697 100644 --- a/src/m2_hello_world.py +++ b/src/m2_hello_world.py @@ -1,5 +1,6 @@ print('Hello, World') - +print('Im programming') +print(3607*34227) ############################################################################### # # This line is a COMMENT -- a note to human readers of this file. @@ -17,7 +18,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 selecting @@ -32,7 +33,7 @@ ############################################################################### # -# TODO: 2. +# DONE: 2. # Notice the small horizontal BLUE bars on the scrollbar-like thing # on the right. Each blue bar indicates a thing TO-DO in this module. # @@ -57,7 +58,7 @@ ############################################################################### # -# TODO: 3. +# DONE: 3. # Add another print statement below the current Line 1 above. # It should print any string that you want (but keep it G-rated!) # @@ -70,7 +71,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!). @@ -84,7 +85,7 @@ ############################################################################### # -# TODO: 5. +# DONE: 5. # Look at the list of files in the Project window (to the left). Note that # this file (m2_hello_world.py) is now displayed in a blue font color. # - Clicking on a different file makes it easier to see From 88a8322190e3ad432eea3d00b0bd1b88e979efc7 Mon Sep 17 00:00:00 2001 From: robertml2 Date: Mon, 5 Mar 2018 08:52:27 -0500 Subject: [PATCH 02/13] Commit --- 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 7362697..fb5ef5c 100644 --- a/src/m2_hello_world.py +++ b/src/m2_hello_world.py @@ -85,7 +85,7 @@ ############################################################################### # -# DONE: 5. +# DONe: 5. # Look at the list of files in the Project window (to the left). Note that # this file (m2_hello_world.py) is now displayed in a blue font color. # - Clicking on a different file makes it easier to see From 11a0388d8322c9d8cd74067b12f4af4c93adb50e Mon Sep 17 00:00:00 2001 From: robertml2 Date: Mon, 5 Mar 2018 08:52:38 -0500 Subject: [PATCH 03/13] Commit --- 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 fb5ef5c..7362697 100644 --- a/src/m2_hello_world.py +++ b/src/m2_hello_world.py @@ -85,7 +85,7 @@ ############################################################################### # -# DONe: 5. +# DONE: 5. # Look at the list of files in the Project window (to the left). Note that # this file (m2_hello_world.py) is now displayed in a blue font color. # - Clicking on a different file makes it easier to see From 31a96420c55b840a27544b13a9c9a0e2bd916dc0 Mon Sep 17 00:00:00 2001 From: robertml2 Date: Mon, 5 Mar 2018 08:53:23 -0500 Subject: [PATCH 04/13] Commit --- 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 7362697..fb5ef5c 100644 --- a/src/m2_hello_world.py +++ b/src/m2_hello_world.py @@ -85,7 +85,7 @@ ############################################################################### # -# DONE: 5. +# DONe: 5. # Look at the list of files in the Project window (to the left). Note that # this file (m2_hello_world.py) is now displayed in a blue font color. # - Clicking on a different file makes it easier to see From b3ebed586522d9676422c9a92fb7bdd9804ddff3 Mon Sep 17 00:00:00 2001 From: robertml2 Date: Mon, 5 Mar 2018 08:56:42 -0500 Subject: [PATCH 05/13] Commit --- 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 fb5ef5c..7362697 100644 --- a/src/m2_hello_world.py +++ b/src/m2_hello_world.py @@ -85,7 +85,7 @@ ############################################################################### # -# DONe: 5. +# DONE: 5. # Look at the list of files in the Project window (to the left). Note that # this file (m2_hello_world.py) is now displayed in a blue font color. # - Clicking on a different file makes it easier to see From 386bf65f007148d33ae00f383a8a3fd1c9e408bf Mon Sep 17 00:00:00 2001 From: robertml2 Date: Mon, 5 Mar 2018 09:05:09 -0500 Subject: [PATCH 06/13] Commit --- src/m3_turtles.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/m3_turtles.py b/src/m3_turtles.py index 1bae3a3..e5f913a 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 Madison Robertson. """ ############################################################################### # -# TODO: 1. +# DONE: 1. # Yes, that means for YOU to DO things per the following 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 module to use the rosegraphics.py module by marking the # src # folder in this project as a "Sources Root", as follows: @@ -49,7 +49,7 @@ ############################################################################### # -# TODO: 3. +# DONE: 3. # Run this module. A window will pop up and Turtles will move around. # After the Turtles stop moving, *click anywhere in the window to close it*. # @@ -89,6 +89,7 @@ boris.forward(100) boris.left(90) boris.forward(200) +boris.backward(300) # ----------------------------------------------------------------------------- # Construct a second SimpleTurtle, @@ -101,11 +102,12 @@ natasha.backward(50) natasha.right(90) natasha.forward(50) - +natasha.speed = 15 +natasha.forward(200) ############################################################################### # -# TODO: 4. +# DONE: 4. # Add a few more line of your own code to make one of the # existing SimpleTurtles move some more and/or have different # characteristics. From b4a7a22dbb87f8b0b8598d8bd8517f574964f5fd Mon Sep 17 00:00:00 2001 From: robertml2 Date: Mon, 5 Mar 2018 09:13:43 -0500 Subject: [PATCH 07/13] Commit --- src/m3_turtles.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/m3_turtles.py b/src/m3_turtles.py index e5f913a..c49c0a5 100644 --- a/src/m3_turtles.py +++ b/src/m3_turtles.py @@ -105,6 +105,12 @@ natasha.speed = 15 natasha.forward(200) +roger = rg.SimpleTurtle() +roger.speed = 8 +roger.pen = rg.Pen('blue',10) +roger.forward(40) +roger.backward(150) +roger.right(600) ############################################################################### # # DONE: 4. @@ -121,7 +127,7 @@ ############################################################################### # -# TODO: 5. +# DONE: 5. # The above code CONSTRUCTS two SimpleTurtle objects # and gives those objects NAMES: # dave matt @@ -148,7 +154,7 @@ ############################################################################### # -# TODO: 6. +# DONE: 6. # 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 f3ec50cb5e8d7c3a82c6e916de5b6b8a67e72f48 Mon Sep 17 00:00:00 2001 From: robertml2 Date: Mon, 5 Mar 2018 09:13:58 -0500 Subject: [PATCH 08/13] Commit --- 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 c49c0a5..75c496b 100644 --- a/src/m3_turtles.py +++ b/src/m3_turtles.py @@ -163,7 +163,7 @@ # 2. Choose Commit from the pull-down menu that appears. # 3. In the Commit Changes window that pops up: # - HOVER over the Commit button -# (in the lower-right corner of the window) +# (in the lower-right corner of the window # - CLICK on Commit and Push. # # You can COMMIT-and-PUSH as often as you like. DO IT FREQUENTLY. From 19be5ce951a84bb0466cf21278ebf0f321cff3aa Mon Sep 17 00:00:00 2001 From: robertml2 Date: Mon, 5 Mar 2018 09:35:38 -0500 Subject: [PATCH 09/13] Commit --- src/m5_summary.py | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/m5_summary.py b/src/m5_summary.py index 1c65906..40c8e22 100644 --- a/src/m5_summary.py +++ b/src/m5_summary.py @@ -2,10 +2,10 @@ An exercise that summarizes what you have learned in this Session. Authors: David Mutchler, Dave Fisher, Valerie Galluzzi, Amanda Stouder, - their colleagues and PUT_YOUR_NAME_HERE. + their colleagues and Madison Robertson. """ ######################################################################## -# TODO: 1. +# DONE: 1. # On Line 5 above, replace PUT_YOUR_NAME_HERE with your own name. ######################################################################## @@ -27,3 +27,25 @@ # As always, COMMIT-and-PUSH when you are done with this module. # ############################################################################### + +import rosegraphics as rg + +window = rg.TurtleWindow() +window.delay(30) + +liz = rg.SimpleTurtle() +liz.speed = 3 +liz.forward(20) +liz.right(30) +liz.forward(50) +liz.right(50) +liz.forward(100) +liz.right(130) +liz.forward(100) +liz.right(50) +liz.forward(50) +liz.right(30) +liz.forward(20) +liz.right(40) +liz.forward(10) +window.close_on_mouse_click() \ No newline at end of file From ed15d7a6ff8f3f18e0426292705d628b7d5a41a7 Mon Sep 17 00:00:00 2001 From: robertml2 Date: Mon, 5 Mar 2018 09:36:54 -0500 Subject: [PATCH 10/13] Commit --- src/m5_summary.py | 2 +- src/m6_your_turtles.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/m5_summary.py b/src/m5_summary.py index 40c8e22..be84ff8 100644 --- a/src/m5_summary.py +++ b/src/m5_summary.py @@ -10,7 +10,7 @@ ######################################################################## ######################################################################## -# TODO: 2. +# DONE: 2. # Write code that constructs a SimpleTurtle with a red Pen # and makes it move around a bit. Don't forget to: # -- import rosegraphics and construct a TurtleWindow diff --git a/src/m6_your_turtles.py b/src/m6_your_turtles.py index 3421674..7ca37dd 100644 --- a/src/m6_your_turtles.py +++ b/src/m6_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 Madison Robertson. """ ############################################################################### -# TODO: 1. +# DONE: 1. # On Line 5 above, replace PUT_YOUR_NAME_HERE with your own name. ############################################################################### From 5767c3383c698037a9395dae3fceba2859094c7f Mon Sep 17 00:00:00 2001 From: robertml2 Date: Mon, 5 Mar 2018 09:48:00 -0500 Subject: [PATCH 11/13] Commit --- src/m6_your_turtles.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/m6_your_turtles.py b/src/m6_your_turtles.py index 7ca37dd..eeba5da 100644 --- a/src/m6_your_turtles.py +++ b/src/m6_your_turtles.py @@ -27,3 +27,21 @@ # # Don't forget to COMMIT-and-PUSH when you are done with this module. ############################################################################### + +import rosegraphics as rg + +rg.SimpleTurtle() + +River = rg.SimpleTurtle() +Rosie = rg.SimpleTurtle() +Scum = rg.SimpleTurtle() +River.pen = rg.Pen('blue','10') +Rosie.pen = rg.Pen('red','5') +Scum.pen = rg.Pen('black','8') + +size = 400 +for k in range(15): + River + + +window.close_on_mouse_click() \ No newline at end of file From 69e5fc3717d9b9d066380cef7e92907ab9748540 Mon Sep 17 00:00:00 2001 From: robertml2 Date: Mon, 5 Mar 2018 22:04:40 -0500 Subject: [PATCH 12/13] Commit --- src/m6_your_turtles.py | 52 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 42 insertions(+), 10 deletions(-) diff --git a/src/m6_your_turtles.py b/src/m6_your_turtles.py index eeba5da..bd602f3 100644 --- a/src/m6_your_turtles.py +++ b/src/m6_your_turtles.py @@ -29,19 +29,51 @@ ############################################################################### import rosegraphics as rg +window = rg.TurtleWindow() + rg.SimpleTurtle() -River = rg.SimpleTurtle() -Rosie = rg.SimpleTurtle() -Scum = rg.SimpleTurtle() -River.pen = rg.Pen('blue','10') -Rosie.pen = rg.Pen('red','5') -Scum.pen = rg.Pen('black','8') +river = rg.SimpleTurtle() +rosie = rg.SimpleTurtle() +scum = rg.SimpleTurtle() +river.pen = rg.Pen('blue', 10) +rosie.pen = rg.Pen('red', 9) +scum.pen = rg.Pen('black', 8) +river.speed = 100000 +scum.speed = 1000000 +rosie.speed = 1000000 + +size = 50 +for k in range(25): + river.draw_regular_polygon(12, 50) + rosie.draw_regular_polygon(12, 40) + scum.draw_regular_polygon(11, 30) + + scum.pen_up() + scum.right(90) + scum.forward(40) + scum.pen_down() + + scum.forward(40) + scum.right(95) + scum.forward(20) + scum.left(43) + scum.forward(25) + + river.pen_up() + river.forward(25) + river.pen_down() -size = 400 -for k in range(15): - River + river.forward(40) + river.right(30) + river.forward(20) + river.right(40) + river.forward(60) + rosie.right(100) + rosie.forward(38) + rosie.left(45) + rosie.forward(20) -window.close_on_mouse_click() \ No newline at end of file +window.close_on_mouse_click() From e55b71dca6c2d801aee0d755afb54f069bd98d25 Mon Sep 17 00:00:00 2001 From: robertml2 Date: Mon, 5 Mar 2018 22:05:48 -0500 Subject: [PATCH 13/13] Commit --- src/m6_your_turtles.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/m6_your_turtles.py b/src/m6_your_turtles.py index bd602f3..7bdef3b 100644 --- a/src/m6_your_turtles.py +++ b/src/m6_your_turtles.py @@ -10,7 +10,7 @@ ############################################################################### ############################################################################### -# TODO: 2. +# DONE: 2. # You should have RUN the m4e_loopy_turtles module and READ its code. # (Do so now if you have not already done so.) # @@ -41,8 +41,8 @@ rosie.pen = rg.Pen('red', 9) scum.pen = rg.Pen('black', 8) river.speed = 100000 -scum.speed = 1000000 -rosie.speed = 1000000 +scum.speed = 100000 +rosie.speed = 100000 size = 50 for k in range(25):