Question: (18 points) Write a complete program that reads in an odd size N, and draws the standard diamond of asterisks, but with the following variation:

 (18 points) Write a complete program that reads in an odd

(18 points) Write a complete program that reads in an odd size N, and draws the standard diamond of asterisks, but with the following variation: on the central VERTICAL spine, the odd lines print an "S". the even lines print a "-", as shown in the figures. Sample One INPUT: 7 OUTPUT: S *-* ***** **S** S Sample Two INPUT: 9 OUTPUT: S *-* **S** ****S**** **S** S

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!