Java for me

IN PROGRESS
Bids
48
Avg Bid (USD)
$86
Project Budget (USD)
$30 - $250

Project Description:
I am a real estate office manager who needs to run reports on property listings. You will build two applications that will provide two different reports. One report is focused on the amount of property an agent is selling. The other report provides an overview of the types of property for sale.

Your listings file will contain property number, property type, price, and agent id.

Task:

A. Develop an application that reads your listings.txt file, analyzes the property listed per agent, and outputs a report to an agentreport.txt file. Your application should do the following:
1. Prompt the user for the name of the input file (listings.txt).
2. Open listings.txt file and read in property listings.
3. Store each property type into a Set.
a. Convert property type to upper case before adding to your Set using method(s) from String class.
b. Sort your Set of property types alphabetically.
4. Use a Map to calculate total property listed in dollars and cents for each agent id.

Note: Agent id would be the key, and accumulated total of property listed would be the value.

• Sort your Map by agent id.
• Create an agentreport.txt file.
5. Use an Iterator to iterate through your Set and write your sorted set of property types sold by the agents to the agentreport.txt file.
6. Iterate through your Map to write your sorted pair of agent id and total property listed to the agentreport.txt file.


B. Develop an application that reads your listings.txt file, analyzes the properties listed, and outputs an overview of properties listed to an overview.txt file. Your application should do the following:
1. Prompt the user for the name of the input file (listings.txt).
2. Open the listings.txt file and read in property listing information using a buffered FileReader.
3. Count the total number of property listings for sale.
• Use buffered FileWriter to write the count of the number of property listings to your overview.txt file.
4. Calculate the total value of property for sale.
• Use a buffered FileWriter to write the total value of properties currently for sale.
5. Store each property id into an ArrayList.
a. Sort the ArrayList of property ids using natural ordering.
b. Use a for-each loop to iterate through the sorted ArrayList and write property ids to overview.txt file using buffered FileWriter.
6. Use buffered FileWriter to write the total value of the properties listed and the total number of properties currently for sale.









Example listings.txt file:

110001 commercial 500000.00 101
110223 residential 100000.00 101
110020 commercial 1000000.00 107
110333 land 30000.00 105
110442 farm 200000.00 106
110421 land 40000.00 107
112352 residential 250000.00 110



Example agentreport.txt file:

COMMERCIAL
FARM
LAND
RESIDENTIAL

101 600000.00
105 30000.00
106 200000.00
107 1040000.00
110 250000.00



Example overview.txt file:

Total properties listed: 7
Total value of properties listed: 2120000.00

110001
110020
110223
110333
110421
110442
112352

Skills required:
Java
Hire bigacesl
Project posted by:
bigacesl United States
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


$ 30
in 1 days
$ 30
in 0 days
$ 30
in 1 days
Hire poornachand
$ 50
in 3 days
$ 30
in 1 days
Hire Calleus
$ 168
in 5 days
$ 80
in 2 days
$ 147
in 6 days
$ 169
in 3 days
$ 50
in 1 days