Need help coding this program with for loops
hey guys. i need to create a program for my comp sci class. i'm having trouble in general on setting up the 4th step of the program. here is what i need to do:
1. print the prompt "enter square type".
2. it should then read a string which your program will assume is one of three words, "solid", "alternating", or "hollow".
3. it should then print the message "enter size" and read an integer which will represent the size of the square to be printed.
4. if the word hollow is entered, you program should print a square whose border is made of a single pound-sign character but whose interior is just composed of blank space characters. for example, the sqaure for size 4 would look like
####
#~~#
#~~#
####
the ~ indicates a blank space. i just wanted to clarify. so yeah. i know how to print the entire box filled with the pound-sign. like i know the code to create this output:
(input size 4)
####
####
####
####
but i dont get how i can create those spaces in the middle. i did the first 3 steps with all the prompts and stuff. just need to properly execute the 4th step please help. thanks in advance!
Re: Need help coding this program with for loops
Really?
Oh my god, no, you are kidding me, right?
Wow... we were looking for such a person who could help us... Thanks you have just solved our problem... We are so happy that you have just given us some work to do....
I hope you read the forum rules??????
If no, for God sake, read them HERE!!!!!!!!!!!!!!!!!!
Re: Need help coding this program with for loops
Quote:
Originally Posted by
Mr.777
Really?
Oh my god, no, you are kidding me, right?
Wow... we were looking for such a person who could help us... Thanks you have just solved our problem... We are so happy that you have just given us some work to do....
I hope you read the forum rules??????
If no, for God sake, read them
HERE!!!!!!!!!!!!!!!!!!
I think somebody has forgotten about rule# 4... Be respectful and courteous.
Just sayin'...
Re: Need help coding this program with for loops
Quote:
Originally Posted by
kenster421
I think somebody has forgotten about rule# 4... Be respectful and courteous.
Just sayin'...
Did i show any disrespect???