Search:

Type: Posts; User: SOK

Search: Search took 0.38 seconds.

  1. Replies
    3
    Views
    1,479

    Re: Fractions Code help

    Thanks David,

    That takes care of that. Since this is my first program actually using more than one class, I am not sure how to call from the fraction class into my main program called MyProgram....
  2. Replies
    3
    Views
    1,479

    Fractions Code help

    Hey All I have three classes. FractionGenerator, Fraction and MyProgram which is the main.

    I have FractionGenerator working, it is generating random numbers for numerator and denominator. My code...
  3. Replies
    1
    Views
    4,695

    Credit card validator

    Hey All. I am trying to do a credit card validator. We can't use an array so this is what I have done so far. Not working for me unfortunately. I think my algorithm is off.


    import...
  4. Thread: Odd/Even

    by SOK
    Replies
    16
    Views
    1,996

    Re: Odd/Even

    Thanks :) and thanks to all that helped, program is working to spec.
  5. Thread: Odd/Even

    by SOK
    Replies
    16
    Views
    1,996

    Re: Odd/Even

    Thanks all.
  6. Thread: Odd/Even

    by SOK
    Replies
    16
    Views
    1,996

    Re: Odd/Even

    I guess the main issue I am having is, the while loop works, and as soon as you type 0 the program stops to give you the number of odd and even numbers and then asks you if you want to enter another...
  7. Thread: Odd/Even

    by SOK
    Replies
    16
    Views
    1,996

    Re: Odd/Even

    The program is not supposed to end at 5, it just does, one of the issues I have.

    Here is the spec that I need to do.

    Functional Requirements of Finished Program

    At the start of the program,...
  8. Thread: Odd/Even

    by SOK
    Replies
    16
    Views
    1,996

    Re: Odd/Even

    I would have to send you the InputHelper file for you to compile the program.
  9. Thread: Odd/Even

    by SOK
    Replies
    16
    Views
    1,996

    Re: Odd/Even

    enter an integer:5
    enter an integer:4
    enter an integer:5
    enter an integer:5
    enter an integer:4
    enter an integer:0
    There are 3 odd numbers in the sequence
    There are 3 even numbers in the...
  10. Thread: Odd/Even

    by SOK
    Replies
    16
    Views
    1,996

    Re: Odd/Even

    That is all the code I have right now. If I post the rest of it in the while loop, will it not always print out everything in it every time I enter a number? I am sure I tried putting it in all in...
  11. Thread: Odd/Even

    by SOK
    Replies
    16
    Views
    1,996

    Re: Odd/Even

    The while loop does work how I want it so far. Basically I enter an integer, if it is not equal to 0 then I keep enter odd and even integers. As soon as I enter 0, the program outputs how many odd...
  12. Thread: Odd/Even

    by SOK
    Replies
    16
    Views
    1,996

    Odd/Even

    Thanks all.
  13. Replies
    1
    Views
    2,329

    Making a Craps game.

    Hey All,

    I am new to Java. I have a 2 phase assignment to make a craps game. In the first phase I have to implement two classes, Die and PairOfDice. The public methods of Die are Die(), int...
Results 1 to 13 of 13