Question: C++ Write a program that repeatedly asks the user to select either a square, slash (diagonal line) or backlash (reverse diagonal line), diamond then inputs
C++
Write a program that repeatedly asks the user to select either a square, slash (diagonal line) or backlash (reverse diagonal line), diamond then inputs the figure size and prints the appropriate figure in stars. For square, the program should ask whether the user wants a filled, hollow or slashed square. The program should quit if the user inputs an invalid option. See an example dialog below (user input is in bold):
1. square 2. slash 3. backslash 4. diamond select figure: 1 select size: 7 filled, hollow [f/h]: h ******* * * * * * * * * * * ******* 1. square 2. slash 3. backslash 4. diamond ...
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
