Creating a Greeting Card

-create a ‘Happy Holidays’ ASCII art eCard and display it to either the stdOut or to a file.
-The software shall read in the recipients name from the stdIn.
-The user shall enter if they want to output to the stdOut or to a file
If they want to output to a file:
The software shall prompt them to enter a filename.
The software shall output the card to the file, and tell user where it is located in the file system.
If they want to output to stdOut:
The software shall output the card to stdOut.
-The program shall create a ‘Happy Holidays’ greeting card, including the recipients name displayed to stdOut
-The card shall include an ASCII Christmas tree, of your own design, placed to the top or bottom of the greeting message.
-The user shall enter the size of the tree image via stdIn
-The program shall create the tree based on the size entered by the user.
-This ASCII image shall be created programmatically using program control flow and iteration constructs, and will not be composed of just a set of static ‘printf’ statements.
Ie. You must use ‘If’ and ‘For/While/Do-While’ constructs to perform this task.
-The creation of the tree image should not use more than one printf statement.
-For all user input data, the software shall validate the data to be within a valid range.
-If the data is not in a valid range, the software shall warn the user and prompt them to re-enter the data until it is valid.
-The card shall have a border.
-The card shall be at least 80 characters wide and 60 characters tall.



looks like a full homework assignment, do you really expect someone giving you whole code for this ?
1
2
3
4
-create a ‘Happy Holidays’ ASCII art eCard and display it to either the stdOut or to a file.
-The software shall read in the recipients name from the stdIn.
-The user shall enter if they want to output to the stdOut or to a file
well, I just know such one useful blog: http://www.xflip.com/blog/create-and-print-one-great-thanksgiving-day-card-online/ 


Hi, ahabs, thanks for your nice sharing, e-card is really very fun and great to view for the readers, well done!
Topic archived. No new replies allowed.