Question: Name your file lab 1 assignment.cpp . Failure to name the file correctly may lead to a grade of zero. 2 . The data file

Name your file lab1assignment.cpp. Failure to name the file correctly may lead to a grade of zero.
2. The data file used in the example is available at: ~dmk0080/public/1040/labs/one.
or in the Cavans assignment. Use the file named "transactiondata"
3. Use command line redirection to execute as in ./a.out transactiondata
4. to compile use g++ labassignment1.cpp to create the executable file a.out
The data:
1. Each line of th named "transactione data file begins with an 'e','c', or 't'.
2. Lines beginning with 'e' will have an integer employee ID and an employee name.
3. Lines beginning with 'c' will have an integer customer ID, customer name, and a floating point account balance.
4. Lines beginning with a 't' will have a customer ID, employee ID, a 'w' or 'd' representing withdrawal or deposit,
and a floating point transaction amount.
5. Lines beginning with an 'e' and 'c' may be intermingled, but all 'e' and 'c' lines will come before lines beginning
with 't'.
6. There will be at most 50 employees and 50 customers, and an unknown number of transactions. Names will be at
most 15 characters long.
Name your file lab 1 assignment.cpp . Failure to

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 Programming Questions!