(solution) Unit 7 Assignment Grading Information: This Program is due on

(solution) Unit 7 Assignment Grading Information: This Program is due on

I need help with the following assignment. 

Attached is the Assignment in PDF and i created the Text Document for the stdIn.fileScanner 

I have a lot of the assignment done but have messed up in the coding a lot and may need to start over

Unit 7 Assignment
Grading Information: This Program is due on Date Specified.
Comments are REQUIRED; flow charts and pseudocode are NOT REQUIRED.
Directions Points The files must be called <LastInitialFirstInitialUnit7.java> (driver)
<LastInitialFirstInitialUnit7House.java> (handles house variables and methods)
Proper coding conventions required the first letter of the class start with a capital
letter and the first letter of each additional word start with a capital letter. 5% Only submit the .java files needed to make the program run. Do not submit the
.class file or any other file.
Style Components
Include properly formatted prologue, comments, indenting, and other style elements
as shown in Chapter 2 starting page 64 and Appendix 5 page 881-892. 5% Topics covered in chapter
Topics with * are covered in this assignment. Ensure you use every item listed below with
an * in your completed assignment.
*Relationships between reference variables and objects
Reference assignment
Memory space
Equality of Objects
Swap data in objects
*Method call chaining
*Object creating and initialization
Calling one constructor from inside another
Class variable usage
Class methods
Class constants Basic Requirements
Write a driver and house class that gets input and using method call chaining creates 2
houses, imports the data from a text file, and outputs the results. Refer to chapter 3 on how
to read in a file. LiFiUnit7.java
Provide a driver class that demonstrates this house class. You the code below as the
contents of you main method. Ensure you use the code provided exactly as given 20% inside your main method except for renaming your House class.
Scanner stdIn = new Scanner(System.in);
Scanner stdInFile = new Scanner(new
File("LiFiUnit7HouseData.txt"));
LiFiUnit7House_SU_2016 house1, house2; //New houses
//Create house 1 using default constructor
house1 = new LiFiUnit7House_SU_2016();
house1.print(); //print house 1 with default values
String street, city, state, zipCode;
int number;
System.out.println("Importing Number.");
number = stdInFile.nextInt();
stdInFile.nextLine();
System.out.println("Importing Street.");
street = stdInFile.nextLine();
System.out.println("Importing City.");
city = stdInFile.nextLine();
System.out.println("Importing State.");
state = stdInFile.nextLine();
System.out.println("Importing ZipCode.");
zipCode = stdInFile.nextLine();
System.out.println();
//use method call chaining to set values
//and print results for house 1
house1.setNumber(number).setStreet(street)
.setCity(city).setState(state)
.setZipCode(zipCode).print();
System.out.println("Importing Number.");
number = stdInFile.nextInt();
stdInFile.nextLine();
System.out.println("Importing Street.");
street = stdInFile.nextLine();
System.out.println("Importing City.");
city = stdInFile.nextLine();
System.out.println("Importing State.");
state = stdInFile.nextLine();
System.out.println("Importing ZipCode.");
zipCode = stdInFile.nextLine();
System.out.println(); //create house 2 using 5 parameter constructor
house2 = new LiFiUnit7House_SU_2016(number,
street, city, state, zipCode);
//print house 2
house2.print(); This demonstration driver does not call all accessor and mutator methods but it is
normal to create them regardless of an immediate use. They may be needed in the
future.
Sample output is provided below. Be sure to mimic it exactly except for values
entered.
LiFiUnit7House.java
Write a House class called LiFiUnit7House.java that implements the following
methods.
? setNumber ? receives the house number
? setStreet ? receives the street name
? setCity ? receives the city name
? setState ? receives the state name
? setZipCode ? receives the zip code 30% Separate accessor methods for each instance variable utilized. Method Call Chaining
Pay attention to implement method call chaining as prescribed in the main method given.
This is the main part of the program for this week. 40% NOTE: Complete your activity and submit it by clicking ?Submit Assignment?
Total Percentage
Data for Text File (name it LiFiUnit7House.txt)
8700
NW River Park Dr.
Parkville
MO
64152
1600
Pennsylvania Ave NW
Washington 100% DC
20500
Sample
Your output for House 1 and House 2 should match the sample
below.
House Information
Number: 0
Street: No Street
City:
No City
State: No State
Zip:
No Zip Code
Importing
Importing
Importing
Importing
Importing Number.
Street.
City.
State.
ZipCode. House Information
Number: 8700
Street: NW River Park Dr.
City:
Parkville
State: MO
Zip:
64152
Importing
Importing
Importing
Importing
Importing Number.
Street.
City.
State.
ZipCode. House Information
Number: 1600
Street: Pennsylvania Ave NW
City:
Washington
State: DC
Zip:
20500