Completed

Java for me

This project was successfully completed by it2051229 for $30 USD in a day.

Get free quotes for a project like this
Employer working
Completed by:
Skills Required
Project Budget
$30 - $250 USD
Completed In
1 day
Total Bids
48
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 [url removed, login to view] file, analyzes the property listed per agent, and outputs a report to an [url removed, login to view] file. Your application should do the following:
1. Prompt the user for the name of the input file ([url removed, login to view]).
2. Open [url removed, login to view] 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 [url removed, login to view] file.
5. Use an Iterator to iterate through your Set and write your sorted set of property types sold by the agents to the [url removed, login to view] file.
6. Iterate through your Map to write your sorted pair of agent id and total property listed to the [url removed, login to view] file.


B. Develop an application that reads your [url removed, login to view] file, analyzes the properties listed, and outputs an overview of properties listed to an [url removed, login to view] file. Your application should do the following:
1. Prompt the user for the name of the input file ([url removed, login to view]).
2. Open the [url removed, login to view] 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 [url removed, login to view] 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 [url removed, login to view] 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 [url removed, login to view] file:

110001 commercial [url removed, login to view] 101
110223 residential [url removed, login to view] 101
110020 commercial [url removed, login to view] 107
110333 land [url removed, login to view] 105
110442 farm [url removed, login to view] 106
110421 land [url removed, login to view] 107
112352 residential [url removed, login to view] 110



Example [url removed, login to view] file:

COMMERCIAL
FARM
LAND
RESIDENTIAL

101 [url removed, login to view]
105 [url removed, login to view]
106 [url removed, login to view]
107 [url removed, login to view]
110 [url removed, login to view]



Example [url removed, login to view] file:

Total properties listed: 7
Total value of properties listed: [url removed, login to view]

110001
110020
110223
110333
110421
110442
112352

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online