**Note : This program should use a do-while loop and for loops.
Write the program printShapes to repeatedly ask the user for a character and then print output according to the following table. Your program should continue until the user enters 'f'. Note that for each valid input (a through e), at least 2 MORE inputs are needed before the program can determine what to output. The "output" column in the following table gives an example of one set of input for each valid input choice.
Input character Additional required input Output
If: a
1. character to print,
2. number of lines to print,
3. maximum number of characters per line
Example: if character = '*', number of lines = 3, maximum number of characters per line = 4, output is
****
****
****
If: b
1. character to print,
2. number of lines
Example: if character = '+', number of lines = 3, output is
+
++
+++
If: c
1. character to print,
2. number of lines
Example: if character = '#, number of lines = 5, output is
##########
########
######
####
##
If: d
1. character to print,
2. parallelogram height in lines
Example: if character = '#, parallelogram height in lines = 5, output is
##
####
######
########
##########
########
######
####
##
If: e
1. character to print,
2. maximum characters per lines
Example: if character = '*', maximum characters per line = 5, output is
*
***
*****
***
*
Example for 'e' with even number:
if character = 'E', maximum characters per line = 6, output is
EE
EEEE
EEEEEE
EEEE
EE
If: f none (no output, this signals that the user wished to exit)
any character other than a..f none error message**