Question: For c++ CSIT 575-Programming Fundamentals for Computer Science Lab #sp Obiectives To learn to code, compile and run a program using file input and an

For c++
 For c++ CSIT 575-Programming Fundamentals for Computer Science Lab #sp Obiectives

CSIT 575-Programming Fundamentals for Computer Science Lab #sp Obiectives To learn to code, compile and run a program using file input and an output file. Assignment Plan and code a program utilizing one file for input and one file for output to solve the following problem: Write a complete program to calculate the total amount of expenses and total amount of income for Heathcliff Advertising. All data will be input from a file (see below). Accumulate the total amount of expenses and the total amount of income. Label and output all data (item number, letter code 'indicating whether the amount is an expense item or an income item, and the expense or income amount, total amount of expenses, and the total amount of income) to an output file. If any data record contains an error, output the data to an error file with a message indicating what caused the error Input put data from a file. Create the data file below using your text editor or Notepad. One record of data contains the following sequence of data: 9874 E 5.50 2365 I 95.00 8245 1 15.75 Where 9874 Item number Expense Income 5.50 Expense or income amount Data File 987 E 5.50 236 1 95.00 824 15.75 419 E 275.95 013 E 129.43 238 I 12.31 101 100.10 879 E 52.45 444 R 9.90 654 I 23.45 Output Output and label all input and calculated data (item number, letter code indicating whether the amount is an expense item or an income item, and the expense or income amount, total amount of expenses, and the total amount of income) to an output file. Output valid data to one file and errors to an error file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!