Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE M. FILE An engineering company has run into financial difficulty on a project. You have been hired to audit the companys books and determine

USE M. FILE

An engineering company has run into financial difficulty on a project. You have been hired to audit the companys books and determine the current financial standing of the company. Your audit team has gathered the following information: Checking account balance: $ 5,462.32 Savings account balance: $ 3,518.65 Pending transactions on the checking account: -2720.37, -2771.57, 701.99, 895.32, -4389.12, -1254.92, -1006.36, -1458.32, 699.32, 456.81, 1800.59, 512.22, 6052.96, -1898.00, -1942.36, 602.96, -417.00, -1342.86 (Negative values indicate withdrawal and positive values indicate deposit). After each transaction, if the checking balance falls below zero the bank assesses a fee of $100, and then offsets the total deficit by automatically subtracting from the savings account. If the savings balance is insufficient to offset the total checking deficit, then a partial offset is made up to the amount available in the savings account, and the checking account goes into overdraft and is assessed a fee of $350 for each transaction that causes overdraft. The savings account never goes into overdraft. All overdraft fees are charged to the checking account. A deposit that is unable to eliminate a pre-existing negative balance does not attract any fee. A withdrawal resulting in a negative balance or increases a pre-existing negative balance will attract the applicable fee. a. Set up a script (.m) file to apply the pending transactions, and correctly assess the applicable low balance fees, where applicable. After the final transaction you should have the final updated account balances in both accounts. (20 points) b. In your code, create a matrix that stores in separate columns, the transaction amount, the checking balance, and the savings balance. [Hint: you may use a table] (10 points) c. Add two variables that track the number of times each overdraft fee is charged, and reports this information back to the user at the end of the program. (5 points) d. Run your script file to identify and correct any glitches. (5 points) e. Plot the graphs listed. You may plot the graphs on one figure using different colors or linetypes; or you may use the subplot method. Label the axes and give each graph a title, or use a legend to distinguish each graph. checking balances versus the transaction number (5 points) savings balance versus the transaction number (5 points) f. Provide comments in your Matlab code that would enable an independent non-specialist third party to follow along with what your program is attempting to achieve. (5 points)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions