Write a program that draws the letter Z or V using one of the symbols: o, x, or #.
Example 1 (Draw letter Z)
Enter a letter (Z or V),
the height (as an integer),
and the symbol (such as o, x, or #): z 7 o
ooooooo
o
o
o
o
o
ooooooo
Refer to this figure for detailed guidance on drawing the letter Z. (Note: "Empty" is not equivalent to a space.)
The height is an integer between 5 and 50.
The input letter z can be either uppercase or lowercase.
You do not need to validate the inputs.
In Example 1, the user types "z<space>7<space>o" and then hits the "Enter" key.
Example 2 (Draw letter V)
Enter a letter (Z or V),
the height (as an integer),
and the symbol (such as o, x, or #): v 7 x
x x
x x
x x
x x
x x
x x
x
Refer to this figure for detailed guidance on drawing the letter V. (Note: "Empty" is not equivalent to a space.)
The height is an integer between 5 and 50.
The input letter v can be either uppercase or lowercase.
You do not need to validate the inputs.
It is recommended that you modify the code template to complete this assignment.
The file size of your program should be less than 10 KB.
The outputs of your program should be exactly the same as those in the input-output samples.
Every output character (spaces, newlines, punctuation, and letters) of your program should be identical to those in the input-output samples.
Before sending assignments, make sure that your program passes the above input-output samples.