Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started