Professional Documents
Culture Documents
Create a simple banking system to manage customer accounts using a linked list data structure in
Java. The system should allow bank employees to perform operations such as opening accounts,
closing accounts, and displaying all account details. Implement the required functionality using a
linked list.
1. Account Class: Define a Java class named Account to represent a bank account. Each
account should have attributes such as an account number (accountNumber), an account
holder's name (holderName), a balance (balance), and an account status (status),
indicating whether the account is open or closed. Include appropriate constructors and
methods to access and modify account attributes.
2. AccountLinkedList Class: Create a Java class named AccountLinkedList to encapsulate
the functionality of the banking system using a linked list. Implement methods to open
accounts(openAccount), close accounts by their account number
(closeAccountByNumber), display all account details (displayAccounts), and any other
helper methods you deem necessary.
3. User Interface: Develop a simple console-based user interface to interact with the
AccountLinkedList class. Bank employees should be able to open accounts, close
accounts, and display all account details through a menu-driven interface.
4. Main Program: Write a main program that demonstrates the functionality of the
AccountLinkedList class. It should allow bank employees to continuously interact with
the banking system until they choose to exit.
Your implementation should handle scenarios such as opening accounts with duplicate account
numbers, closing accounts that do not exist, displaying an empty list of accounts, and gracefully
handling user input errors.
Ensure to write clean and well-documented code, including comments where necessary to explain
the functionality of each component.
Example Output:
Evaluation:
Correct implementation of requirements: 85%
• Correct data structure algorithm
• Correct Java implementation of methods
• Correct running time if required
Total 100%
You must name your IntelliJ project according to the following rule:
YourFullname_COMP254LabTest1.
Example: JohnSmith_COMP254_009LabTest1
Submission rules:
Submit your modules as zip files that are named according to the following rule:
YourFullname_ COMP254_009LabTest1.zip