Question: Write a program that generates a text file with 100 randomly generated phone book entries The program will read from a list of firstnames a

 Write a program that generates a text file with 100 randomly

Write a program that generates a text file with 100 randomly generated phone book entries The program will read from a list of firstnames a list of last names, and a list of US area codes to use for generating the phone book. The shone book will be saved to a text file named phoneBook txt Each entry in the list will take up one line with the form: Lastname:Firstname:phoneNumber email printa semi-colon between each entry with no spaces, the phone number is 10 digits with no characters. The first 3 disits will be randomly used from the area code.txt list the email the first initial of the first name the nest 5 letters of the fastnamos a randomly selected email providencom

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!