IT306 Program #2 Fall 2011
You are to create an efficient, object‐oriented application to assist a rental company in the Outer Banks. The rental company can manage up to 1000 homes. In the Outer Banks, each home is given a unique name (e.g., SeaSide, OurLittleGirl, JohnnysTuition) chosen by the homeowner. For this realtor, each home is assigned a weekly rental value for each of the identified seasons: OffSeason, PrePostSeason, InSeason. This realtor does not manage any homes that rent below $500 or for more than $10000 per week. Each home has the following information stored: name, address, number of bedrooms and an indicator of whether the house is an OceanFront house.. If the home has a pool and hot tub it is considered a select home. In that case, the size of the pool (with dimensions of length and width) is included. This information should be stored in a TEXT FILE for each house in the rental program. You can create this file by entering the data directly in NotePad. You should have a second data definition class, which inherits from the House class defined above. This will include an instance variable for weeksRented (a boolean array: size 52). This data definition class will also be able to return a season (0 – InSeason, 1 – PrePostSeason, 2 – OffSeason) given a particular week in the year. Use the following: Weeks 1 – 18 are OFFSEASON Weeks 19 – 22 are PREPOSTSEASON Weeks 23 – 36 are INSEASON Weeks 37 – 41 are PREPOSTSEASON Weeks 42 – 52 are OFFSEASON Your application should manage the rental season. Use a binary file to store the rental information on all homes. First the application should determine if there is data stored for the season (initially, there will be none). The user will be a telephone clerk. A customer will call and search for an available house based on the following criteria: ‐‐desired week (1 – 52) ‐‐minimum number of bedrooms (1 – 8) ‐‐if it is a select house (i.e., has a pool and hot tub) The clerk will be presented with a list of available houses (with all house information.) The customer will choose one of the available houses for the chosen week.