Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the Currency Solutions Test Pack.

Your test pack will include:
* This readme file
* The bank statement file (statement.csv)
* The skeleton class (Bootstrap.php)


Objective:
We want to parse the bank statement to deduce the total value of payments made on 6 March 2011 for
each currency.  All lines of the bank statement that represent a payment will contain a payment 
reference in one of it's narratives.  A payment reference is guaranteed to be the letters "PAY" 
then 6 digits and then two more letters (e.g. PAY000001YB).  The currencies that we deal with for 
the purpose of this exercise are GBP, EUR, USD and CAD. 
If there is another currency in a bank statement, it also should be in the oputput.


Sample Output:

Totals
GBP 3,432.21
USD 14,432.34
EUR 43,543.23
CAD 2,321.34


Instructions:
* Complete the skeleton class so that running "php Bootstrap.php statement.csv" on the commandline 
  will parse the bank statement file and output the sample output above.
* You may add additional classes to complete the task.
* Please return the completed test pack including any additional files as a single zip archive.
* This test should not take longer than 30 minutes.
* Please use the OOP paradigm

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages