Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Python! Step 5: Write a function to draw a house First switch roles between pilot and navigator if you did not already do that.

Using Python! image text in transcribed
image text in transcribed
Step 5: Write a function to draw a house First switch roles between pilot and navigator if you did not already do that. Add a function named drawHouse0 to the lab02 py file according to the following specifications: 1. Add a couple of blank lines after the end of 2. The new function header must name two parameters in this new function: 3. Precede the header with an appropriate comment like you did for drawRectangle your drawRectangle function definition. parameter to draw a house make the height of the house proportional to its width. Use the drawRectangle function to make part of the house abstraction is good It should work correctly if used as follows xx dravilouse(pat, 100) a really big house >> dravilouse(pat, 10) a tiny house (juat 10 pixeln vide) Note: your house does not have to look exactly like this-le, the proportions of the width/height and the steepness of the roof can be different. As long as it ooks like a house", that's good enough for this lab. Here is an example

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions