Question: Write a program which, given an integer k greater than 4 and less than 60, displays a diamond of height and width (in the middle)

Write a program which, given an integer k greater than 4 and less than 60, displays a diamond of height and width (in the middle) equal to k. For example, for k = 5, display For k = 6, print Hints: During your algorithm design, you might wish to handle the drawing for odd values of k as a case separate from the even values. Once you have developed the two algorithms you might find that you can merge the two cases into one. (You are NOT REQUIRED to merge the two cases.) In the end, I don't care what plan of attack you use (there are even more options than this..). I just want to be sure you have a plan and that you stick to it (or that you document all changes that you make) Use the function drawchars as needed. You might find it useful to write two lower level functions, one to draw a solid inverted wedge with a base of width w (here 5): and the other to draw a wedge with top w (here = 3): You will need for loops or while loops. You may also need nested loops
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
