Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the programming language java Write a program that generates a text file with 100 randomly generated phone book entries. The program will read from

image text in transcribed
Using the programming language java
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 phone 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; print a semi-colon between each entry with no spaces. the phone number is 10 digits with no characters. The first 3 digits will be randomly used from the areaCode.txt list. The email is the first initial of the first name + the first 5 letters of the lastname + a randomly selected email provider.com

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

Strategic Database Technology Management For The Year 2000

Authors: Alan Simon

1st Edition

155860264X, 978-1558602649

More Books

Students also viewed these Databases questions

Question

What type of expense is the purchase of propane?

Answered: 1 week ago