Java - General » Core Java » try it
125 Views
0 Replies
try it
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.









