Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python Only Do all of the items below and submit a text file created with the IDLE editor (or other editor) with the extension.py via

Python Only image text in transcribed
Do all of the items below and submit a text file created with the IDLE editor (or other editor) with the extension.py via Canvas. If you run into a problem, post to Canvas describing where you ran into trouble or email your instructor or classroom assistant, or ask your question during recitation hours. If you know the answer to someone's question on Canvas, post a response. You get course credit for asking and answering questions in Canvas. Read the first section of Chapter 4 (Case Study: Interface Design): "The turtle module" in the textbook. In the Python editor IDLE, create and save a Python file that is named, if your name is Harry Houdini, for example, HW3_HarryHoudini.py and begins with a comment containing your name, class and section, the posting date and number of the homework assignment. Use either a block comment or one-line comment style. Example: Harry Houdini CS 100 2018S Section 004 HW 03, January 29, 2018 or # Harry Houdini #CS 100 2018 Section 004 #HW 03. January 29, 2018 1. Write code that uses turtle graphics to draw an equilateral triangle, a square and a regular pentagon, each with side length 100. 2. Write code that uses turtle graphics to draw four concentric circles of radius 50, 100, 150 and 200. 3. Write code that uses the Python math module to compute and print out the values of a. 100! b. the log (base 2) of 1,000,000 c. the greatest common divisor of 63 and 49 Hint There is a description of each function in the math module in the Python documentation, which you can access through IDLE from the Help menu as follows: Help Python Docs Python Module Index math If you are using an alternate IDE, visit https://docs.python.org 3/library/math.html to browse the documentation online, or download a copy of your own

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

responding to them.

Answered: 1 week ago

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago