Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you give me the implementation of sevenflags but the classes ride and VirtualLine import LinkedList instead of ArrayList . The following is the output

Can you give me the implementation of sevenflags but the classes ride and VirtualLine import LinkedList instead of ArrayList .The following is the output sample run:
Welcome to Seven Flags!
Please enter the number of regular customers: 10
Please enter the number of silver customers: 5
Please enter the number of gold customers: 3
Please enter simulation length: 20
Please enter the duration of Blue Scream of Death (minutes): 3
Please enter the capacity of Blue Scream of Death: 3
Please enter the holding queue size for Blue Scream of Death: 4
Please enter the duration of Kingda Knuth (minutes): 2
Please enter the capacity of Kingda Knuth: 2
Please enter the holding queue size for Kingda Knuth: 2
Please enter the duration of i386 Tower of Terror (minutes): 2
Please enter the capacity of i386 Tower of Terror: 1
Please enter the holding queue size for i386 Tower of Terror: 1
Please enter the duration of GeForce (minutes): 1
Please enter the capacity of GeForce: 1
Please enter the holding queue size for GeForce: 2
------------------------------------------------------------------------------------------
At Time 0:
Blue Scream of Death - Time remaining: 3 min
On Ride: Gold 1, Silver 1, Silver 2
Holding Queue: Silver 5, Regular 1, Regular 3, Regular 4
Virtual Queue: Gold 2, Silver 4, Silver 5, Gold 1
----------------
Kingda Knuth - Time remaining: 2 min
On Ride: Silver 3, Regular 2
Holding Queue: Regular 5, Regular 6
Virtual Queue: Gold 1, Silver 3, Gold 3
----------------
i386 Tower of Terror - Time remaining: 2 min
On Ride: Gold 2
Holding Queue: Silver 4
Virtual Queue: Regular 8, Gold 3, Silver 2
----------------
GeForce - Time remaining: 1 min
On Ride: Gold 3
Holding Queue: Silver 5, Regular 7
Virtual Queue: Regular 10,Silver 1, Gold 2
----------------
Regular Customers:
Num Line Status
----------------
1. BSOD Holding
2. KK OnRide
3. BSOD Holding
4. BSOD Holding
5. KK Holding
6. KK Holding
7. GF Holding
8. ToT Available
9. KK Available
10. GF Available
Silver Customers:
Num Line 1 Line 2 Status
------------------------
1. BSOD GF On Ride
2. BSOD ToT On Ride
3. KK KK On Ride
4. ToT BSOD Holding
5. GF BSOD Holding
Gold Customers:
Num Line 1 Line 2 Line 3 Status
-------------------------------
1. BSOD KK BSOD OnRide
2. ToT BSOD GF OnRide
3. GF GF ToT OnRide
------------------------------------------------------------------------------------------
At Time 1:
Blue Scream of Death - Time remaining: 2 min
On Ride:Gold 1, Silver 1, Silver 2
Holding Queue: Silver 5, Regular 1, Regular 3, Regular 4
Virtual Queue:Gold 2, Silver 4, Silver 5, Gold 1
----------------
Kingda Knuth - Time remaining: 1 min
On Ride: Silver 3, Regular 2
Holding Queue: Regular 5, Regular 6
Virtual Queue:Gold 1, Silver 3, Gold 3
----------------
i386 Tower of Terror - Time remaining: 1 min
On Ride: Gold 2
Holding Queue: Silver 4
Virtual Queue: Regular 8, Gold 3, Silver 2, Gold 3
----------------
GeForce - Time remaining: 1 min
On Ride: Silver 5
Holding Queue: Regular 7, Regular 10
Virtual Queue:Silver 1, Gold 2
----------------
Regular Customers:
Num Line Status
----------------
1. BSOD Holding
2. KK OnRide
3. BSOD Holding
4. BSOD Holding
5. KK Holding
6. KK Holding
7. GF Holding
8. ToT Available
9. KK Available
10. GF Holding
Silver Customers:
Num Line 1 Line 2 Status
------------------------
1. BSOD GF On Ride
2. BSOD ToT On Ride
3. KK KK On Ride
4. ToT BSOD Holding
5. GF BSOD OnRide
Gold Customers:
Num Line 1 Line 2 Line 3 Status
-------------------------------
1. BSOD KK BSOD OnRide
2. ToT BSOD GF OnRide
3. ToT GF ToT Available
------------------------------------------------------------------------------------------
At Time 2:
Blue Scream of Death - Time remaining: 1 min
On Ride: Gold 1, Silver 1, Silver 2
Holding Queue: Silver 5, Regular 1, Regular 3, Regular 4
Virtual Queue: Gold 2, Silver 4, Silver 5, Gold 1, Silver 3, Regular 2
----------------
Kingda Knuth - Time remaining: 2 min
On Ride: Regular 5, Regular 6
Holding Queue: Silver 3, Gold 3
Virtual Queue: Gold 2, Silver 5, Gold 1//gold 1 was not available, so gold 1 was placed in the back of the queue. You may place the customers with time conflicts either before or after the people being enqueued at this timestep.
----------------
i386 Tower of Terror - Time remaining: 2 min
On Ride: Silver 4
Holding Queue: Regular 8
Virtual Queue: Gold 3, Silver 2, Gold 3
----------------
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

Describe the primary activities of the design phase of the SDLC.

Answered: 1 week ago

Question

2. Be specific as to method of meeting all goals.

Answered: 1 week ago