Ok I'll try to write it down. And yeah my teacher said we can't use any for loops, hence the reason I'm using recursion in the first place
Type: Posts; User: nWeid1
Ok I'll try to write it down. And yeah my teacher said we can't use any for loops, hence the reason I'm using recursion in the first place
Yeah I figured I could use count so that every line of stars there should add 1 space before the next line of stars. I also thought of creating a separate method just for the spaces but I don't know...
Well, I don't. I don't know where to implement the code to have them print out properly which is my problem.
I just updated it. for some reason it won't display the spaces unless its
I have to write a recursive program that makes an hourglass that suites the size of the user's input. For example, if the user types 4, this should print:
* * * *
* * *
* *
*
* *
...
I have to sort the list in ascending order in the "insert" method as it is inserted. So, if I add 6, then 8, the list should print out "6.0 8.0". If i then added 12, the list should print out "6.0...
I had to make a Linked List program for my programming class. It works and every time a number is inserted it is put at the beginning of the list. Now my teacher wants us to take our Linked List...
For my programming class, I have to recreate the "Game of Life" game. Right now, we are only building the foundation for it so it doesn't have to do as much as the real game quite yet. The program...
Tjstretch, I am an idiot for using board[rows][columns] and not boards[i][j] lol thanks for pointing out the obvious. And thanks for the !board[][] tip. It's working now, thanks!
Well, the first loop can be deleted for now. At this point in time, I just want to print out a table of -'s of a given number of rows and columns and isn't that what the second loop does? It starts...
I have to write a program for my programming class prints out a table filled with "-"s and randomly fills them with "#"s. So first, I have to create a 2d array where the number of rows and columns...
Ok I fixed it. Thanks for the tip. But in the readFrom method I need to complete the code where the blank is and that's what is stumping me. I think if there is a next line to be read, I need to read...
I have to make a program that compares two given text files and then tells the user if there is or isn't any differences. Then if there is, print the line number and the two lines. I got most of it...