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 eg CSV or JSON for extra credit
Each file should contain unique transactions with consistent customer IDs, transaction date, business name determined by the file source item name, and transaction amount.
Business sources:
file playForfun
file goSport
file shopAround
Ensure no more than 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 eg list list list
Merge the arrays into a sorted list based on the merge aspect of merge sort. list is sorted based on the name of customer id
Output Requirements:
Display and write list 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 classstruct 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 rows. You may add other information to input files as needed:
filetxt from playForfun
Board Game,
Action Figure,
Puzzle,
filetxt from goSport
Basketball,
Tennis Racket,
Soccer Ball,
filetxt from shopAround
Headphones,
Laptop Case,
USB Cable,
Sample outputs:
Sample Merged Output list
playForfun,Board Game,
goSport,Basketball,
playForfun,Action Figure,
shopAround,Headphones,
playForfun,Puzzle,
goSport,Tennis Racket,
shopAround,Laptop Case,
goSport,Soccer Ball,
shopAround,USB Cable,
Sample Summary Output customerSummary
Customer ID:
playForfun: Board Game, $
goSport: Basketball, $
Total owed: $
Number of transactions:
Customer ID:
playForfun: Action Figure, $
shopAround: Headphones, $
Total owed: $
Number of transactions:
Customer ID:
playForfun: Puzzle, $
goSport: Tennis Racket, $
shopAround: Laptop Case, $
Total owed: $
Number of transactions:
Sample Business Summary Output BusSummary
Business Name: playForfun
Total money owed: $
Number of transactions:
Business Name: goSport
Total money owed: $
Number of transactions:
Business Name: shopAround
Total money owed: $
Number of transactions:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
