Search:

Type: Posts; User: nWeid1

Search: Search took 0.15 seconds.

  1. Replies
    10
    Views
    5,844

    Re: Hourglass using recursion

    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
  2. Replies
    10
    Views
    5,844

    Re: Hourglass using recursion

    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...
  3. Replies
    10
    Views
    5,844

    Re: Hourglass using recursion

    Well, I don't. I don't know where to implement the code to have them print out properly which is my problem.
  4. Replies
    10
    Views
    5,844

    Re: Hourglass using recursion

    I just updated it. for some reason it won't display the spaces unless its
  5. Replies
    10
    Views
    5,844

    Hourglass using recursion

    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:



    * * * *
    * * *
    * *
    *
    * *
    ...
  6. Replies
    4
    Views
    1,740

    Re: Sorting a Linked List

    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...
  7. Replies
    4
    Views
    1,740

    Sorting a Linked List

    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...
  8. Replies
    2
    Views
    1,554

    "Game of Life" help

    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...
  9. Replies
    4
    Views
    2,136

    Re: Printing 2d array

    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!
  10. Replies
    4
    Views
    2,136

    Re: Printing 2d array

    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...
  11. Replies
    4
    Views
    2,136

    [Solved] Printing 2d array

    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...
  12. Replies
    3
    Views
    3,536

    Re: Program to compares two text files!

    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...
  13. Replies
    3
    Views
    3,536

    Program to compares two text files!

    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...
Results 1 to 13 of 13