Weird. No idea why mine won't work then. Thank you for your help.
Type: Posts; User: JavaAsh
Weird. No idea why mine won't work then. Thank you for your help.
It compiles now, but the output is 0.0. I'm pretty sure that's because I have the equation before it actually receives the input. But if I put the equation after the input it gives me that same error...
It is declared before the while. I moved it up to declare it before the 'do' and and it runs, but then gets an error, incorrect output of "0.0", and then it closes before it gives the option of...
I added them to presentValue. Now it won't compile still, but I have just one error:
Project2.java:59: error: cannot find symbol
return present;
^
symbol: variable present
...
Sorry, I'll make sure to include that next time. They are declared in the main where the other variables are declared. The other inputs work just fine. Again, if the while loop is taken out then the...
Yes I noticed that. I fixed that and still no fix.
Yes I know it won't compile. It did fine before I tried adding the loop. Here are the errors:
Project2.java:50: error: cannot find symbol
input = keyboard.nextLine();
^
symbol: ...
Hi, everyone, can someone please take a look at my code and let me know why my do while loop does not work? The program runs properly until I add the do while loop. I referenced my book and have no...
I think I got it! I moved the output statement from the main function back to the displayValue function and I get a real number instead of 0.0!
Ashley
Thank you, Penguin! I'll keep working at it then.
Ashley
Hey, Cody! Thanks a lot for your help. It's good to know that I'm only making simple mistakes thus far. I get so frustrated sometimes that I want to give up. I've been working on this for the last...
Hi everyone, I'm new here and new to Java (I guess this is how all newbies start their threads :P)
Anyway, I have to make a program that will calculate present value. We have to do the...