...HELPIDO.COM ----------------------------------------------------------------------------------- FOLLOW THIS LINK TO GET THE TUTORIAL http://helpido.com/java-its320-critical-thinking-assignment-2-java-program-2-of-6-70-points-custom-bankaccount-class-with-a-modified-constructor-1-enter-the-code/ ----------------------------------------------------------------------------------- Java – ITS320 – Critical Thinking Assignment #2 Critical Thinking Assignment #2: Java Program #2 of 6 (70 Points) Custom BankAccount Class with a Modified Constructor 1) Enter the code for the two classes “BankAccount.java” and “Program2.java” shown below. The Program2 class is a driver for the BankAccount class. Note that this version of the BankAccount class accepts a monthly interest rate in decimal format which must be calculated by the user. /** * BankAccount class * This class simulates a bank account. * * (Taken from “Starting Out with Java - Early Objects * (Third Edition) by Tony Gaddis, 2008 by Pearson Educ.) * */ public class BankAccount { private double balance; // Account balance private double interestRate; // Interest rate private double interest; // Interest earned /** * The constructor initializes the balance * and interestRate fields with the values * passed...
Words: 1186 - Pages: 5