From baedac2fedb5cdc59d4cc5863eb0eb9c2f004b41 Mon Sep 17 00:00:00 2001 From: meyerc1 Date: Mon, 27 Nov 2017 08:32:33 -0500 Subject: [PATCH 1/6] I have added a message print and a multiplication print to the code. --- src/m2_hello_world.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/m2_hello_world.py b/src/m2_hello_world.py index aaa506a..0988604 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 @@ -23,10 +23,10 @@ # did indeed get printed (displayed) on the Console. # ######################################################################## - +#Hello, World appeared in the display. ######################################################################## # -# 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 @@ -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("The FitnessGram Pacer Test is a multistage aerobic capacity test that progressively gets more difficult as it continues. The 20 meter pacer test will begin in 30 seconds.") ######################################################################## # -# 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 535d3dc3a650b28835a873acd50d0f243818405a Mon Sep 17 00:00:00 2001 From: meyerc1 Date: Mon, 27 Nov 2017 08:33:57 -0500 Subject: [PATCH 2/6] I have added a message print and a multiplication print to the code. --- 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 0988604..9cc4221 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 2789def4a04de13d98e0c7135254d26b70631b36 Mon Sep 17 00:00:00 2001 From: meyerc1 Date: Mon, 27 Nov 2017 08:59:32 -0500 Subject: [PATCH 3/6] Turtle was added and turtle Matt was edited. --- src/m3_turtles.py | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/m3_turtles.py b/src/m3_turtles.py index df507f3..eee6792 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 Carson Meyer. """ ######################################################################## # -# 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,12 @@ # As always, test by running the module. # ######################################################################## - +matt.backward(30) +matt.left(45) +matt.forward(50) ######################################################################## # -# TODO: 4. +# DONE: 4. # The code above CONSTRUCTS two SimpleTurtle objects and gives those objects NAMES: # dave matt # @@ -109,7 +111,12 @@ # As always, test by running the module. # ######################################################################## - +carl=rg.SimpleTurtle('turtle') +carl.pen=rg.Pen('blue', 10) +carl.left(90) +carl.forward(60) +carl.right(45) +carl.forward(80) ######################################################################## # # TODO: 5. From 1cb2f90ee77c43eefd7daf8af0df5e967baac605 Mon Sep 17 00:00:00 2001 From: meyerc1 Date: Mon, 27 Nov 2017 09:00:24 -0500 Subject: [PATCH 4/6] Final TODO was changed to 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 eee6792..ee2a169 100644 --- a/src/m3_turtles.py +++ b/src/m3_turtles.py @@ -119,7 +119,7 @@ carl.forward(80) ######################################################################## # -# 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 2e9052bdc5db55ccf430b8d96deb09c9e0135f78 Mon Sep 17 00:00:00 2001 From: meyerc1 Date: Mon, 27 Nov 2017 10:40:11 -0500 Subject: [PATCH 5/6] Turtle added and moving in sequenced motion. --- src/m5_your_turtles.py | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/m5_your_turtles.py b/src/m5_your_turtles.py index d9de2a6..b468fe8 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 Carson Meyer """ ######################################################################## -# TODO: 1. +# DONE: 1. # On Line 5 above, replace PUT_YOUR_NAME_HERE with your own name. ######################################################################## @@ -28,3 +28,24 @@ # # Don't forget to COMMIT your work by using VCS ~ Commit and Push. ######################################################################## +import rosegraphics as rg + +window = rg.TurtleWindow + +red_turtle = rg.SimpleTurtle('Turtle') +red_turtle.pen = rg.Pen('red', 15) +red_turtle.speed = 10 + +size = 100 + +for k in range(10): + + red_turtle.draw_square(size) + red_turtle.pen_up() + red_turtle.right(45) + red_turtle.forward(10) + red_turtle.left(45) + red_turtle.pen_down() + size = size - 5 + +window.close_on_mouse_click() From 13542d8c06985baa4a561b7e630753f9c5ac0f05 Mon Sep 17 00:00:00 2001 From: meyerc1 Date: Mon, 27 Nov 2017 10:44:20 -0500 Subject: [PATCH 6/6] Window bug fixed and capital "T" taken off of 'Turtle' and changed to a "t". Final TODO changed to DONE. --- src/m5_your_turtles.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/m5_your_turtles.py b/src/m5_your_turtles.py index b468fe8..90398c2 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.) @@ -30,13 +30,13 @@ ######################################################################## import rosegraphics as rg -window = rg.TurtleWindow +window = rg.TurtleWindow() -red_turtle = rg.SimpleTurtle('Turtle') -red_turtle.pen = rg.Pen('red', 15) +red_turtle = rg.SimpleTurtle('turtle') +red_turtle.pen = rg.Pen('red', 4) red_turtle.speed = 10 -size = 100 +size = 300 for k in range(10): @@ -46,6 +46,6 @@ red_turtle.forward(10) red_turtle.left(45) red_turtle.pen_down() - size = size - 5 + size = size - 45 window.close_on_mouse_click()