Question: Please help me I do not know how I can do the flag and the height formula. In this program, you will print out ascii

Please help me I do not know how I can do the flag and the height formula.
In this program, you will print out ascii art of the white house (pictures above). Name your progam white_house.py. Your program should ask the user for three numbers: the width of the sides, the width of the middle, and the flag height. The side width will increase the width of the left and right sides in accordance with the number provided. The middle with will control the width of the middle section of the white house. The flag height will control the height of the flag pole. Below is a diagram showing what component of the house each input value determines. I ## Side width Middle Width Flag Height The house shown in the image has a side with of 4, a middle width of 2, and a flag height of 3. When the width of the sides increase, it actually increases by more than one character. It actually increases by 3 characters on each side, following the pattern of windows and wall. Similarly for the middle. The width increases by 4 characters on each side of the center of the building. See the image below for reference. Side width (4) Middle Width (2) Flag Height (3) Also, the height of the white house should be a function of the two width inputs. The formula to determine the height is: ((side_width +middle_width) 4)1 Use that calculation to determine how many rows tall the house should be! Below are just a few examples of this program running with different input values provided. You will be able to use the differ and/or gradescope to test for correct output In this program, you will print out ascii art of the white house (pictures above). Name your progam white_house.py. Your program should ask the user for three numbers: the width of the sides, the width of the middle, and the flag height. The side width will increase the width of the left and right sides in accordance with the number provided. The middle with will control the width of the middle section of the white house. The flag height will control the height of the flag pole. Below is a diagram showing what component of the house each input value determines. I ## Side width Middle Width Flag Height The house shown in the image has a side with of 4, a middle width of 2, and a flag height of 3. When the width of the sides increase, it actually increases by more than one character. It actually increases by 3 characters on each side, following the pattern of windows and wall. Similarly for the middle. The width increases by 4 characters on each side of the center of the building. See the image below for reference. Side width (4) Middle Width (2) Flag Height (3) Also, the height of the white house should be a function of the two width inputs. The formula to determine the height is: ((side_width +middle_width) 4)1 Use that calculation to determine how many rows tall the house should be! Below are just a few examples of this program running with different input values provided. You will be able to use the differ and/or gradescope to test for correct output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
