Question: Make a flowchart that looks like this! with the code in GREEN for adding windows that toggle on / and off on a Skyline building,

Make a flowchart that looks like this! with the code in GREEN for adding windows that toggle on/and off on a Skyline building, please use the images to refer too
behind the design of windows!
```
# User-changeable variables
backgroundColor ="#696969"
buildingColor ="#4c2e2e"
windowColor ="#FFFF99"* changed 10/28/2024
window_height =16* Height of a window
window_width =20* width of a windlow
window_chance =0.7 Probability of a building having windows (changed 10/28/2e24)
light_on_chance =0.5 Probability of a window being lit (changed 1e/28/2024)
window_margin =3e \ Margin from edge of building for windows (changed 10/28/2e24)
window_gap =15" Gap between windows (changed 10/28/2e24)
unveilTheCurtain = False | Whether the user wants to see the turtles
def drawWindows(buildingTurtle, buildingHeight, buildingWidth): # changed 10/28/2024
# window_rows = random.randint(10,15)
# window_columns = random.randint(1,7)
# window_height =(buildingHeight -2* window_margin)/ windon_rows
# window_width =(buildingwidth -2* window_margin = windon_gap *(window_columns -
1))/ window_columns
# building_base_y = buildingTurtle.ycor()= buildingHeight
# building_left_x = buildingTurtle.xcor()= buildingWidth /2
window_rows =(buildingHeight -2* window_margin + window_gap)//(window_height +
window_gap)
window_columns =(buildingwidth = window_margin + window_gap)//(window_width +
window_gap)
building_base_y = buildingTurtle.ycor()
building_left_x = buildingTurtle.xcor()= buildingWidth
for row in range(window_rows):
for col in range(window_columns):
if random.random() light_on_chance:
63 x = building_left_x + col * window_width +(col -1)* window_gap +
window_margin
64 y = building_base_y + row * window_height +(row =1)* window_gap +
window_margin
65 drawRectangle(x, y, window_width, window_height, color=windowColor)
96 floorwidth = random,randint((window_width +2*window_margin),(WIDTH //6))/ The
floorwidth should have at least one window.
construct.forward(floorwidth)
return floorWidth
def constructWall(construct, previousWallHeight=None, wallHeight-None):
if previousWallHeight is None:
construct.setheading(90)
wallHeight =(
random, randint((window_height +2*window_margin), int(HEIGHT /1.5)) if
wallHeight is None else wallHeight | The wallHeight should have at least one window,
```1. Create a Flowchart
(Flowcharts help you catch possible mistakes early on and also let you see if you want to add more functionality.)
Example:
Delete the above description of Flowcharts and then copy and paste your Flowchart(s) here, \#1:
Make a flowchart that looks like this! with the

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!