Question: Java 8 You are given a list of all the transactions on a bank account during the year 2 0 2 0 . The account
Java
You are given a list of all the transactions on a bank account during the year The account was empty at the beginning of the year the balance was
Each transaction specifies the amount and the date it was executed. If the amount is negative less than then it was a card payment, otherwise it was an incoming transfer amount at least The date of each transaction is in YYYMMDD format: for example, represents th May
Additionally, there is a fee for having a card omitted in the given transaction list which is per month. This fee is deducted from the account balance at the end of each month unless there were at least three payments made by card for a total cost of at least within that month.
Your task is to compute the final balance of the account at the end of the year
Write a function:
class Solution public int solutionint A String D :
that, given an array of integers representing transaction amounts and an array of strings representing transaction dates, returns the final balance of the account at the end of the year Transaction number for within the range N was executed on the date represented by DK for amount
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
