Question
python In this program, you will print out ascii art of the USS Arizona (pictured above). Name your program arizona.py. Your program should ask the
python
In this program, you will print out ascii art of the USS Arizona (pictured above). Name your program arizona.py. Your program should ask the user for three numbers: the boat outer length, the inner length (length between the two towers) and the tower height. The outer length will increase the length of the vessel on either side of the towers/guns, and equal amount. The middle length will control the length of the ship between the two main towers. (Note that in the rest of the spec, the length may be referred to as width). As you might expect, the last input will control the height of the two main towers of the ship. Below is a diagram showing what component of the vessel each input value determines.
The house shown in the image has a side width of 7, a middle width of 4, and a tower height of 2. When the width of the sides increase, it actually increases by more than one character in total. It actually increases by 1 character on each side. For the middle, the width actually increases by 2 characters for each 1 width. Take a look at the pattern of the vessel between the two towers. The height of the towers changes in accordance with the third input value.
Also, the height of the two antennae on the two towers should be a function of the two width inputs. The formula to determine the height is:
((side_width + middle_width) / 7)
Use that calculation to determine how many rows tall the antenna 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
Use that calculation to determine how many rows tall the antenna 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. USS Arizona outer width: USS Arizona inner width: USS Arizona tower height: T##$ $##1 ## #. # #.. #. #.....#..# T#..#-#-#-##..#1 \ ***|_| |_1*** / USS Arizona outer width: 12 USS Arizona inner width: USS Arizona tower height: $## T##$ ## ## #..# #..# \----. # .#... ..#..# .----/ * * * * | | |# ### # --=-=-=-=##. .#| | | # # # / ---- In this program, you will print out ascii art of the USS Arizona (pictured above). Name your program arizona.py. Your program should ask the user for three numbers: the boat outer length, the inner length (length between the two towers) and the tower height. The outer length will increase the length of the vessel on either side of the towers/guns, and equal amount. The middle length will control the length of the ship between the two main towers. (Note that in the rest of the spec, the "length" may be referred to as "width"). As you might expect, the last input will control the height of the two main towers of the ship. Below is a diagram showing what component of the vessel each input value determines. $## |##$ ## Side width ## Middle Width \---- ***_1 _I_--- -- #. # #..# #. #........#..# .----/ 1#..#-#-#-#-##..#1 |_]*** / -- -- -- ----I----- Flag Height -------------------------------------------------------- The house shown in the image has a side width of 7, a middle width of 4, and a tower height of 2. When the width of the sides increase, it actually increases by more than one character in total. It actually increases by 1 character on each side. For the middle, the width actually increases by 2 characters for each 1 width. Take a look at the pattern of the vessel between the two towers. The height of the towers changes in accordance with the third input value. Also, the height of the two antennae on the two towers should be a function of the two width inputs. The formula to determine the height is: ((side_width + middle_width) / 7) Use that calculation to determine how many rows tall the antenna should beStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started