Question

Samediff banks manager is excited to consider updating their account system. An expert has advised that...

Samediff banks manager is excited to consider updating their account system. An expert has advised that they would be able to increase both security and ease of maintenance by using object oriented concepts such as polymorphism. Create an inheritance hierarchy that a bank will use to represent customers’ bank accounts. All customers of Samediff bank can deposit (i.e., credit) money into their accounts and withdraw (i.e., debit) money from their accounts. Each month they process interest earned and penalties on each account. Specific types of accounts exist. Each type of account you will need to consider in your inheritance hierarchy is listed below.

Steps taken for this phase:

  1. (3 points possible) Visit the original UMLs and revise them based on the information learned up to this chapter Collaborate work among your team members to develop/revise the first UML diagram.
  2. (3 points possible) Collaborate work among your team members to develop/revise the second UML diagram.
  3. (3 points possible) Collaborate work among your team members to develop/revise the third UML diagram.
  4. (3 points possible) Revise the fourth UML diagram.
  5. (3 points possible) Connect the classes using an inheritance hierarchy and object composition (if any) for Samediff Bank’s account system.
  6. (2 points possible) Based on the information below, what functions should be polymorphic and use dynamic binding for security?
  7. (2 points possible) How do you keep track of multiple accounts from a single customer? Explain your thoughts....

Account Type

Monthly Interest (APY)

Withdrawal Penalty

Maturity Penalty

Savings

1.05%

Balance < $1000.00=$50.00

$0.00

Checking

0.02

$0.00

$0.00

Certificate of Deposit (CD)

3 months 2.5%

6 months 3%

1 year 5%

<3 months deducts 10%

<6 months deducts 20%

<12 months deducts 50%

Money Market (MMDA)

1.25%

Balance < $10,000 = $200

$0.00

0 0
Add a comment Improve this question Transcribed image text
Answer #1

#include <iostream.h>
#include <conio.h>

class account
{
char cust_name[20];
int acc_no;
char acc_type[20];
public:
   void get_accinfo()
   {
       cout<<"\n\nEnter Customer Name :- ";
       cin>>cust_name;
       cout<<"Enter Account Number :- ";
       cin>>acc_no;
       cout<<"Enter Account Type :- ";
       cin>>acc_type;
   }
   void display_accinfo()
   {
       cout<<"\n\nCustomer Name :- "<<cust_name;
       cout<<"\nAccount Number :- "<<acc_no;
       cout<<"\nAccount Type :- "<<acc_type;
   }
};

class cur_acct : public account
{
staticfloat balance;
public:
    void disp_currbal()
    {
      cout<<"\nBalance :- "<<balance;
    }
    void deposit_currbal()
    {
      float deposit;
      cout<<"\nEnter amount to Deposit :- ";
      cin>>deposit;
      balance = balance + deposit;
    }
    void withdraw_currbal()
    {
      float penalty,withdraw;
      cout<<"\n\nBalance :- "<<balance;
      cout<<"\nEnter amount to be withdraw :-";
      cin>>withdraw;
      balance=balance-withdraw;
      if(balance < 500)
      {
      penalty=(500-balance)/10;
      balance=balance-penalty;
      cout<<"\nBalance after deducting penalty : "<<balance;
      }
      elseif(withdraw > balance)
      {
      cout<<"\n\nYou have to take permission for Bank Overdraft Facility\n";
      balance=balance+withdraw;
      }
      else
      cout<<"\nAfter Withdrawl your Balance revels : "<<balance;
     }
};

