0% found this document useful (0 votes)
332 views1 page

DotNet-Experienced-V1 0 0

Rahul has credit card statements from multiple banks in different formats and needs help standardizing them into a single format, so the problem statement asks developers to write a function that takes a credit card statement file as input, standardizes the date, amount, and other fields into a consistent format, and outputs the standardized statement to a new CSV file while following specific naming and formatting conventions provided. Test case input files and an example of the standard output format are provided to help developers code the solution within 24 hours in C# or Java.

Uploaded by

Shubham ranjan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
332 views1 page

DotNet-Experienced-V1 0 0

Rahul has credit card statements from multiple banks in different formats and needs help standardizing them into a single format, so the problem statement asks developers to write a function that takes a credit card statement file as input, standardizes the date, amount, and other fields into a consistent format, and outputs the standardized statement to a new CSV file while following specific naming and formatting conventions provided. Test case input files and an example of the standard output format are provided to help developers code the solution within 24 hours in C# or Java.

Uploaded by

Shubham ranjan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Problem Statement

Rahul has multiple credit cards of different banks and each of these banks generate
card statements in different formats. In order to analyse his statements, Rahul needs
our help to standardize them in single format. To help Rahul, we need to write a code
that can normalize any statement in a standard format. Take reasonable assumptions
and make the code as generic as possible. Look at all input files and standard output
file before starting to code. You have 24 hours to submit the code.
You can write code in any of the following languages:

• C#
• Java

Function signature to be implemented:-


- StandardizeStatement( inputFile, outputFile)

Following key points need to be considered:-


• Convert Date to DateTime format before printing in standard CSV and account for DD-
MM-YYYY, MM-DD-YYYY and DD-MM-YY format
• Convert the Amount to Double
• A single Input file should be taken at a time as a parameter and output file should be
generated for the same. (Input/Output files should not be merged)
• While submitting the code, please attach all the four output files
• Output file name should be as per input file name. (Example of Input and output file
name convention is given below for reference)
example-
InputFile : HDFC-Input-Case1.csv
OutputFile : HDFC-Output-Case1.csv
Attached are 4 input test case files and the Standard Format CSV. Feel free to reach us
in case you have any doubts.

All the Best!!

You might also like