Write a java program
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 records2. 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.
THIS QUESTION IS UNSOLVED!
Request a custom answer for this question