Question: https: / / www . hackerrank.com / test / b 6 cens 9 fk 3 d / questions / 8 7 f 1 DSE FIFO
https:wwwhackerrank.comtestbcensfkdquestionsf
DSE FIFO Tax Calculator
Overview
Accounting systems do a lot of things, however one of their pri goals is to calculate profits for the purpose of taxes.
In this exercise you will build a basic accounting system which take a set of trades and calculate the tax owed for the year
Input and Output Specification
Your code should include a function which takes an ordered arr trade strings and returns the correct tax amount as a string in accounting notation.
Each trade is represented by a string with the following format:
Date YYYYMMDD
Ticker Symbol
Buy B Sell S indicator
Quantity
Price
Example list of trade strings:
AAPL,
AAPL,
AAPL,
AAPL,
AAPL,
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
