1) Create a program (using main method) that will sort an array of int using a bubble sort algorithm. You can declare an array of int[] in the program.

2) Write a program (main() method) that reads, from the terminal (screen), sequence of names and postal (ZIP) codes for individuals. Store the data in an object designed to store a first name (String), last name (String), and postal code (int). Assume each line of input will contain two strings followed by an integer value, each separated by a tab character. Users will type "quit" when they have completed input entry. After all input is complete, print the output of the input values by the user to the screen. [Note:

  • create an object that will store the first name (String), last name (String), postal code (int)
  • use ArrayList to store object]
C:\Enter Input {first_name< tab >last_name< tab >zip_code}:
Bill Smith 10002
Enter Input {first_name< tab >last_name< tab >zip_code}:
Jane Dome 11354
Enter Input {first_name< tab >last_name< tab >zip_code}:
-1

3) Revise #1 problem to read a list of inputs from a file. The input file will contain two strings followed by an integer.

Input file:
Bill Smith 10002
Jill Ryan 11120
Robert Johnson 11122
.
.
.
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.