The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 313 Weeks Ago, 5 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
One of the fundamental requirements of programs is to use data stored in permanent storage such as a hard disk file. Programs must be able to read and write stored data and use appropriate data structures within the program to work with the data. In this assignment, a program needs to be written to load and manipulate a data file. The data file can be downloaded from the following link:Â Unit 4 Sample Data. (<---not a link..excel file attached)
The file should not be a comma delimited file and should have the following record structure:
| FirstName | LastName | Company | Address | City | County | State | ZIP | Phone | Fax | Web | Convert to Pig Latin | |
| Eddie | Vazquez | Osweep Industries | 14316 Hancock Circle | Richdale | Anchorage | AK | 99515 | 907-456-8510 | 907-456-2326 | eddie@vazquez.com | http://www.eddievazquez.com | The Customer's Name is Eddie Vazquez and they work for Osweep Industries |
| Chris | Robinson | Finch Products | 2133 N West Street | Deerford | Maricopa | AZ | 85004 | 602-141-3716 | 602-141-2898 | chris@robinson.com | http://www.chrisrobinson.com | The Customer's Name is Chris Robinson and they work for Finch Products |
| Brooklynn | Taylor | Prism Globe Inc | 48 E 13th Blvd | Corway Hills | New York | NY | 10001 | 212-778-6886 | 212-778-6875 | brooklynn@taylor.com | http://www.brooklynntaylor.com | The Customer's Name is Brooklynn Taylor and they work for Prism Globe Inc |
| Zion | Miller | Switch Pen Company | 196 State Ave | Lawnworth | Middlesex | NJ | 8861 | 732-331-5270 | 732-331-4107 | zion@miller.com | http://www.zionmiller.com | The Customer's Name is Zion Miller and they work for Switch Pen Company |
| Ruby | Flynn | Snap Sun Services | 3175 W Carrier Lane | Meadowburg | Honolulu | HI | 96819 | 808-947-7855 | 808-947-7119 | ruby@flynn.com | http://www.rubyflynn.com | The Customer's Name is Ruby Flynn and they work for Snap Sun Services |
| Bob | Lewis | Code Planet Properties | 22652 E Easton St | East Fortview Lake | Will | IL | 60410 | 815-356-3760 | 815-356-1330 | bob@lewis.com | http://www.boblewis.com | The Customer's Name is Bob Lewis and they work for Code Planet Properties |
| Susan | Hernandez | Light Table Bearings | 9630 S City Ave | Kingstown Reservoir | Maricopa | AZ | 85051 | 602-842-3864 | 602-842-4662 | susan@hernandez.com | http://www.susanhernandez.com | The Customer's Name is Susan Hernandez and they work for Light Table Bearings |
| Vicky | Perez | Lime Cake Records | 7421 Jefferson Pkwy | Hearthbridge | Lehigh | PA | 18087 | 610-284-7632 | 610-284-5884 | vicky@perez.com | http://www.vickyperez.com | The Customer's Name is Vicky Perez and they work for Lime Cake Records |
| Lee | Hill | Round Rock Engineers | 884 W Glendale Rd | Old Lindenfield Grove | Los Angeles | CA | 91790 | 626-849-7849 | 626-849-2614 | lee@hill.com | http://www.leehill.com | The Customer's Name is Lee Hill and they work for Round Rock Engineers |
| Mary | Edwards | Simple Byte Technologies | 6122 E Blue Vine Prkwy | Upper Caldbrook | Orange | FL | 32809 | 407-746-3200 | 407-746-1395 | mary@edwards.com | http://www.maryedwards.com | The Customer's Name is Mary Edwards and they work for Simple Byte Technologies |
| Jennifer | Davis | Quicker Span Reviews | 2598 Oak Rd | East Maymeadow | Shelby | TN | 38112 | 901-438-6447 | 901-438-4022 | jennifer@davis.com | http://www.jenniferdavis.com | The Customer's Name is Jennifer Davis and they work for Quicker Span Reviews |
| Michelle | Martin | Diamond Post Surveys | 329 Brush Cir NW | Belcove | Marion | OR | 97302 | 503-260-7108 | 503-260-7000 | michelle@martin.com | http://www.michellemartin.com | The Customer's Name is Michelle Martin and they work for Diamond Post Surveys |
| Conner | Lee | Cash Pad Loans | 116 Rail Way | Adamsfield | Mahoning | OH | 44512 | 330-869-4252 | 330-869-4647 | conner@lee.com | http://www.connerlee.com | The Customer's Name is Conner Lee and they work for Cash Pad Loans |
| Colin | Brown | Easy Rug Cleaners | 1612 W Bay Rd | Bridgeing | Orange | CA | 92802 | 714-661-3939 | 714-661-2748 | colin@brown.com | http://www.colinbrown.com | The Customer's Name is Colin Brown and they work for Easy Rug Cleaners |
| Sheila | Garcia | Clear Blue Window Cleaning | 152 Broad Ln | Portcroft Cove | Bexar | TX | 78205 | 210-340-4128 | 210-340-1086 | sheila@garcia.com | http://www.sheilagarcia.com | The Customer's Name is Sheila Garcia and they work for Clear Blue Window Cleaning |
| Rosy | King | Shots Manufacturing | 6930 Bass Stream Blvd | Old Clarksfax | Hennepin | MN | 55428 | 763-426-3083 | 763-426-2774 | rosy@king.com | http://www.rosyking.com | The Customer's Name is Rosy King and they work for Shots Manufacturing |
| David | Baker | Box State Trading Corporation | 6728 Timbuck St | Pittsfort | Mahoning | OH | 44406 | 330-644-7457 | 330-644-9322 | david@baker.com | http://www.davidbaker.com | The Customer's Name is David Baker and they work for Box State Trading Corporation |
| Willa | Roberts | Low Sky Seating Company | 1519 Hawk Ave | Coleford | El Paso | TX | 79925 | 915-660-1619 | 915-660-4618 | willa@roberts.com | http://www.willaroberts.com | The Customer's Name is Willa Roberts and they work for Low Sky Seating Company |
| Tiana | Williams | Country Boxes | 24969 Tibbs Circle | Christiansmount | Los Angeles | CA | 91355 | 661-368-4194 | 661-368-1035 | tiana@williams.com | http://www.tianawilliams.com | The Customer's Name is Tiana Williams and they work for Country Boxes |
| Douglas | Ingram | Quicker Cupcakes | 3450 Lion Rd | Brunsbeach | Nueces | TX | 78408 | 361-773-7322 | 361-773-2874 | douglas@ingram.com | http://www.douglasingram.com | The Customer's Name is Douglas Ingram and they work for Quicker Cupcakes |
| Colt | Lopez | Case Electronics | 370 Stock Ave | Fort Hansville | Middlesex | NJ | 8861 | 732-553-9625 | 732-553-2886 | colt@lopez.com | http://www.coltlopez.com | The Customer's Name is Colt Lopez and they work for Case Electronics |
| Stephen | Phillips | Brown Technologies | 1095 SW 2nd Rd | New Hamford | Vanderburgh | IN | 47713 | 812-310-3693 | 812-310-6514 | stephen@phillips.com | http://www.stephenphillips.com | The Customer's Name is Stephen Phillips and they work for Brown Technologies |
| Catherine | Smith | Side Sauce Spices | 140 E 4th Street | Hempline Island | New York | NY | 10018 | 212-830-5063 | 212-830-8652 | catherine@smith.com | http://www.catherinesmith.com | The Customer's Name is Catherine Smith and they work for Side Sauce Spices |
| Calvin | Morris | Zippy Sandwiches | 79 W Broadway Ave | Bayway | Franklin | OH | 43215 | 614-114-7890 | 614-114-5010 | calvin@morris.com | http://www.calvinmorris.com | The Customer's Name is Calvin Morris and they work for Zippy Sandwiches |
Step 1:Â For this assignment, you will write a complete Java console program to load the data file into an ArrayList data structure. Store each line from the file as a separate record in the ArrayList. To read the file, you should use a FileReader wrapped in a BufferedReader. If you create a Java class to contain each record, you will be able to create an object for each record and store the object in the ArrayList. Sorting the data can then be done using another wrapper class that contains the ArrayList and has methods for sorting and output of the data.
Â
Step 2:Â After the file is loaded into the ArrayList, sort the data in ascending order based on the LastName field, and display the following fields:
Step 3:Â Next, sort the data in descending order based on the ZIP field, and display the following fields:
Step 4:Â Display all of the records (and all of the fields) for everyone that is in the state "NY."
Step 5:Â The submission should be a single MS Word document with the program source code for the solution and screenshots of the output for the following list:
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly