In this short PA, you’ll be writing a program that prints a bridge of a particular size. You may use the code that you write for this in the regular PA! Also, you may not use string multiplication for this.
Your program should take 2 inputs. The input prompts and sample values are shown below:
Bridge length:
20
Spacing between supports:
5
The length of the bridge represents the length of the span of the bridge in meters (where 1 meter is 1 character). The second input is the spacing between the bridge supports, in meters.
Given the inputs shown in the previous section, the output of the program run should look like so:
EEE####################EEE
EEE # # # EEE
EEE # # # EEE
EEE # # # EEE
Notice that the #
part of the bridge is 20 characters wide.
Also notice that there are 5 spaces between each of the supports (also composed of #
characters).
Bridge length:
25
Spacing between supports:
4
EEE#########################EEE
EEE # # # # #EEE
EEE # # # # #EEE
EEE # # # # #EEE
Bridge length:
50
Spacing between supports:
10
EEE##################################################EEE
EEE # # # # EEE
EEE # # # # EEE
EEE # # # # EEE
Bridge length:
18
Spacing between supports:
4
EEE##################EEE
EEE # # # EEE
EEE # # # EEE
EEE # # # EEE
Submit bridge.py
to gradescope by February 2, 2019 at 7pm.
You should do your best to make sure that all of the test cases pass.