Assignment 2
Write a program that uses the symbol * to draw the letter F or the letter N.
Example 1 (Draw letter F)
Enter a letter (f or n): f
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.
In Example 1, after entering 'f,' the user then presses 'Enter.' After entering '7<space>5,' the user then presses 'Enter.'
Example 2 (Draw letter N)
Enter a letter (f or n): n
Enter the width: 7
* *
** *
* * *
* * *
* * *
* **
* *
You must see this figure for more detailed information to draw letter N.
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.