DataGenerator reads from names.txt, and uses the names in that file to
JAVA FOR BEGINNERS
*****generate a
data file for use in the next
homework. The program to generate the data is DataGenerator.java.
DataGenerator reads from names.txt, and uses the names in that file to
make a data file with one person per line (or per record) and
pseudorandom data associated with each name. The program also reads from
area-codes.txt for a list of valid North American area codes for use in
the pseudorandom phone numbers.
Run the program, look at the output, try to understand the inputs, the
program, and the output, and submit two things:
(1) A screen shot of DataGenerator running.
(2) The file, db.txt, generated by DataGenerator.
It is okay if you need to change the location of the input or output
file, which would involve changing a line in main(). However, it would
be better to figure out where your IDE runs your program and place
names.txt there.