Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Someone please help with this basic python code, i have not been attending class due to me being sick. It just asks you to write

image text in transcribedimage text in transcribedSomeone please help with this basic python code, i have not been attending class due to me being sick. It just asks you to write to code that will allow input to change the size, and width and the height of the boat.

((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. USS Arizona outer width: USS Arizona inner width: 3 USS Arizona tower height: #$ $## \---- \ ***|_| #. . # #.# #. #. . . . . .#.# |#.#-#-#-#. . .----/ |_***/ USS Arizona outer width: 12 USS Arizona inner width: USS Arizona tower height: ##$ $## ## ## \---- \ ***|_| #.. #..#..............#..# .----/ |#..#- #- #-#- #- #-#-##..# ***/ -1 USS Arizona 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 ## | ##$ $## ## ## #..# #..# .......... .----/ #..#-#-#-#-##..#1 |_1*** / Middle Width #..# _ 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 l 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)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

8. Describe how cultural spaces are formed.

Answered: 1 week ago