Write a program that draws the letter K or A using one of the symbols: o, x, or *.
Example 1 (Draw letter K)
Enter a letter (K or A),
the height (as an integer),
and the symbol (such as o, x, or *): k 7 o
o o
o o
oo
o
oo
o o
o o
Refer to this figure for detailed guidance on drawing the letter K. (Note: "Empty" is not equivalent to a space.)
The height is an integer between 5 and 50.
The height is assumed to be an odd number.
You do not need to validate the inputs.
In Example 1, the user types "k<space>7<space>o" and then hits the "Enter" key.
Example 2 (Draw letter A)
Enter a letter (K or A),
the height (as an integer),
and the symbol (such as o, x, or *): a 7 x
x
x x
x x
xxxxxxx
x x
x x
x x
Refer to this figure for detailed guidance on drawing the letter A. (Note: "Empty" is not equivalent to a space.)
The height is an integer between 5 and 50.
The height is assumed to be an odd number.
You do not need to validate the inputs.
More input-output samples.
Before sending assignments, make sure that your program passes the above input-output samples.
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.
It is recommended that you modify the code template to complete this assignment.