Question: Python Turtle Assignment | Problem specification ? Your program must have instructions for the player. ? Your program must use classes and meaningful functions and

Python Turtle Assignment | Problem specification

? Your program must have instructions for the player.

? Your program must use classes and meaningful functions and show modularity in the design.

? Your program should not accept invalid choices from the player.

? You will write a MENU-DRIVEN program with your own functions.

? The imported module must contain Python Turtle Graphics and Tkinter module functions built-in.

? The user should be prompt to enter the shape dimensions

? Use decision structure to create a USER MENU of Choices

DRAW_SQUARE_CHOICE =1

DRAW_RECTANGLE_CHOICE =2

DRAW_CIRCLE_CHOICE =3

SIMPLE GUI =4

QUIT_CHOICE = 5

1. First Menu Option: Square - Use turtle to draw a square of any size. Create a function drawSquare() namely the turtle that will draw the square and the size of the square.

2. Second Menu Option: option to draw a rectangle. Modify the drawSquare() function to draw a rectangle whose width is twice the side length.

3. Third Menu Option: create a circle or create a function that take three parameters: myTurtle, width, height.

4. Fourth Menu Option: Use the tkinter module to create a simple GUI program.

5. Fifth Menu Option: quit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!