19.11 Ch 5 Warm up: People's weights (Vectors) (C++) This program outputs a downwards facing arrow composed of a rectang

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

19.11 Ch 5 Warm up: People's weights (Vectors) (C++) This program outputs a downwards facing arrow composed of a rectang

Post by answerhappygod »

19 11 Ch 5 Warm Up People S Weights Vectors C This Program Outputs A Downwards Facing Arrow Composed Of A Rectang 1
19 11 Ch 5 Warm Up People S Weights Vectors C This Program Outputs A Downwards Facing Arrow Composed Of A Rectang 1 (38.58 KiB) Viewed 29 times
19 11 Ch 5 Warm Up People S Weights Vectors C This Program Outputs A Downwards Facing Arrow Composed Of A Rectang 2
19 11 Ch 5 Warm Up People S Weights Vectors C This Program Outputs A Downwards Facing Arrow Composed Of A Rectang 2 (42.35 KiB) Viewed 29 times
19.11 Ch 5 Warm up: People's weights (Vectors) (C++) 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) 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. (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 "'s, 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 (arrowHeadWidth <= arrowBaseWidth) ( // Prompt user for a valid arrow head value

Example output for arrowBaseHeight = 5, arrowBaseWidth = 2, and arrowHeadWidth = 4: Enter arrow base height: 5 Enter arrow base width: 2 Enter arrow head width: 4 ** ** ww ** ** **** **
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply