treecppTLD - /* * * File Name :- Treepattern.cpp * *...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 /*************************************************************************************************** * * File Name :- Treepattern.cpp * * Programmer :- Tonya L Dyk * * Date :- 01/29/2011 * * Course :- COMP 122 * * File Name :- TreeTLD.cpp * * with the number of lines specified by the user. For example, * the following output is a five-line tree: * * 1 * * 2 *** * 3 ***** * 4 ******* * 5 ********* * * * The program should prompt the user to enter the * number of lines. * * * The number of lines should be between 1 and 30, * inclusive. If the user enters a non-positive integer * (0 or negative), display a message indicating that the * number of lines must be at least 1 and re-prompt for the * number of lines. Continue to print the error message and * re-prompt until the user enters a valid number, 1 or more. * * * In addition, you are to limit the number of lines to a
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/28/2011 for the course COMP 122 taught by Professor Carr during the Winter '10 term at DeVry Chicago.

Page1 / 4

treecppTLD - /* * * File Name :- Treepattern.cpp * *...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online