class sav_acct : public account
{
staticfloat savbal;
public:
     void disp_savbal()
    {
      cout<<"\nBalance :- "<<savbal;
    }
    void deposit_savbal()
    {
      float deposit,interest;
      cout<<"\nEnter amount to Deposit :- ";
      cin>>deposit;
      savbal = savbal + deposit;
      interest=(savbal*2)/100;
      savbal=savbal+interest;
    }
    void withdraw_savbal()
    {
      float withdraw;
      cout<<"\nBalance :- "<<savbal;
      cout<<"\nEnter amount to be withdraw :-";
      cin>>withdraw;
      savbal=savbal-withdraw;
      if(withdraw > savbal)
      {
      cout<<"\n\nYou have to take permission for Bank Overdraft Facility\n";
      savbal=savbal+withdraw;
      }
      else
      cout<<"\nAfter Withdrawl your Balance revels : "<<savbal;
     }
};


float cur_acct :: balance;
float sav_acct :: savbal;


void main()
{
clrscr();
cur_acct c1;
sav_acct s1;

cout<<"\nEnter S for saving customer and C for current a/c customer\n\n";
char type;
cin>>type;

int choice;

   if(type=='s' || type=='S')
     {
       s1.get_accinfo();
       while(1)
       {
     clrscr();
     cout<<"\nChoose Your Choice\n";
     cout<<"1)   Deposit\n";
     cout<<"2)   Withdraw\n";
     cout<<"3)   Display Balance\n";
     cout<<"4)   Display with full Details\n";
     cout<<"5)   Exit\n";
     cout<<"6)   Choose Your choice:-";
     cin>>choice;
     switch(choice)
     {
       case 1 : s1.deposit_savbal();
            getch();
            break;
       case 2 : s1.withdraw_savbal();
            getch();
            break;
       case 3 : s1.disp_savbal();
            getch();
            break;
       case 4 : s1.display_accinfo();
            s1.disp_savbal();
            getch();
            break;
       case 5 : goto end;
       default: cout<<"\n\nEntered choice is invalid,\"TRY AGAIN\"";
     }
       }
     }
    else
     {
       {
       c1.get_accinfo();
       while(1)
       {
     cout<<"\nChoose Your Choice\n";
     cout<<"1)   Deposit\n";
     cout<<"2)   Withdraw\n";
     cout<<"3)   Display Balance\n";
     cout<<"4)   Display with full Details\n";
     cout<<"5)   Exit\n";
     cout<<"6)   Choose Your choice:-";
     cin>>choice;
     switch(choice)
     {
       case 1 : c1.deposit_currbal();
            getch();
            break;
       case 2 : c1.withdraw_currbal();
            getch();
            break;
       case 3 : c1.disp_currbal();
            getch();
            break;
       case 4 : c1.display_accinfo();
            c1.disp_currbal();
            getch();
            break;
       case 5 : goto end;
       default: cout<<"\n\nEntered choice is invalid,\"TRY AGAIN\"";
     }
       }
     }
end:
}
}

*PLEASE GIVE A POSITIVE RESPONSE*

