Java Program on census

Anonymous
timer Asked: Mar 10th, 2016

Question description

Write a java program that will produce the output formatted as shown in the posted pdf "p3-results.pdf" (results for the run with 2000.txt). I have provided two data files to test with. The program will prompt user with a joption pane dialog box to enter the name of the file to run. Note that your name is to appear in the title bar, and there is no icon.

You are to read the file only one time when you run the program. Use File Reader/BufferedReader.

Do not use any error handling (no try/catch statements). Specifically, if an incorrect file name is entered the program should crash.

The records in each of the test files contain information other than the names. The only thing you are interested in is the names, so disregard everything else.

The layout and formatting of the output is to be exactly the same as the example provided including the dash lines at the top and bottom, and between the different sections of the report, as well as the headings.

The sections are:

1. File information (a) file name    (b) number of records

2. Frequency by letter order (a) sequential number for each item  (b) letter representing the first character    (c) count of names that begin with that letter    (d)   bar chart showing one '*' for each 500 occurrences.

3.  Frequency by count order (descending)  (a) sequential number for each item   (b) letter representing the first character of the name   (c) count of names that begin with that letter  (c) bar chart chowing one '*' for each 500 occurrences.

4. Frequency by name length   (a) length (number of letters in the name).  (b) count of names with that length.  (c) bar chart showing one '*' for each 500 occurrences.

Tutor Answer

(Top Tutor) Studypool Tutor
School: Duke University
Studypool has helped 1,244,100 students
flag Report DMCA
Similar Questions
Hot Questions
Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors