Background

This assignment will test your knowledge of

  • Objects
  • Input and Output Streams
  • Files
  • Graphical user interface

Specification

Design and implement a class called Building Society that manages user accounts using an appropriate graphical user interface in Swing. Each instance of the BuildingSociety class will have a name and a maximum number of accounts that it can handle.

The BuildingSociety class should have the following methods:

  • openAccount ( allow a user to open a new Credit Union account)
  • closeAccount (allow an account holder to close an account on condition that the balance is currently zero)
  • makeLodgement ( allow an account holder to lodge money)
  • makeWithdrawal (allow an account holder to withdraw money from their account)
  • requestOverdraft (allow an account holder to request a new overdraft limit).

Each BuildingSociety Account should have a number, a name, a current balance and an overdraft limit. The methods for each account are:

  • lodgement ( make a lodgement)
  • withdrawal (remove a sum of money from the account on condition that there are sufficient funds available to meet the request)
  • balance (check current balance)
  • overdraftLimit ( check current overdraft limit)
  • setNewOverdraft ( set the overdraft limit to some given value).
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.