Write a program that reads sequence of names and postal code


Homework

A. 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:

i. create an object that will store the first name (String), last name (String), postal code (int)
ii. use ArrayList to store object]

C:\Enter Input {first_namelast_namezip_code}:
Bill Smith 10002
Enter Input {first_namelast_namezip_code}:
Jane Dome 11354
Enter Input {first_namelast_namezip_code}:
-1

B. 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
.
.
.

Format your homework according to the give formatting requirements:

a. The answer must be double spaced, typed, using Times New Roman font (size 12), with one-inch margins on all sides.

b. The response also includes a cover page containing the title of the homework, the course title, the student's name, and the date. The cover page is not included in the required page length.

c. Also include a reference page. The references and Citations should follow APA format. The reference page is not included in the required page length.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a program that reads sequence of names and postal code
Reference No:- TGS03027154

Expected delivery within 24 Hours