Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
Bank Statement program which reads a series of bank transactions from a file named TRANSACTIONS.txt and generates a statement report to the screen...
Bank Statement
program which reads a series of bank transactions from a file named TRANSACTIONS.txt and generates a statement report to the screen and also generates a WARNINGS.txt file. If you elect to use a log file name it P4.log
Global constants variables are not allowed. Variables may be declared in main() but use of parameters is expected. Values should be declared as locally as possible to promote function reuse in other programs.
.
You may use other functions as desired. You should determine the parameters (if any) and whether each function is void or value returning function. There are many acceptable program designs and you may design appropriate processing based on the function names provided. You may also use items from the StringTools library provided.
DetermineAccountType()DetermineTransactionType()CalculateServiceCharge()IsWarningFlaggedTransaction()ProcessCheck()ProcessDebitCard()ProcessDeposit()ProcessWithdrawl()ProcessOverdraft() amount &balanceIncreaseAmount )The TRANSACTIONS.txt file has the following format
Line 1 contains the 7 digit account number, a space, the account type code, a space and the beginning balance.
Line 2 and beyond contain a transaction number (up to 12 digits long), a space, a transaction type code, a space, a check number, a space, a transaction amount, a space, date in the form MM-DD-YYYY, a space and the payee
The number of lines in the file may vary from a minimum of 1 to an unknown maximum. You will not know how many items are in the file and should read all items until the end of file is reached.
Account minimum maximum Service WarningType Code Type balance transactions Charge Amount. Standard Personal . . Standard Business .Each account is charged a monthly service charge according to the account type.
Accounts which exceed the max transactions for the statement period will be charged an Excess Transaction fee of three times the service charge.
Transaction types are as follows:
1 Check
2 Debit Card
3 Deposit
4 Withdrawl
5 Transfer Out
6 Transfer In
Any and every negative balance following a transaction will result in an Overdraft fee of $18.00
Certain transactions must be flagged for review to prevent money laundering. Any withdrawl or check with a payee of "CASH" in excess of the Warning Amount must be written to the WARNING file.
WARNING FILE FORMAT:
date, transaction number, account number, amount with each value in a field 15 characters wide
The WARNININGS.txt file should always be written from the main() function.
Statement Format displayed on the screen should resemble the following:
Statement for Account #xxxxxxxStandard Personal Account Date Reference Type Amount Payee Balance-------------- 101.32 101.323343 Check 110.00 Triceratops Fashions -8.68 18.00 -26.6810-27-2017 Deposit 128.00 Cash 101.32 1001.32200.00 Bedrock Furniture 801.3221.12 Bedrock Bowling 780.20300.00 Slate Rock & Gravel 1080.20 980.2030.00 Cash 950.20 10.00 940.200.00 940.20 Count TotalBalance Increase 3 1328.00Balance Decrease 7 489.12