Theme Park Assignment 1 Background You are a Theme Park Designer. You own many t
ID: 3638084 • Letter: T
Question
Theme Park
Assignment 1
Background
You are a Theme Park Designer. You own many theme parks and you need to make sure that for every theme park you design in the future, you have all the required objects needed to be successful. Also, you need to make sure that you follow all government regulations for creating a theme park along with its safety regulations.
Theme Park Design
Theme Park Model:
You will have to create a template that you will use in the future to create all theme parks.
· Rides
· Shows
· Food
· Restrooms
· Security
· Parking
· Ticket vending
· Merchandising
Concrete Version in addition to inheriting above
· Store Ride, Show, Food, Restroom, Security, Parking, Ticketing Vending and Merchandising counts
· Store Ride, Show, Food, Restroom, Security, Parking, Ticketing Vending and Merchandising objects. (Use Array or Array List)
· Theme Park Name
· Theme Park Location
Theme Park Rides:
You will have to create an abstract model to which to base all your rides on.
· Entrance
· Restroom
· Exit
· Merchandising
· Security
· Height Level
· Group Level (How many can be on the ride at the same time)
· Real Motion or Simulated
· Kid Friendly or not
Concrete Version in addition to inheriting above
· Theme (ie.. ET, Back to the Future, Hulk)
Theme Park Shows:
You will have to create an abstract model to which to base all your shows on.
· Show Times
· Seating capacity
Concrete Version in addition to inheriting above
· Show Name
· Kid Friendly
· Special Cases (ie.. if you will get wet, loud noises, etc)
Theme Park Food:
You will have to create a concrete model to which to base all your food vending on.
· Food Type
· Type (Restaurant or Vending cart)
· Name
· Buffet or Dining In or On-the Go (Cart)
Theme Park Restrooms:
You will have to create a concrete model to which to all your restrooms are created.
· Bathroom Facilities
· Sinks
· Type (Mens and Womens)
Theme Park Security:
You will have to create a concrete model to which to base all your security on.
· Uniforms
· Security Equipment
· Emergency Plan for Medical situations
Theme Park Parking:
You will have to create a concrete model in which all your parking lots are created.
· Parking Spots
· Parking Lot Size
· Parking Capacity
Theme Park Ticket Vending:
You will have to create a concrete model in which all your ticketing booths are created.
· Ticketing Booth count
· Ticketing Sales Count
Theme Park Merchandising:
You will have to create a concrete model to which to create all the merchandising objects.
· Sales Count
· Inventory count
· Type (Store or Cart)
· Theme
All bullet points represent a method to be created. It will be up to you to figure out how to store information requested. Little hints were given on how to do this. For example, arrays and arraylists were mentioned. Also, you should pick up on keywords such as abstract, concrete and templates. This should be treated like if this was a business meeting and you were given these criteria for a theme park. Create a test class that will test your entire assignment. Keep in mind that some methods may simply need you to use a print statement to complete the task. Do not over think.
Explanation / Answer
private int solve(int R, int k, int[] groups){ int moneyMade = 0; LinkedList groupsQueue = new LinkedList(); for(int i=0;i0){ //calculate the people that can fit in int eachSum = 0; int i; for(i=0;ik){ eachSum-=groupsQueue.get(i); break; } } moneyMade+=eachSum; //alterQueue for(int j=0;jRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.