subject

A local bank in your town needs a program to calculate a customer’s checking account balance at the end of each month. If the number of transactions is more
than 5, the bank charges a fee of $0.35.
• If the balance falls below 1000.00, there is a service fee of $25.00
• Data are stored in a file (transactions. txt) in the following form:
467343 3750.40 // Account Number | Initial Balance
W 250.00 // Transaction Code W: withdrawal | Amount
D 1200 // Transaction Code D: Deposit | Amount
W 1275.00 // Transaction Code: withdrawal | Amount
I 120.74 // I: Interest earned |Amount
D 1550 // D: Deposit | Amount
W 155.00 // W: withdrawal | Amount
W 240.50 // Transaction Code W: withdrawal | Amount
D 150.75 // Transaction Code D: Deposit | Amount
W 15.00 // Transaction Code: withdrawal | Amount
D 350.75 // Transaction Code D: Deposit | Amount
W 150.00 // Transaction Code: withdrawal | Amount
I 35.74 // I: Interest earned |Amount
W 1500.50 // Transaction Code W: withdrawal | Amount
Deliverable:
• Write a C++ program that reads the Data from the stored in a file
• Program prints the following information:
• Account number
• Balance at the beginning of the month
• Balance at the end of the month
• Total Interest paid by the bank
• Total amount of deposit
• Number of deposits
• Total amount of withdrawal
• Number of withdrawals
• Service charges (if below $1,000, $0.35 per transactions after 8
transactions) if any
• Please ensure that you format the output accordingly, currency, etc.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:20
1)consider the following code snippet: #ifndef book_h#define book_hconst double max_cost = 1000.0; class book{public: book(); book(double new_cost); void set_cost(double new_cost); double get_cost() const; private: double cost; }; double calculate_terms(book bk); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_cost should be removed since header files should not contain constants.c)the definition of book should be removed since header files should not contain class definitions.d)the body of the calculate_terms function should be added to the header file.
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
When using a public computer or network, you should always
Answers: 2
question
Computers and Technology, 22.06.2019 22:40
In this lab, you complete a python program that calculates an employee's annual bonus. input is an employee's first name, last name, salary, and numeric performance rating. if the rating is 1, 2, or 3, the bonus rate used is .25, .15, or .1 respectively. if the rating is 4 or higher, the rate is 0. the employee bonus is calculated by multiplying the bonus rate by the annual salary.
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
The ieee 802.11: defines standards for wireless local area network (wlan) communication protocols. identifies various computers or devices connected to a network. verifies any resource attached to another computer on a network that is different from the computer to which the user is logged on. connects multiple local area networks (lans) and wide area networks (wans).
Answers: 2
You know the right answer?
A local bank in your town needs a program to calculate a customer’s checking account balance at th...
Questions
Questions on the website: 13722363