1. Analysis

  • Describe the problem including input and output
  • Choose a Set or Map collection. Explain your choice.

2. Design

  • Your UML design (Complete the UML below)

3. Design a class used to represent a state within the United States. Include the following data members should be included:

  • Name - the name of the state
  • Abbreviation - the abbreviation of the state's name
  • Capital - the state's capital
  • Area- the total area of the state in square miles
  • Population - the state's population
  • Motto - the state's motto Include a constructor with parameters to initialize all the data members.

Include accessor and mutator methods for each data member.

Make sure you override/implement the methods

  • toString() See 11.6 The Object Class and Its toString() Method,
  • hashCode() See 27.3 Hash Functions and Hash Codes, and
  • equals() See 11.10 The Object's equals Method.

Design and create a JavaFX application that allows a user to input or select a state. The application should then retrieve and display the information about that state. The data for the state is contained in the attached data file. Before the user can input or select a state, the application should open the data file, read the data for each state and use it to create a state object for each state. The state objects should be stored in a Map. State information should be retrieved from the map.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.