Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Rather than publish all 50,000 plus compromised records here, I culled a subset of them to examine in pii.dat. Create an structure to hold the
Rather than publish all 50,000 plus compromised records here, I culled a subset of them to examine in pii.dat.
- Create an structure to hold the 10 items of each record and initialize each member to the null string "". It is advisable, since this is a template and not a variable, to make the structure declaration global.
- Ask the user to input the name of the data file to process and open it.
- Read the number of records, n, then create an array of n structures to hold the data from the records.
- Read or skip over the column headers. We will not be using them in this assignment.
- Read the remaining records into the array of structures.
- Close the input file stream.
- Display ALL of the records showing only the following data items in the format shown. Notice we are using only 4 of the 10 fields.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started