Assignment 2
Write a program that uses the symbol * to draw the letter E or the letter V.
Example 1 (Draw letter E)
Enter a letter (e or v): e
Enter the height and width: 7 5
*****
*
*
*****
*
*
*****
You must see this figure for more detailed information to draw letter E. (Empty is not a space.)
Both the height and width are integers with size ranges: 5 <= height <= 30, 3 <= width <= 30
The height is assumed to be an odd number.
Example 2 (Draw letter V)
Enter a letter (e or v): v
Enter the height: 7
* *
* *
* *
* *
* *
* *
*
You must see this figure for more detailed information to draw letter V.
The height is an integer with a size range from 5 to 50.
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.