Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using Eclipse Paragraph Styles Problem (25 points) First American Bank provides

ID: 3920451 • Letter: U

Question

Using Eclipse Paragraph Styles Problem (25 points) First American Bank provides both normal bank services like checking accounts and mortgages to its customers. Each customer who uses checking services has a checking account. Each customer who gets a mortgage loan from the bank has a mortgage account The bank executives ask a team of software analysts to develop a system to manage its customers' bank accounts Section A: Define an abstract Java class named "BankAccount" in a package named BANKACCOUNTS, This class has three attributes: (1) Acount number: an integer of 10 digits, defined as protected (2) Account type: String (e.g.: "CHECKING versus "MORTGAGE"), defined as . protected (3) Customers full name: String, defined as protected Class BankAccount definition provides . a default constructor . get-methods and set-methods for the variable attributes, . a public method, named "displayAccountData0", that prints out the following pieces of data: account number, account type, and customer's full name in only one line. Section B: Define a Java class named CheckingAccount in the same package, BANKACCOUNTS that extends the class BankAccount. Class CheckingAccount has only one attribute: checking balance, that is defined as private. . Class CheckingAccount definition provides: 19 f10 112 break

Explanation / Answer

package BANKACCOUNTS; public class BankAccount { protected long accountNumber; protected String accountType; protected String customerName; public BankAccount() { accountNumber = 0; accountType = ""; customerName = ""; } public long getAccountNumber() { return accountNumber; } public void setAccountNumber(long accountNumber) { this.accountNumber = accountNumber; } public String getAccountType() { return accountType; } public void setAccountType(String accountType) { this.accountType = accountType; } public String getCustomerName() { return customerName; } public void setCustomerName(String customerName) { this.customerName = customerName; } public void displayAccountData() { System.out.println(accountNumber + ", " + accountType + ", " + customerName); } } package BANKACCOUNTS; public class CheckingAccount extends BankAccount { private int balance; public CheckingAccount() { } public CheckingAccount(long accNumber, String name) { accountNumber = accNumber; customerName = name; } public int getBalance() { return balance; } public void setBalance(int balance) { this.balance = balance; } @Override public void displayAccountData() { System.out.println(accountNumber + ", " + accountType + ", " + customerName + ", " + String.format("%.2f", balance)); } }

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote