Question: . . Write a program that will: Read from a file a list of names. Put those names in a list Create a second list

 . . Write a program that will: Read from a file
a list of names. Put those names in a list Create a
second list that is indexed concurrently with the first list and is

. . Write a program that will: Read from a file a list of names. Put those names in a list Create a second list that is indexed concurrently with the first list and is initialized with all 1's. These 1's represent a count of each name. Iterate through the list of names and remove any name that is a duplicate. As you remove the duplicated name you should also remove it count associated with the name in the second list and increment the count associated with the first occurrence of the duplicated name The final version should be 2 lists, one in which the first list has a set of unique names and a second list that is the same length as the first and each vale in that list represents how many times each name showed in the first list. Example Files Needed :: Juan, Marcus, Dexter, Jeff, Celeste, Jeff, Namedata.txt Mark, Andrew, Dexter, Dexter, Mark, Andrew, Name Count.py Dexter, Celeste, Jeff, Jeff, Marcus, Celeste, Andrew, Marcus, Mark, Jeff, Mark, Andrew names Juan Marcus Dexter Jeff Celeste Mark Andrew final.names. counts 1 3 4 5 3 4 4 Finally write the code that would print a table with the first column labeled NAMES and the second column labeled COUNT. The NAMES column should be left justified and the Count column should be right justified with 2 tabs between the 2 columns 24 Juan Marcus Dexter Jeff Celeste Jeff Mark Andrew Dexter Dexter Mark Andrew Dexter Celeste Jeff Jeff Marcus Celeste Andrew Marcus Mark Jeff Mark Andrew Sample output NAMES Juan Marcus Dexter Jeff Celeste Mark Andrew COUNT 1 3 4 5 3 4 4

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!