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!