(More Advanced JES Turtle Samples)
CSTA Level I Standard iv: (3rd to 5th) Use general purpose productivity tools and peripherals to support personal productivity, remediate skill deficits, and facilitate learning throughout the curriculum.
CSTA Level I Standard 5: (tertiary to fifth) Employ technology tools for individual and collaborative writing, communication, and publishing activities to create presentations, and publishing activities to create presentations for audiences inside and outside the classroom.
Basic Skills:
M4M2: Students will empathise the concept of angle and how to measure angles.
M4G1: Students will define and place the characteristics of geometric figures through examination and construction.
M4P5: Students will correspond mathematics in multiple ways.
M5A1: Students will correspond and interpret the relationships between quantities algebraically.
M5G1: Students volition understand congruence of geometric figures and the correspondence of their vertices, sides, and angles.
Programming Skill Objectives:
Place and define an interpreted reckoner scripting language. (Scratch and Python) - Programming languages that run directly without beingness compiled.
Create text based code in JES (Jython Environment for Students) and relieve into their file area with proper extension. (ProgramName.py)
Use post-obit commands to draw shapes and designs with Turtles.
- turtle.forward(distance)
- turtle.turn(degrees)
- turtle.moveTo(x, y)
- turtle.colour = red (blue, green . . .) -or- (255, 255, 255) RGB annotation
- turtle.penUp()
- turtle.penDown()
- globe = makeWorld(400, 400)
- turtle = makeTurtle(earth)
Run code from written programs and from Interactions Window.
Define and employ Functions
Utilize the "for i in range(x)" commands to practice repeats.
Use comments in programme to depict what code will exercise.
Lesson Objectives:
Students write and save a Python Code file named LastnameShapes.py in their file area using JES
Students demonstrate how to open JES.
Students demonstrate how to open JES with the "python LastnameShapes.py" control.
Educatee plan draws square and triangle with proper dimensions.
Requirements:
1. Employ JES to draw a square using combinations of turtle.forward() and turtle.turn() commands.
2. Apply JES to draw a triangle using combinations of urtle.forward() and turtle.turn() commands.
three. Write and save a program in JES that draws a foursquare and a triangle. Save as LastnameShapes.py in student'due south file surface area.
four. Run student programme with JES.
Extras:
i. Define Functions in Python that draw foursquare and triangle.
2. Utilise parameters to all user to ascertain size of shape.
3. Create Designs using unlike colors and spirals.
Process: (Directions for Students)
Session 1: Using the Python with JES
1. Review Drawing shapes with Scratch.
2. Innovate text based programming Languages. (Python, Java, C# . . .)
3. Demonstrate Python with JES.
a. Click JES icon
b. create globe and turtle:
c. Save file as "LastnameShapes.py" in file area.
d. Click "Load Program" to intitiate the World.
e. Your Earth should look like:
iv. Students use Interactions Area to draw a square. (Trial and fault - Teacher provide guidance every bit needed)
Instance Commands:
turtle.forward(100)
turtle.turn(90)
5. Students use Interactions Surface area to draw a triangle.
6. Students explore drawing unlike shapes and paths with Python commands.
Session two: Creating Python Programs with JES
ane. Review cartoon with Python and Turtle and JES
ii. Using Interactions is good for short experiments. Longer programs need to be coded and saved.
3. Demonstrate JES - exercise simple program and save: (SimpleSquare.py)
4. Run program:
a. Relieve Program
b. Click "Load Program"
c. Type following in Interactions Window:
makeSquare(turtle, 100)
5. Students create, relieve, and run a triangle program.
Session 3: Using Functions to create designs
i. Demonstrate Repeat Statements and Functions to create a spiral Foursquare - emphasize the use of tabs in Python.
ii. Students write code for Square Spriral by adding lines xvi to 25 to their Square program.
iii. Students run their programs.
a. Save your plan
b. Click "Load Program"
c. Type "makeSpiralSquare(turtle, 100) in Interactions Window
d. Result should look like:
4. Students create, relieve, and run plan for cartoon triangles.
Assessment:
Students write and save a Python Code file named LastnameShapes.py in their file area using JES.
Students demonstrate how to JES and create Turtles and Worlds.
Students demonstrate how to run their programs "LastnameShapes.py" and "SimpleSquare.py"
Student programme draws foursquare and triangle with proper dimensions.
DOWNLOAD HERE
How to Draw a Circle in Python Without Turtle TUTORIAL
Posted by: markhinevis.blogspot.com
Comments
Post a Comment