The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 327 Weeks Ago, 5 Days Ago |
| Questions Answered: | 12843 |
| Tutorials Posted: | 12834 |
MBA, Ph.D in Management
Harvard university
Feb-1997 - Aug-2003
Professor
Strayer University
Jan-2007 - Present
A bank maintains the accounts for its customers. The bank offers customers two type of accounts - a checking account and a savings account. The checking account charges ustomers a fixed service charge of $25.00 per month. The savings account yields a fixed interest rate of 3% per year on the monthly balance. The bank allows cutomers to make deposits, withdrawals, and to get their balance at any time.
From the set of responses below select those that best describe an interface for this situation.
             (I)                                                                                          (II)
             Â
public interface Banking                                                          public interface BankingÂ
{Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â {
         double CHECKING_RATE = 25.0;                                        double CHECKING_RATE = 25.0;
          final double SAVING_RATE  = 0.03;                                    double SAVING_RATE  = 0.03;
              Â
         void deposit(double amount);                                               void deposit(double amount);
         double withdraw(double amount);                                       double withdraw(double amount);
          double getBalance();                                                              static double money = getBalance();
}Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â }
                 (III)                                                                                     (IV)
public interface Bankikng                                                     public interface BankingÂ
{Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â {
         static double CHECKING_RATE = 25.0;                                double CHECKING_RATE = 25.0;
         double SAVING_RATE  = 0.03;                                              double SAVING_RATE  = 0.03;
              Â
         void deposit(double amount);                                                  void deposit(double amount);
         abstract double withdraw(double amount);                          double withdraw(double amount);
         double getBalance();                                                                 static double getBalance(){ return amount};
}Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â }
Â
=
Question1Not completeMarked out of 1.00Flag questionQuestion textA bank maintains the accounts for its customers. The bank offers customers two type of accounts - achecking account and a savings account. The checking account charges ustomers a fixed service charge of$25.00 per month. The savings account yields a fixed interest rate of 3% per year on the monthly balance.The bank allows cutomers to make deposits, withdrawals, and to get their balance at any time.From the set of responses below select those that best describe an interface for this situation.(I) (II)public interface Banking public interface Banking{ {double CHECKING_RATE = 25.0; double CHECKING_RATE = 25.0;final double SAVING_RATE = 0.03; double SAVING_RATE = 0.03;void deposit(double amount); void deposit(double amount);double withdraw(double amount); double withdraw(double amount);double getBalance(); static double money = getBalance();} }(III) (IV)public interface Bankikng public interface Banking{ {static double CHECKING_RATE = 25.0; double CHECKING_RATE = 25.0;double SAVING_RATE = 0.03; double SAVING_RATE = 0.03;void deposit(double amount); void deposit(double amount);abstract double withdraw(double amount); double withdraw(double amount);double getBalance(); static double getBalance(){ returnamount};}}(V)public interface Bankikng{static double CHECKING_RATE = 25.0;static final double SAVING_RATE = 0.03;publicabstract void deposit(double amount);abstract double withdraw(double amount);double getBalance();}SELECT ALL POSSIBLE RESPONSESSelect one or more:a. IIIb. IVc. IId. I
Attachments:
-----------