am new so please help me.....
am asked to "write a program that displays the outline of a box five characters wide and five characters tall. Use the '*' character for the box outline."
am new so please help me.....
am asked to "write a program that displays the outline of a box five characters wide and five characters tall. Use the '*' character for the box outline."
So if you have a character people can see, (*) and a character that people can't see ( ) can you arrange them in a box shape with code?
Welcome to the forum, UniPrek!
I won't give you any code, because this is too good of a puzzle (which will help improve your ability to think through these puzzles). But I'll ask you to tell me the two types of lines of print you need to use, to make up your box. What would they be?
As with all these puzzles, it helps a lot if you work through them slowly, and thoughtfully, by hand first, with a very simple and small example. Note how YOU would draw a box like this, if you were only drawing from top to bottom rows, and from left to right columns. Like a computer would.
Repeat it a few times and you'll begin to notice a pattern - and that pattern, when it's simplified into small steps, can form the basis of your program's logic.
Even if you feel lost, have confidence. You WILL improve substantially, at solving these little problems, with practice.