Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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++
image text in transcribed
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

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

How Do I Use A Database Research Tools You Can Use

Authors: Laura La Bella

1st Edition

1622753763, 978-1622753765

More Books

Students also viewed these Databases questions

Question

Discuss the challenge faced by people analytics.

Answered: 1 week ago

Question

=+derived from the assignment will balance the costs?

Answered: 1 week ago

Question

=+6 Who is the peer of the IA ?

Answered: 1 week ago