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....
Type: Posts; User: SOK
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....
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...
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...
Thanks :) and thanks to all that helped, program is working to spec.
Thanks all.
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...
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,...
I would have to send you the InputHelper file for you to compile the program.
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...
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...
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...
Thanks all.
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...