Design a class that stores the balance and the number of checks that has been written and return fees?
I thought I was done, but my teacher said I forgot a small part in the homework.
import java.util.Scanner;
public class BankDemo{
public static void main (String []args){
final double baseFee = 10;
int numberOfChecks = 0;
double Charge = 0;
double balance = 0;
Scanner keyboard = new Scanner(System.in);
System.out.print("Please enter the number of checks: ");
numberOfChecks = keyboard.nextInt();
if (numberOfChecks < 10) {
Charge = baseFee + (numberOfChecks * 0.10);
}
else if (numberOfChecks > 10) {
Charge = baseFee + (numberOfChecks * 0.05);
System.out.println("Charge for the month: " + Charge + ".");
}
}
