import java.util.Scanner; import java.text.DecimalFormat; import java.io.*; public class SavingAccount //MUST match the file name! { public static void main(String[] args)throws IOException { //Create a decimal format for displaying dollars DecimalFormat dollar = new DecimalFormat(\"#,###.##\"); //Constants double depositSum = 0.0; double withdrawalSum = 0.0; double earnedInt = 0.0; double startBalance = 500; //Starting balance // Executables System.out.println(\"This program solves Programming Challenge 6.11\"); System.out.println(); //Create Scanner object for keyboard input. Scanner keyboard = new Scanner(System.in); //Get interest rate System.out.print(\"Enter the annual interest: \"); double testInterest = keyboard.nextDouble(); //Create an object that accept the starting balance and annual interest SavingAccount1 account = new SavingAccount1(startBalance, testInterest); //Open Deposit file. File file = new File (\"BankDeposits.txt\"); Scanner inputFile = new Scanner(file); //Read line in file while (inputFile.hasNext()); { //Read numbers double num = inputFile.nextDouble(); //Add the numbers depositSum += num; } //Deposit the file input. account.deposit(depositSum); //Close the file inputFile.close(); //Open Withdrawal file File file2 = new File(\"BankWithdrawal.txt\"); Scanner inputFile2 = new Scanner(file2); //Read lines in file while (inputFile2.hasNext()); { //Read numbers double num2 = inputFile2.nextDouble(); //Add the numbers withdrawalSum += num2; } //Withdrawal the file input from account. account.withdraw(withdrawalSum); //Close the file inputFile2.close(); //Add the monthly interest account.addInt(); //Get amount of interest earned. earnedInt += account.getInterest(); //Display the data System.out.println(\"Account balance $\" + dollar.format(account.getBalance())); System.out.println(\"Total interest earned $\" + dollar.format(account.getInterest())); } }//end class public class SavingAccount1 //MUST match the file name! { public static void main(String[] args) { System.out.println(\"This program solves Programming Challenge 6.10\"); System.out.println(); } //Fields private double balance; //Account balance private double annualInterest; //annual interest private double monthInt; //monthly interest private double earnedInt; //earned interest double totalWithdraw; double totalDeposit; /** 018 This constructor sets the starting balance 019 and the annual interest at 0.0. 020 */ public void Ward_Tassinda_SavingAccount1() { balance = 0.0; annualInterest = 0.0; } /** 029 This constructor set the starting balance and the annual interest rate 030 to the value passed as an argument. 031 @param startBalance The starting balance. 032 */ public void Ward_Tassinda_SavingAccount1(double startBalance, double interestRate) { balance = startBalance; annualInterest = interestRate; } /** 041 This constructor sets the starting balance to 042 the value in the String argument. 043 @param str The starting balance, as a String. 044 */ public void .