See which of your colleagues or former colleagues are already on Java Link: Check out the Contact Finder
Java - General » Core Java » try it

125 Views
  0 Replies

0
Vote Vote
try it
Share  
Varad
Varad Picture
1 Posts
back to top
Posted 13-04-2011Reply

Write a program that computes the interest on a bank balance to the nearest cent and

stores the result in a variable called newBalance. Prove that the new balance is stored to

the nearest cent by an output instruction that prints newBalance with three decimal

places. Test the program using a variety of values assigned to the balance and the interest

rate.

0
Vote Vote
Share  

Recent Activity in Forums

05-04-2012.
05-04-2012.
Kanchana posted a new forum topic in
27-02-2012.
11-02-2012.
Kanchana posted a new forum topic in
11-02-2012.