943,597 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 629
  • Java RSS
Oct 12th, 2008
0

java interest program help?

Expand Post »
Hey,
Im writing an interest program for in java and i ahve a question about an easier method to obtain the user input. I have to get the amount the user wishes to input, the % interest, the annual rate (36 months, or 2 years ) and the compound rate ( monthly, daily, yearly). I need a better way to find out if the user has inputed 36 months or 2 years, same thing with the compound rate. As it is now, im using ALOT of if statements, there has to be a better way.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mowhawk is offline Offline
1 posts
since Oct 2008
Oct 12th, 2008
0

Re: java interest program help?

You could create methods that return different values based upon the input, but you still need if statements to do that. Would it be possible for me to see what you have? It would be much easier for me to help.
Featured Poster
Reputation Points: 533
Solved Threads: 53
Senior Poster
jasimp is offline Offline
3,593 posts
since Aug 2007
Oct 13th, 2008
0

Re: java interest program help?

Click to Expand / Collapse  Quote originally posted by mowhawk ...
... an easier method to obtain the user input.
easier compared to what? and what do you have to test on? perhaps you do need all those if's
Reputation Points: 919
Solved Threads: 354
Nearly a Posting Maven
stultuske is online now Online
2,474 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Knight's Tour Using a Stack
Next Thread in Java Forum Timeline: newnee: package problem??





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC