Hello everyone,
Here I am agian struggling to figure things out. Right now I am trying to understand this class and
test program to go with. I just don't understand how it works. Can anyone take a look at it and give me some insight. In my assignment I'm suppose to use the following class (Rational Class) and write a program thta will compute a summation series as follows:
1/1 + 1/2 + 1/3 +... +1/n
1/1 + 1/2 + 1/2exponent2 +...+ 1/2exponentn
So I figure I need a better understanding of this class before I attempt a program for the above.
One other thing is can someone explain the "tostring()" method to me?
The Rational Class is as follows:
And the testprogram:
Thanks
Stacey