Question: I am stuck and I really need help!!!!!!! Write a java program 1. Read a file using Scanner. The file will contain 40 lines. line
I am stuck and I really need help!!!!!!! Write a java program
1. Read a file using Scanner. The file will contain 40 lines. line one will be the address of the home, and the second line will be the price. this will alternate every other line.
2. create two arrays one for the addresses and the other for the prices(each array will consist of 20 items). Write a loop to display data.
Address price
1234 anywere st, City, State zipcode $560000
3. must include a method for highest price, lowest price, average sale price.
These methods must accept both arrays. Print the addresses in the main.
4. create method search prices. It will accept both arrays and the target price to search for. If target price is found the addresses and prices will print. If there are no homes in that range print a message saying no result was found.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
