1. Create a class with private fields.

  • int _accountNumber; - The bank has a policy that account numbers cannot be changed once they are assigned.
  • string _bankName; - The bank Name should be able to be changed.
  • string _ownerFirstName; The owner's name cannot be changed once created.
  • string _ownerLastName; The owner's name cannot be changed once created.
  • string _ownerSocialSecurityNumber; The owner's SS# cannot be changed once created.
  • decimal _balance; The balance will only be accessible through methods

2. Create a constructor to initialize the fields.

3. Create properties that provide access to the following fields. Note whether the field can be changed or not.

  • _accountNumber
  • _bankName
  • _ownerFirstName;
  • _ownerLastName;
  • _ownerSocialSecurityNumber

4. Access to the balance is to be provided by three methods.

  • void Deposit(decimal amount); - Do not allow a negative amount to be deposited.
  • void Withdraw(decimal amount); - Do not allow a negative amount to be withdrawn. Do not allow users to overdraw the account.
  • decimal GetCurrentBalance();

5. Create a Windows Form app with a UI to create a new Account.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.