Page 1 of 1

3.35LAB∗ : Program: Drawing a half arrow This program outputs a downwards facing arrow composed of a rectangle and a rig

Posted: Tue Jul 12, 2022 8:19 am
by answerhappygod
3 35lab Program Drawing A Half Arrow This Program Outputs A Downwards Facing Arrow Composed Of A Rectangle And A Rig 1
3 35lab Program Drawing A Half Arrow This Program Outputs A Downwards Facing Arrow Composed Of A Rectangle And A Rig 1 (34.06 KiB) Viewed 38 times
3 35lab Program Drawing A Half Arrow This Program Outputs A Downwards Facing Arrow Composed Of A Rectangle And A Rig 2
3 35lab Program Drawing A Half Arrow This Program Outputs A Downwards Facing Arrow Composed Of A Rectangle And A Rig 2 (18.88 KiB) Viewed 38 times
3 35lab Program Drawing A Half Arrow This Program Outputs A Downwards Facing Arrow Composed Of A Rectangle And A Rig 3
3 35lab Program Drawing A Half Arrow This Program Outputs A Downwards Facing Arrow Composed Of A Rectangle And A Rig 3 (24.63 KiB) Viewed 38 times
3 35lab Program Drawing A Half Arrow This Program Outputs A Downwards Facing Arrow Composed Of A Rectangle And A Rig 4
3 35lab Program Drawing A Half Arrow This Program Outputs A Downwards Facing Arrow Composed Of A Rectangle And A Rig 4 (27.59 KiB) Viewed 38 times
3.35LAB∗ : 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 arrowBaseHeight. (1 pt) (2) Modity 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 (1 pt) (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 "'5, and the outer loop iterates a number of times equal to the height of the arrow head. (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 (arroulfeadridth ca arrowBasewidth) 1 11. Prompt user for a valid arrow head value 1
Example Dutput for artc WBrsenteight4 = 5 , atrowBade'Nithin 2 , and afrowtheirdicth =4: 4
DrawHalfArrow,java Losit deffatir trimplinte: Fiun your program as often as you'd hike, before submitting for grading, Below, type afy neveded input values in the first box, then click Run program and observe the programis output in the second box.
DrawHalfArrow,java cosd defailt temeltes Run your program as often as youd like, before subrnitting for grading Below, fype any neteded input values in the frist box, then click. Run program and cbsere the progaris output in the