Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Brad Bulger, Jay Greenspan, David Wall

2nd Edition

ISBN: 0764549634, 9780764549632

More Books

Students also viewed these Databases questions

Question

Discuss the need to redesign the office spaces.

Answered: 1 week ago

Question

2. How can competencies be used in employee development?

Answered: 1 week ago