Guest User

Untitled

a guest
Jul 20th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. Problem Statement:
  2. Sample files of city, state, zip code and other information were broken down into
  3. several smaller files for emailing. These are stored in several sequentially numbered
  4. binary files within Lab3Data.zip that you can download from MyCourses. Your job is
  5. to write a program that reads as many files as exist. As you read each record load
  6. only the city names into an ArrayList, and write a subset of what you read in into
  7. another file containing only a few fields from the record. Input and output file details
  8. are given below.
  9. You are writing this program to show the feasibility of the processing above, which
  10. will be done on a much larger scale with world wide city, state and postal codes. For
  11. speed, you are to create one thread per file being read. For example: the filenames
  12. are in the format Lab3FileN.dat, where N starts with 1. So for the first file you create
  13. a thread object that reads in Lab3File1.dat, file number 2 a thread is created to
  14. process Lab3File2.dat, and so on until your program discovers that some file does
  15. not exist.
  16. Once the files are all read in, the ArrayList is created, and the output file
  17. ZipCityState.dat is created, write out how many cities were stored in the ArrayList,
  18. and how many records were written to the new binary file.
Add Comment
Please, Sign In to add comment