Java Doc comments at the start of all classes. Aggregation Project: Design a UML class aggregation diagram using the classes below. A class called Place. A Place will have two attributes: city state A Place will have these methods: default constructor overloaded constructor copy constructor setters and getters for all attributes get State initials – get the abbreviation for the state. You may use a utility or a case structure. (FYI, you don’t have to put all 50 states in, at least have what you have in the file. Pick a few and test. copy() equals() toString() A FunPlace class. A FunPlace will have these attributes: name type (Example house, amusement park, corn maze, escape room) price Place - this will be of the Place class (Aggregation – a class is an attribute inside another class) A FunPlace will have these methods: default constructor overloaded constructor that allows name, type, price and a Place object to be passed in overloaded constructor that allows name, price Place copy constructor all getters all setters equals() copy() method toString() - this will include its Place. Create a driver that will: create an ArrayList of FunPlace objects. The data comes from this file Download file You must add at least 4 records to this file of your own choice. Read all data for the FunPlaces and Places here. Display all FunPlace objects Search FunPlaces by city. The user will be prompted to enter city. Remember to display a message that states if no Places in the requested city. Search FunPlaces by type. Remember to display a message that states if no Places in the requested type Search FunPlaces by price (You may sort these OR pick a price and display all those Fun places that are less than the price) Create a menu of the above options (one should be the option to quit) options. Code a loop around the menu so that the user may select another option or the last option to quit. Deliverables (zipped into one folder) Do NOT USE THE Collections class the file is Entertainment,type,price,city,state The Nevermore Haunt,Haunted House,30,Baltimore,Maryland Escape Clarion Room,Escape Room,25,Clarion ,Pennsylvania Disney ,Amusement Park,109,Orlando,Florida Kennywood,Amusement Park,45,Pittsburgh,Pennsylvania 6 Flags,Amusement Park,30,Baltimore/Washington,Maryland 7 Springs,Ski Resort,91,Seven Springs,Pennsylvania
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
Java Doc comments at the start of all classes.
Aggregation Project:
Design a UML class aggregation diagram using the classes below.
A class called Place.
A Place will have two attributes:
- city
- state
A Place will have these methods:
- default constructor
- overloaded constructor
- copy constructor
- setters and getters for all attributes
- get State initials – get the abbreviation for the state. You may use a utility or a case structure. (FYI, you don’t have to put all 50 states in, at least have what you have in the file. Pick a few and test.
- copy()
- equals()
- toString()
A FunPlace class.
A FunPlace will have these attributes:
- name
- type (Example house, amusement park, corn maze, escape room)
- price
- Place - this will be of the Place class (Aggregation – a class is an attribute inside another class)
A FunPlace will have these methods:
- default constructor
- overloaded constructor that allows name, type, price and a Place object to be passed in
- overloaded constructor that allows name, price Place
- copy constructor
- all getters
- all setters
- equals()
- copy() method
- toString() - this will include its Place.
Create a driver that will:
- create an ArrayList of FunPlace objects. The data comes from this file Download file
You must add at least 4 records to this file of your own choice.
- Read all data for the FunPlaces and Places here.
- Display all FunPlace objects
- Search FunPlaces by city. The user will be prompted to enter city. Remember to display a message that states if no Places in the requested city.
- Search FunPlaces by type. Remember to display a message that states if no Places in the requested type
- Search FunPlaces by price (You may sort these OR pick a price and display all those Fun places that are less than the price)
- Create a menu of the above options (one should be the option to quit) options. Code a loop around the menu so that the user may select another option or the last option to quit.
Deliverables (zipped into one folder)
Do NOT USE THE Collections class
the file is
Entertainment,type,price,city,state
The Nevermore Haunt,Haunted House,30,Baltimore,Maryland
Escape Clarion Room,Escape Room,25,Clarion ,Pennsylvania
Disney ,Amusement Park,109,Orlando,Florida
Kennywood,Amusement Park,45,Pittsburgh,Pennsylvania
6 Flags,Amusement Park,30,Baltimore/Washington,Maryland
7 Springs,Ski Resort,91,Seven Springs,Pennsylvania

Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images









