Question: C++ program to print the letters S, O and P in ASCII art. Make sure your program conforms to the following requirements: This program should
C++ program to print the letters S, O and P in ASCII art. Make sure your program conforms to the following requirements:
- This program should be calledletters.cpp
- Accept the size of the letter (in the number of lines) from the user. This number should be an odd number greater than or equal to 5. If the value entered is invalid, tell the user so, and ask for another one. Repeat until you get a valid size.
- Accept the letter to be printed from the user. If the letter is S, O or P, go to the next step. If not, tell the user that the letter is invalid, and ask for another one. Repeat until you get a valid letter.
- Print the letter in ASCII art form. The sample run gives examples for each letter.
- Repeat the entire process if the user indicates they wish to continue.
- Make sure you add comments to explain the logic.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
