Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program that prints the opening balance of a checking account followed by the closing balance of the checking account. a. The input

Write a C++ program that prints the opening balance of a checking account followed by the closing balance of the checking account. a. The input data file contains the opening balance as the first data value, followed by an unknown number of individual transactions. b. A negative number represents a withdrawal, and a positive number represents a deposit. c. For example, if the input is:

324.56 420.32 -3.54 -87.56 0.0

Sample output is:

* THE MCC BANK STATEMENT * ----------------------------------------------------------

Opening Balance = 324.56

----------------------------------------------------------

New Balance

Deposit = 420.32 744.88

Withdrawal = 3.54 741.34

Withdrawal = 87.56 653.78

----------------------------------------------------------

Closing Balance = 653.78

----------------------------------------------------------

There are 3 transactions in this statement .

The last line of the output containing total number of transactions has to be counted from with the program to determine the total number of transactions in the statement. i. The input data file is as follows:

1224.56

420.32

-3.54

-87.56

500.00

-87.25

225.75

-72.72

-33.67

-100.10

50.50

-99.99

-19.99

0.0

D. Test Data: Calculate what the ending balance and total number of transactions should be before you execute the program.

in the form of input and output files please.

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_2

Step: 3

blur-text-image_3

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

Database Processing

Authors: David Kroenke

11th Edition

0132302675, 9780132302678

More Books

Students also viewed these Databases questions

Question

3. What might you have done differently

Answered: 1 week ago

Question

4. Did you rethink your decision?

Answered: 1 week ago

Question

3. Did you seek anyones advice?

Answered: 1 week ago