Question: Create a windows Form Application in C# Add a class library project: BankingLibary To the BankingLibary project add a class Account with private fields _accountNumber,
Create a windows Form Application in C#
Add a class library project: BankingLibary
To the BankingLibary project add a class Account with private fields _accountNumber, _currentBalance, _bankName. Add the constructor and properties
Add methods: Deposit(amount) and Withdraw(amount)
One adds the amount to the _currentBalance and the other removes the amount from the _currentBalance. Be careful not to remove if the account does not have enough money.
Add a static method, Transfer (fromAccount, toAccount, amount), that takes the amount from the fromAccount and adds it to the toAccount. Of course make sure that the fromAccount has sufficient funds.
Add a class CheckingAccount that inherits from Account. This class should have additional fields _minBalance and _fees (fees is a penalty amount to pay or taken out of the account if the _currentBalance drops below _minBalance or an attempt to withdraw an amount larger that the _currentBalance). Add any necessary constructor and properties.
Redefine methods if necessary. As stated, if the amount to withdraw causes the _currentBalance to drop below _min Balance,then you need to subtract the fees from the account. Likewise if the amount to withdraw is more than the _currentBalance, then reject the transaction and apply the fee.
Add a class SavingsAccount that inherits from Account. This class should have an additional fields _interestRate (expressed in percent, like 2.5 to mean 2.5 percent). This is the interest the savings account earns every year. Add constructor and any necessary properties.
Redefine methods if necessary. The savings has no fees and no min balance. However, if the customer tries to withdraw more than the account has, the transaction should be denied (ignored).
Now Build the library, making sure that it compiles without errors
In Form1 Create a List of Accounts (List
accounts.
Add GUI to display all the accounts in the accountsList (use the GetType().Name to display the name of the account as well)
Provide Gui to select an account by index, then be able to either deposit an amount to it or withdraw an amount from it. (need at least, a textbox for index, a textbox for amount, a button for deposit and a button for withdraw)
Provide Gui to transfer between 2 accounts (need index for the fromAccount and index for the toAccount and amount to transfer)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
