Need Help ?

Home / Expert Answers / Other / 6-16-lab-program-drawing-a-half-arrow-this-program-outputs-a-downwards-facing-arrow-composed-of-a-re

(Answered): 6.16 LAB*: Program: Drawing a half arrow This program outputs a downwards facing arrow composed of ...



6.16 LAB*: Program: Drawing a half arrow This program outputs a downwards facing arrow composed of a rectangle and a right tr265616.1551920 LAB ACTIVITY 6.16.1: LAB*: Program: Drawing a half arrow 0/5 main.py Load default template... 4 1 arrow_base_h

6.16 LAB*: Program: Drawing a half arrow This program outputs a downwards facing arrow composed of a rectangle and a right triangle. The arrow dimensions are defined by user specified arrow base height, arrow base width, and arrow head width. (1) Modify the given program to use a loop to output an arrow base of height arrow_base_height. (1 pt) (2) Modify the given program to use a loop to output an arrow base of width arrow_base_width. (1 pt) (3) Modify the given program to use a loop to output an arrow head of width arrow_head_width. (2 pts) (4) Modify the given program to only accept an arrow head width that is larger than the arrow base width. Use a loop to continue prompting the user for an arrow head width until the value is larger than the arrow base width. (1 pt) while arrow_head_width = arrow_base_width: arrow_head_width = int(input('Enter arrow head width:n')) Example output for arrow_base_height = 5, arrow_base_width = 2, and arrow_head_width = 4 Enter arrow base height: 5 Enter arrow base width: 2 Enter arrow head width: 4 265616.1551920 265616.1551920 LAB ACTIVITY 6.16.1: LAB*: Program: Drawing a half arrow 0/5 main.py Load default template... 4 1 arrow_base_height = int(input('Enter arrow base height:n')) 2 3 arrow_base_width = int(input("Enter arrow base width: n')) 5 arrow_head_width = int(input("Enter arrow head width: n")) 6 7 print('') 8 # Draw arrow base (height = 3, width = 2) 9 print ("**') 1e print ("**') 11 print ("**') 12 13 # Draw arrow head (width = 4) 14 print ("****") 15 print ("***") 16 print (**) 17 print ('') 18 Develop mode Submit mode When done developing your program, press the Submit for grading button below. This will submit your program for auto-grading.


We have an Answer from Expert

View Expert Answer

Expert Answer


Answer to 6.16 LAB*: Program: Drawing a half arrow This program outputs a downwards facing arrow composed of a rectangle and a rig...
We have an Answer from Expert

Buy This Answer $4

Place Order