Re: homework assignment

Good day guys I am new here hoping to get extra help, I received this assignment for class and i was wondering if someone could elp me write it.


Write your question here. 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.0d.Sample output is:* THE MCC BANK STATEMENT *----------------------------------------------------------Opening Balance = 324.56---------------------------------------------------------- New BalanceDeposit= 420.32 744.88Withdrawal= 3.54 741.34 Withdrawal= 87.56 653.78----------------------------------------------------------Closing Balance = 653.78----------------------------------------------------------There are 3 transactions in this statement.e. 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. 2. Save the program as lab5acct.cpp . 3. Create an input file called lab5chek.dat a.Have your program read the input from the file and process the data until end of file.
4.Write the output to an output file, call it lab5acct.rpt i. The input data file is as follows:1224.56420.32-3.54 -87.56 500.00-87.25225.75-72.72-33.67 -100.1050.50-99.99-19.990.05. For your drive and folder path levels, use double backslashes between the levels. For example:a.For your input file path, you could use a path such as:"E:\\CSC133-01\\CSC133LabAssignments\\Lab05acct\\lab5chek.dat"b.For the output file path, you could use a path such as:"E:\\CSC133-01\\CSC133LabAssignments\\Lab05acct\\lab5acct.rpt"D. Test Data: Calculate what the ending balance and total number of transactions should be before you execute the program.E. For this program, hand in:1. A copy of the source code2. A print out of the input file3. A print out of the output file

We are all here to help, but you need to start with something. We won't write the code for you.

So how do you think you can do this problem? can you get started with any code? Work on it until you get stuck for 30 minutes and then post your question, along with whatever code you have.
Topic archived. No new replies allowed.