File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Did I do this right? (Interest calculator) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Did I do this right? (Interest calculator)" Watch "Did I do this right? (Interest calculator)" New topic
Author

Did I do this right? (Interest calculator)

Rose Deanne
Greenhorn

Joined: Sep 11, 2011
Posts: 8
There aren't any errors coming up, and the math part runs fine, I just want to make sure that this does what it's supposed to. I feel like I'm missing something.

What do you think? These were the instructions:
1. Ask the user for initial principal amount and annual percentage rate.
2. Program will go through the for-loop but instead of displaying in the screen, write to a text file.
3. Program will then open the same text file, read the data and append to the outputTextArea variable and then JOption display on the screen inside a JOptionPane message dialog.


Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Step 3 starts out by saying
Program will then open the same text file, read the data and append to the outputTextArea variable...

It looks like you skipped that step and just used the data you already had in memory. Which would be a sensible thing to do in a real-life application, but not in a homework assignment which tells you to do something else.
Rose Deanne
Greenhorn

Joined: Sep 11, 2011
Posts: 8
Paul Clapham wrote:It looks like you skipped that step and just used the data you already had in memory.


Darn. Yeah, that's what I thought it was doing... I just really don't know what I'm missing in there. It's an online class where I'm basically just teaching myself out of a textbook, and the teacher rarely logs in to read his email, so I'm kinda stuck. What do I need to do?
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Rose, please BeForthrightWhenCrossPostingToOtherSites.
http://www.java-forums.org/new-java/48463-did-i-do-right-interest-calculator.html


luck, db
There are no new questions, but there may be new answers.
Rose Deanne
Greenhorn

Joined: Sep 11, 2011
Posts: 8


Oh, sorry, didn't realize that was an issue. Yeah, this is also posted to java-forums.org. It's just with the time zone difference and my wacky work schedule I don't really get to interact with people like I would like to, so I posted it to that place to maybe get a little bit more feedback.
Rose Deanne
Greenhorn

Joined: Sep 11, 2011
Posts: 8
Actually, I'm just gonna "resolve" this one so I don't make anyone angry. Thank you, Paul and Darryl.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Did I do this right? (Interest calculator)
 
Similar Threads
Generating compound interest with integers
Help code problem please
Having trouble understanding an error code i keep getting. Please help!
extra credit in class but stuck on persentage rates
Newbie problem - HELP!