Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drawing a square-Beginner

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
The program must draw a box on the screen according to the user’s requirements. The box will be hollow and its sides, top and bottom are drawn using the same character. The user will be able to choose the position and size of the box, and the character used to draw the box.

The program must have a menu with the following options:

Char to input the character used to draw the box border

Co-ord to enter the box coordinates (left, top, right and bottom)

Draw to draw the box

Q to quit the program

When the program draws the box, it will not erase the interior of the box. When the user changes the position and size of the box, the program will not erase the previous box, except where the new box’s border or the menu overwrites the previous box’s border.

The program must be easy to use in all respects. The program logic should be straightforward and not unnecessarily complex. The source code should be tidy and have consistent indentation, a heading showing the programs title, purpose, date and author, and a brief comment on each loop and decision.

The user can choose the colour in which the box border is drawn.

The user can choose to erase the interior of the box.

please help as i need it asp in the most simplest possible way so when i run it it should show up on dos

please reply thanx
hansen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top