Question: Write a program using C++ that will read in a data file to show the number of transactions made at a grocery store and the

Write a program using C++ that will read in a data file to show the number of transactions made at a grocery store and the items purchased by each customer

The data file name is: market.data

The data file should have Transaction ID, # of items and items

Example:

5 // number of transactions

1, 3, gum,bread,fish // Transaction ID, # of items, items

2, 2, gum bread

3, 1, juice

4, 4, orange, fish, gum, juice

5, 2, orange, fish

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!