Add a comment
Know the answer?
Add Answer to:
Samediff banks manager is excited to consider updating their account system. An expert has advised that...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • must be written in c# using windows application Scenario: Samediff bank has a 25-year old banking...

    must be written in c# using windows application Scenario: Samediff bank has a 25-year old banking account system. It was created using procedural programming. Samediff bank needs to improve the security and maintainability of the system using an object-oriented programming (OOP) approach. Their bank manager has decided to hire you to develop, implement, and test a new OOP application using efficient data structures and programming techniques.Samediff banks manager is excited to consider updating their account system. An expert has advised...

  • Design a bank account class named Account that has the following private member variables:

    Need help please!.. C++ programDesign a bank account class named Account that has the following private member variables: accountNumber of type int ownerName of type string balance of type double transactionHistory of type pointer to Transaction structure (structure is defined below) numberTransactions of type int totalNetDeposits of type static double.The totalNetDeposits is the cumulative sum of all deposits (at account creation and at deposits) minus the cumulative sum of all withdrawals. numberAccounts of type static intand the following public member...

  • C++ Banks offer various types of accounts, such as savings, checking, certificate of deposits, and money...

    C++ Banks offer various types of accounts, such as savings, checking, certificate of deposits, and money market, to attract customers as well as meet their specific needs. Two of the most commonly used accounts are savings and checking. Each of these accounts has various options. For example, you may have a savings account that requires no minimum balance but has a lower interest rate. Similarly, you may have a checking account that limits the number of checks you may write....

  • $30,000 QUESTION 3 Imagine you live in a society with progressive taxation. Your friend makes half...

    $30,000 QUESTION 3 Imagine you live in a society with progressive taxation. Your friend makes half of your salary and pays 20 percent in income taxes. Which rate most likely would be your income tax rate? (5 points) 2 percent 10 percent 20 percent 40 percent QUESTION 4 02_08_g4_q1.png Look at the bar graph. What kind of tax is depicted here? (5 points) Flat Proportional Progressive Regressive QUESTION 5 Which of these is an example of indirect tax? (5 points)...

  • Introduction Extend the inheritance hierarchy from the previous project by changing the classes to template classes....

    Introduction Extend the inheritance hierarchy from the previous project by changing the classes to template classes. Do not worry about rounding in classes that are instantiated as integer classes, you may just use the default rounding. You will add an additional data member, method, and bank account type that inherits SavingsAc-count ("CD", or certicate of deposit). Deliverables A driver program (driver.cpp) An implementation of Account class (account.h) An implementation of SavingsAccount (savingsaccount.h) An implementation of CheckingAccount (checkingaccount.h) An implementation of...

  • Bradford Consultants (BC) is a professional services firm that provides consulting services to improve business processes....

    Bradford Consultants (BC) is a professional services firm that provides consulting services to improve business processes. Many of BC services fall under the areas of organizational design, work-flow analysis, efficiency improvement, and leveraging technology to improve business outcome effectiveness. Founded over 40 years ago , BC, is similar to other firms of this type (e.g., law or accounting firms) in that the same people who sell the services are also those that do the work. As in a large law...

  • Scott Rock Consultants (SRC) is a professional services firm that provides consulting services to improve business...

    Scott Rock Consultants (SRC) is a professional services firm that provides consulting services to improve business processes. Many of SRC services fall under the areas of organizational design, work-flow analysis, efficiency improvement, and leveraging technology to improve business outcome effectiveness. Founded over 40 years ago by Wes Scott and Eli Rock, SRC, is similar to other firms of this type (e.g., law or accounting firms) in that the same people who sell the services are also those that do the...

  • 23. What is the total net amount of capital gain reported on Form 1040? OA. $308...

    23. What is the total net amount of capital gain reported on Form 1040? OA. $308 OB. $2,411 C. $2,719 OD. $2,900 Advanced Scenario 7: Mark and Barbara Matthews Directions Using the tax software, complete the tax return, including Form 1040 and all appropri- ate forms, schedules, or worksheets. Answer the questions following the scenario. Note: When entering Social Security numbers (SSNs) or Employer Identification Numbers (EINS), replace the Xs as directed, or with any four digits of your choice....

  • Super stuck on a couple of questions on this scenario. Advanced Scenario 7: Mark and Barbara...

    Super stuck on a couple of questions on this scenario. Advanced Scenario 7: Mark and Barbara Matthews Directions Using the tax software, complete the tax retum, including Form 1040 and all appropri- ate forms, schedules, or worksheets. Answer the questions following the scenario. Note: When entering Social Security numbers (SSNS) or Employer identification Numbers (EINS), replace the Xs as directed, or with any four digits of your choice. Interview Notes • Mark and Barbara are married and want to file...

  • QUESTIONS 1. Complete the 1992 columns of Tables 3 through 6, disregarding for now the projected...

    QUESTIONS 1. Complete the 1992 columns of Tables 3 through 6, disregarding for now the projected data in the 1993 and 1994 columns. If you are using the spreadsheet model, use it to complete the tables. Be sure you understand all the numbers, as it would be most embarrassing and harmful to your career) if you were asked how you got a particular number and you could not give a meaningful response. 2. Based on the information in the case...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT