Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2 2 . 1 2 LAB * : Program: Drawing a half arrow This program outputs a downwards facing arrow composed of a rectangle and
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.
Modify the given program to use a loop to output an arrow base of height arrowbaseheight. pt
Modify the given program to use a loop to output an arrow base of width arrowbasewidth. pt
Modify the given program to use a loop to output an arrow head of width arrowheadwidth. pts
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. pt
while arrowheadwidth arrowbasewidth:
arrowheadwidth intinputEnter arrow head width:
Example output for arrowbaseheight arrowbasewidth and arrowheadwidth :
Enter arrow base height:
Enter arrow base width:
Enter arrow head width:
Step 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