Question: Object ves Working with loops Continued practice with functions definitions and if statements For this assignment you'll be using the Gui.py ( you can download

Objectves
Working with loops
Continued practice with functions definitions and if statements
For this assignment you'll be using the
Gui.py (you can download from Canvas or below) module as
we did for homework 4. You will need to have this file in the same folder as your solution. Here is
the HW6_starter.py (you can download from Canvas or below) for this assignment.
[4 Guipy 3aske
($. HW6_starter.py 0.5 KB
Your program will produce the image below containing these drawings (The figure below is not
drawn to scale.). Your program will not display any of the text (like the words Figure 1 or Figure C).
Look at Figures 1,2, and 3. I will refer to each of these as one line grid
Each line grid is made up of a sequence of straight lines.
Given the coordinates of the top line left endpoint and the width, you should be able to figure
out the coordinates of the right endpoint of that top line.
Successive lines are drawn with shifted endpoints. The amount of space between each
horizontal line is based on the width and number of lines.
Each grid should have the same height as its width.
A question you need to answer is how much space is between each line so that the total height
equals the width. For example, look at Figure 2. The width is 200 so the total height should also be
There are 5 lines, with 4 areas of space between them. How much space goes between each
line? It's not 200/5, or 40. If there are 4 areas of space, with a height of 40 in each, that's only 40*
4, or 160 units.
Here are the properties of Figures 1,2,3 :
Object ves Working with loops Continued practice

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 Programming Questions!