Question: IN C PROGRAMMING PLEASE 4.24 LAB*: Program: Drawing a half arrow Program Specifications Write a program that outputs a downwards facing arrow composed of a

IN C PROGRAMMING PLEASE

IN C PROGRAMMING PLEASE 4.24 LAB*: Program: Drawing a half arrow ProgramSpecifications Write a program that outputs a downwards facing arrow composed ofa rectangle and a right triangle. Arrow dimensions are defined by userspecified arrow base height, arrow base width, and arrow head width. Note:this program is designed for incremental development. Complete each step and submitfor grading before starting the next step. Only a portion of tests

4.24 LAB*: Program: Drawing a half arrow Program Specifications Write a program that outputs a downwards facing arrow composed of a rectangle and a right triangle. Arrow dimensions are defined by user specified arrow base height, arrow base width, and arrow head width. Note: this program is designed for incremental development. Complete each step and submit for grading before starting the next step. Only a portion of tests pass after each step but confirm progress. Step 1 (3 pts). Input the arrow base height (int) and width (int). Draw a rectangle using asterisks (height x width). Hint: use a nested loop in which the inner loop draws one row of * s, and the outer loop iterates a number of times equal to the height. Submit for grading to confirm two tests pass. Ex: If input is: 64 Sample output is: Step 2 (3 pts). Input the arrow head width and draw a right triangle. Hint: use a nested loop. Submit for grading to confirm four tests pass. Ex: If input is: 434 Step 3 (4 pts). Modify the program to only accept an arrow head width that is larger than the arrow base width. Use a loop to continue inputting the arrow head width until the value is larger than the arrow base width. Submit for grading to confirm all tests pass. Ex: If input is: \begin{tabular}{l|l} LAB & 4.24.1: LAB*: Program: Drawing a half arrow \end{tabular} 4/10 main.c Load default template... When done developing your program, press the Submit for grading button below. This will submit your program for auto-grading. Latest submission - 8:47 PM PST on 02/12/23 Total score: 4 / 10 Only show failing tests Download this submission 1:Compare output 1/1 Input 645 Your output correctly starts with 2:Compare output 2/2 Input 556 Your output correctly starts with 3:Compare output 1/1 4:Compare output A 0/2 Output is nearly correct, but whitespace differs. See highlights below. Special character legend 5:Compare output 0/4 Output differs. See highlights below. Special character legend

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!