Skip to content

Transactions Manager is a Java-based project that simulates banking transactions for checking and credit accounts. It allows the creation of accounts, deposits, and withdrawals, and tracks the balance or credit of each account after applying transactions.

Notifications You must be signed in to change notification settings

AniketCS/TransactionsManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transactions-Management-App

Transactions Manager is a Java-based project that simulates banking transactions for checking and credit accounts. It allows the creation of accounts, deposits, and withdrawals, and tracks the balance or credit of each account after applying transactions.
The program will read the account information from Accounts.txt, apply transactions from Transactions.txt, and display the final balances of specific accounts. Project Structure

Getting Started

To start the project, make sure you have Java Development Kit (JDK) 8 or later installed on your system. The project includes sample data files (Accounts.txt and Transactions.txt) for your convenience. The data in these files can be updated with actual data you want to test on. Simply compile and run the Main.java class to start the simulation.

The project is organized into different folders:

-Constants: Contains Java enumerations for account types (AccountType) and transaction types (Transaction).

-Data: Contains the text files Accounts.txt and Transactions.txt, which hold the initial account information and transactions, respectively.

-Pojo: Contains the Plain Old Java Objects (POJOs) representing the account classes (Account, Checking, Credit).

-Repository: Contains the AccountRepository class, which provides an in-memory repository for storing and managing account objects.

-Service: Contains the service classes CheckingService and CreditService, which implement the AccountService interface to provide account-related operations.

Adding New Accounts and Transactions

To add new accounts, modify the Accounts.txt file by following the format: ACCOUNT_TYPE ACCOUNT_ID BALANCE_OR_CREDIT.

To add new transactions, modify the Transactions.txt file by following the format: ACCOUNT_TYPE ACCOUNT_ID TRANSACTION_TYPE AMOUNT.

About

Transactions Manager is a Java-based project that simulates banking transactions for checking and credit accounts. It allows the creation of accounts, deposits, and withdrawals, and tracks the balance or credit of each account after applying transactions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages