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...


C++ Programming


This program outputs a downwards facing arrow composed of a rectangle and a right triangle. The arrow dimensions are defined by user<br>specified arrow base height, arrow base width, and arrow head width.<br>(1) Modify the given program to use a loop to output an arrow base of height arroWBaseHeight.<br>(2) Modify the given program to use a loop to output an arrow base of width arrowBaseWidth. Use a nested loop in which the inner loop<br>draws the *s, and the outer loop iterates a number of times equal to the height of the arrow base.<br>(3) Modify the given program to use a loop to output an arrow head of width arrowHeadWidth. Use a nested loop in which the inner loop<br>draws the *s, and the outer loop iterates a number of times equal to the height of the arrow head.<br>(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<br>the user for an arrow head width until the value is larger than the arrow base width.<br>while (arrowHeadWidth <= arrowBaseWidth) {<br>// Prompt user for a valid arrow head value<br>}<br>Example output for arrowBaseHeight = 5, arrowBaseWidth = 2, and arrowHeadWidth = 4:<br>3D<br>Enter arrow base height:<br>Enter arrow base width:<br>2<br>Enter arrow head width:<br>4<br>

Extracted text: 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 arroWBaseHeight. (2) Modify the given program to use a loop to output an arrow base of width arrowBaseWidth. Use a nested loop in which the inner loop draws the *s, and the outer loop iterates a number of times equal to the height of the arrow base. (3) Modify the given program to use a loop to output an arrow head of width arrowHeadWidth. Use a nested loop in which the inner loop draws the *s, and the outer loop iterates a number of times equal to the height of the arrow head. (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. while (arrowHeadWidth <= arrowbasewidth)="" {="" prompt="" user="" for="" a="" valid="" arrow="" head="" value="" }="" example="" output="" for="" arrowbaseheight="5," arrowbasewidth="2," and="" arrowheadwidth="4:" 3d="" enter="" arrow="" base="" height:="" enter="" arrow="" base="" width:="" 2="" enter="" arrow="" head="" width:="">

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here