subject
Business, 12.03.2021 15:30 Dweath50

For this exercise, you will be completing the Account class, which simulates a regular bank account, then using overrides and calls to the superclass to create a StudentAccount. Student accounts differ from regular accounts in that they get a bonus $1 for every deposit, but a $2 fee for every withdrawal. You will override the methods in the StudentAccount by calling the superclass methods with the additonal amount or fee incorporated since the balance is not directly stored in the StudentAccount object. You will also update the toString, as outlined in the comments. When completed, create one student account and one regular account for testing. Deposit and withdraw money and print the results. public class BankTester
{
public static void main(String[] args)
{
// Start here!
}
}
public class Account
{
private String name;
private double balance;
// Initialize values in constructor
public Account(String clientName, double openingBal){
}
// Complete the accessor method
public double getBalance(){
}
// Add amount to balance
public void deposit(double amount){
}
// Subtract amount from balance
public void withdrawal(double amount){
}
// Should read: Regular account with a balance of $__.__
public String toString(){
}
}
public class StudentAccount extends Account
{
// Complete this class with Override methods.
public StudentAccount(String studentName, double openingBal){
}
// Students get a $1 bonus on depositing
// Students pay a $2 fee for withdrawing
// toString() Should read: Student account with a balance of $__.__
}

ansver
Answers: 2

Another question on Business

question
Business, 22.06.2019 06:00
Cash flow is often a problem for small businesses. how can an entrepreneur increase cash flow? a) locate lower-priced suppliers. b) forego sending in estimated tax payments to the irs c) shorten the terms on a bank loan to pay it off more quickly d) sell more low-margin items.
Answers: 1
question
Business, 22.06.2019 10:50
Suppose that a firm is considering moving from a batch process to an assembly-line process to better meet evolving market needs. what concerns might the following functions have about this proposed process change: marketing, finance, human resources, accounting, and information systems?
Answers: 2
question
Business, 22.06.2019 18:00
During the holiday season, maria's department store works with a contracted employment agency to bring extra workers on board to handle overflow business, and extra duties such as wrapping presents. maria's is using during these rush times.
Answers: 3
question
Business, 22.06.2019 19:00
12. to produce a textured purée, you would use a/an a. food processor. b. wide-mesh sieve. c. immersion blender d. food mill.
Answers: 1
You know the right answer?
For this exercise, you will be completing the Account class, which simulates a regular bank account,...
Questions
question
Mathematics, 12.10.2019 20:30
question
Biology, 12.10.2019 20:30
question
Mathematics, 12.10.2019 20:30
Questions on the website: 13722359