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, 21.06.2019 21:30
Ryan terlecki organized a new internet company, capuniverse, inc. the company specializes in baseball-type caps with logos printed on them. ryan, who is never without a cap, believes that his target market is college and high school students. you have been hired to record the transactions occurring in the first two weeks of operations. issued 2,900 shares of $0.01 par value common stock to investors for cash at $29 per share. borrowed $68,000 from the bank to provide additional funding to begin operations; the note is due in two years. paid $1,000 for the current month's rent of a warehouse and another $1,000 for next month's rent. paid $1,440 for a one-year fire insurance policy on the warehouse (recorded as a prepaid expense). purchased furniture and fixtures for the warehouse for $16,000, paying $3,200 cash and the rest on account. the amount is due within 30 days. purchased for $2,800 cash the university of pennsylvania, notre dame, the university of texas at austin, and michigan state university baseball caps as inventory to sell online. placed advertisements on google for a total of $340 cash. sold caps totaling $1,900, half of which was charged on account. the cost of the caps sold was $1,100. (hint: make two entries.) made full payment for the furniture and fixtures purchased on account in (e). received $280 from a customer on account.
Answers: 2
question
Business, 22.06.2019 10:10
At the end of year 2, retained earnings for the baker company was $3,550. revenue earned by the company in year 2 was $3,800, expenses paid during the period were $2,000, and dividends paid during the period were $1,400. based on this information alone, retained earnings at the beginning of year 2 was:
Answers: 1
question
Business, 22.06.2019 11:00
What is the correct percentage of texas teachers charged with ethics violations each year?
Answers: 2
question
Business, 22.06.2019 11:20
Mae jong corp. issues $1,000,000 of 10% bonds payable which may be converted into 10,000 shares of $2 par value ordinary shares. the market rate of interest on similar bonds is 12%. interest is payable annually on december 31, and the bonds were issued for total proceeds of $1,000,000. in accounting for these bonds, mae jong corp. will: (a) first assign a value to the equity component, then determine the liability component. (b) assign no value to the equity component since the conversion privilege is not separable from the bond.(c) first assign a value to the liability component based on the face amount of the bond.(d) use the “with-and-without” method to value the compound instrument.
Answers: 3
You know the right answer?
For this exercise, you will be completing the Account class, which simulates a regular bank account,...
Questions
question
Health, 18.03.2021 23:50
question
English, 18.03.2021 23:50
question
History, 18.03.2021 23:50
question
Mathematics, 18.03.2021 23:50
Questions on the website: 13722361