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.
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.
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 wrote:Rose, please BeForthrightWhenCrossPostingToOtherSites.
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.