Question: Write a C++ console application that prints a solid rhombus based on inputs of character and number from the user. Use a validation loop

Write a C++ console application that prints a solid rhombus based on 

Write a C++ console application that prints a solid rhombus based on inputs of character and number from the user. Use a validation loop to prompt for and get from the user a number (N) in the range 10 to 20. Use another validation loop to prompt for and get from the user a character from the set [@, #, $, %, &]. Then print the rhombus using N and the character. The rhombus will have N rows and N characters in each row. Each row has a decreasing number of spaces. One solution is two inner for loops within an outer for loop. Here is sample output: CA Microsoft Visual Studio Debug Console Enter an integer between 10 and 20: 5 Error: invalid integer of 5. Enter an integer between 10 and 20: 10 Enter a char from set [@, #, $, %, &]: 9 Error: invalid char of 9. Enter a char from set [@, #, $, %, &]: & &&&&&&&&&& &&&&&&&&&& &&&&&&&&&& &&&&&&&&&& &&&&&&&&&& &&&&&&&&&& &&&&&&&&&& &&&&&&&&&& &&&&&&&&&& &&&&&&&&&&

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a C console application that prints a solid rhombus based on the users input of a character an... View full answer

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 Operating System Questions!