Question: This program will be written in a file called sign.c . Prompt the user for the height of the sign. Acceptable values are 3 to

This program will be written in a file called sign.c. Prompt the user for the height of the sign. Acceptable values are 3 to 12, inclusive. Then draw the sign attached to a pole of that height. The interior of the sign should contain your full name. The sign itself is always 3 rows high and is wide enough to form a border around your name. In the example below, the pole is 8 rows high. The sign itself is 3 rows, leaving 5 for the pole alone.
If the user enters a value outside the valid range, the program should simply display an appropriate error message and exit.
Example:
Enter the height of the sign: 8
|----------------+
| Your Full Name |
|----------------+
|
|
|
|
|
What to Turn In
Download the sign.c file and upload it here as the submission.
Optional Extension
This is an optional feature to add to your program. You can receive full credit even if you don't do this.
If the user enters the height as a negative number, display the sign upside-down, facing the other way (to the left).
The input should be validated, as you did for the main part of the program.
Example:
Enter the height of the sign: -6
|
|
|
+----------------|
| emaN lluF ruoY |
+----------------|
Sample Run
Here is an interactive sample of what your program should do. Click the Re-run Program button to execute the program again.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!