Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started