Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program ( Question1.py ) create functions to print our different 2D geometric shapes. We will write 3 function, drawSquare , drawRectangle , drawCross

Write a program (Question1.py) create functions to print our different 2D geometric shapes. We will write 3 function, drawSquare, drawRectangle, drawCross. Then we will call these three functions to draw these 3 shapes one by one.

Output example:

Type in square size: 3

***

***

***

Type in rectangle size: 3, 5

*****

*****

*****

Type in cross size: 3 (The cross size S must be odd number, and we print *, when the row and column index is size/2. If the end user give an even number as size, you should print out a warning message, but do not print cross)

*

*

*****

*

*

Question 2. Learn how to create customized module and import your customized module in a different file.

Python 3.8 and please DO NOT plagiarize!! Thank you!!

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_2

Step: 3

blur-text-image_3

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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

True or False: The A in the DCOVA framework stands for apply .

Answered: 1 week ago