• Post Reply Bookmark Topic Watch Topic
  • New Topic

How does this know to calculate for a year? probably missing something small  RSS feed

 
Aaron Schulte
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I have a grip on just about all of it except how does the program know to calculate for only one year?

Thanks in advance


 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Aaron and welcome to the Ranch!

Given a principal and annual rate, how do you calculate the interest without using a computer?
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, and in future please UseCodeTags <- that's a link, click it

I've added them for you this time and doesn't the code look better?
 
Campbell Ritchie
Marshal
Posts: 56534
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you really write %1.2f for your % tags? If you want two places after the decimal point and one before you need a width of 4. I would suggest you need a greater width than that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!