Question: Reading a Prize File. ( 2 0 pts ) The program must read from a Prize File and using that information it must populate a
Reading a Prize File. pts
The program must read from a Prize File and using that information it must populate a data structure of prizes.
Each prize in the file has a name and price separated by and end line
Each prizes name and price are separated by a tab t
The Prize File format is:
t
t
The program should ignore items that do not strictly follow the previously stated format. HINT Theres at least one item in the file that is not formatted correctly
Example Prize File
You may either assume the Prize File is constant or you may ask the user to enter a prize filename.
You do not need to create the file yourself, and you may use the provided example file.
All the above must apply for full credit.
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
