Question: Objective: Write a program in C + + that consolidates billing information from three businesses and outputs detailed reports. Requirements: Data Input ( see sample

Objective: Write a program in C++ that consolidates billing information from three businesses and outputs detailed reports.
Requirements:
Data Input (see sample input files below the assignment description):
Read billing data from three external files (e.g., CSV or JSON for extra credit).
Each file should contain 10-15 unique transactions with consistent customer IDs, transaction date, business name (determined by the file source), item name, and transaction amount.
Business sources:
file1 playForfun
file2 goSport
file3 shopAround
Ensure no more than 2 transactions per customer in any one file, but customers may appear in multiple files.
Data Structures:
Store data in arrays of structs or class objects (e.g., list1, list2, list3).
Merge the arrays into a sorted list4 based on the merge aspect of merge sort. list4 is sorted based on the name of customer id.
Output Requirements:
Display and write list4 to an external file named after your last name.
Create a customer summary report showing:
Customer ID, business name, items bought, total amount owed, and transaction count.
Output to customerSummary file and screen.
Create a business summary report showing:
Total money owed and transaction count for each business.
Output to BusSummary file and screen.
Modular Design:
Use specialized functions and a header file.
Store class/struct definitions in a header or separate file.
Code should be organized with functions performing single operations.
Validate that total owed by customers equals total payment to businesses.
Additional Requirements:
Include screenshots and proper labeling..
Overall code quality.
sample inputs (Each input file must contain 10-15 rows. You may add other information to input files as needed):
file1.txt (from playForfun)
1001,2024-10-15,Board Game,49.99
1002,2024-10-16,Action Figure,19.99
1003,2024-10-17,Puzzle,12.50
file2.txt (from goSport)
1001,2024-10-15,Basketball,29.99
1003,2024-10-16,Tennis Racket,89.99
1004,2024-10-18,Soccer Ball,24.99
file3.txt (from shopAround)
1002,2024-10-17,Headphones,59.99
1003,2024-10-19,Laptop Case,34.99
1004,2024-10-20,USB Cable,9.99
Sample outputs:
Sample Merged Output (list4)
1001,playForfun,2024-10-15,Board Game,49.99
1001,goSport,2024-10-15,Basketball,29.99
1002,playForfun,2024-10-16,Action Figure,19.99
1002,shopAround,2024-10-17,Headphones,59.99
1003,playForfun,2024-10-17,Puzzle,12.50
1003,goSport,2024-10-16,Tennis Racket,89.99
1003,shopAround,2024-10-19,Laptop Case,34.99
1004,goSport,2024-10-18,Soccer Ball,24.99
1004,shopAround,2024-10-20,USB Cable,9.99
Sample Summary Output (customerSummary)
Customer ID: 1001
- playForfun: Board Game, $49.99
- goSport: Basketball, $29.99
Total owed: $79.98
Number of transactions: 2
Customer ID: 1002
- playForfun: Action Figure, $19.99
- shopAround: Headphones, $59.99
Total owed: $79.98
Number of transactions: 2
Customer ID: 1003
- playForfun: Puzzle, $12.50
- goSport: Tennis Racket, $89.99
- shopAround: Laptop Case, $34.99
Total owed: $137.48
Number of transactions: 3
Sample Business Summary Output (BusSummary)
Business Name: playForfun
- Total money owed: $82.48
- Number of transactions: 3
Business Name: goSport
- Total money owed: $144.97
- Number of transactions: 3
Business Name: shopAround
- Total money owed: $104.97
- Number of transactions: 3

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!