Hi again. I am still working on the While loop, but this is a different problem in the loop.
Many thanks to everyone, pbrockway2, Jos.
I'm getting there and LEARNING(mmmm what a concept).
I've hit a snag. Variable monIntR is displayed as 0.0060. I want it to look like 0.006. So I used the System.out.printf statement and the compiler screamed bloody murder.
Error Message:
The monthly interest is Exception in thread "main" java.util.MissingFormatArgumentException: Format specifier '.3f'
at java.util.Formatter.format(Formatter.java:2432)
at java.io.PrintStream.format(PrintStream.java:920)
at java.io.PrintStream.printf(PrintStream.java:821)
at Monthly_Test.main(Monthly_Test.java:24)
I changed the code to add the variable inside the quotes:Code:monIntR = (inRateyr / 12)/ 100 ;
System.out.printf("The monthly interest is %.3f : " + monIntR);
but the compiler is still unhappy. I Googled the error message and one of the answers was "This means that you didn't specify something to be formatted for the second specifier. "Code:System.out.printf("The monthly interest is monIntR = %.3f : " + monIntR);
I went to java2s.com, but I'm still stumped. Do I need some type of pre-defined method???
Thank you
