labtest1
Class Interest

java.lang.Object
  extended by labtest1.Interest

public class Interest
extends Object

This utility class provides interest rates.


Field Summary
static double BASE_RATE
          The base interest rate.
 
Method Summary
static double rate(double amount)
          Returns the interest rate for the given amount of money.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_RATE

public static final double BASE_RATE
The base interest rate.

See Also:
Constant Field Values
Method Detail

rate

public static double rate(double amount)
Returns the interest rate for the given amount of money.

Parameters:
amount - the amount of money.
Precondition:
amount > 0