Skip to content

Java project for a smart banking feature to transfer funds from Savings to Current accounts to minimise overdraft fees

Notifications You must be signed in to change notification settings

anjiB72/smart-banking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Smart Banking Feature

This is a java programme that runs from the command line.

It takes a CSV (comma separated values) file of account transactions, and undertakes an automatic transfer of funds from a savings account to a current account if the current account has a negative balance at the end of the day.

It outputs a new file with the original transaction plus the new automated transactions.

Pre-requisites

  • Java version 11.0.05 installed

Assumptions

  • The Customer only has one current account and one savings account
  • The input file will always have the naming convention of 'customer-"customerid"-ledger.csv
  • The input file will always have a header row
  • The transactions in the file will be in date order, starting with earliest first
  • The System transfer occurs at the end of each day, where it is identified that the current account has gone into an overdraft
  • The system transactions posted will have the date of the above day and a time of 23:59:59
  • The output file is to a new file (not the original input file). The output file will be named 'New-customer-"customerid"-ledger.csv'

How to run the programme

  • Download the files as a ZIP file using the Green button above - save to a local directory on your computer. Skip this step if using aleady provided ZIP file
  • Extract files from the Zipped folder and navigate to the src folder
  • Open up a command line interface for your OS (such as Command Prompt on Windows)
  • Navigate to the src folder in your command line
  • To build the programme, in the command line, type 'javac *.java'.
  • Move the .csv ledger file that you want to use into the src folder
  • Type 'java SmartBanking name-of-ledgerfile.csv' into the command line
  • The output file will save to the src folder and should be visible in the folder to open and view the output

About

Java project for a smart banking feature to transfer funds from Savings to Current accounts to minimise overdraft fees

Resources

Stars

Watchers

Forks

Languages