14.8k views
2 votes
What would be the three main actions that occur during each second of simulated time in the car wash simulation?

a)1. Sometimes add a new customer to the arrivals queue.
2. Start a new car through the washer when a car in washer finishes the washing..
3. Tell the washer that another second has passed.

b)1. At any secone add maximun of two new customers to the arrivals queue.
2. Sometimes start a new car through the washer.
3. Tell the washer that another second has passed.

c)1. Sometimes add a new customer to the arrivals queue.
2. Sometimes start a new car through the washer.
3. Check the washer what time is it now.

d)1. Sometimes add a new customer to the arrivals queue.
2. Sometimes start a new car through the washer.
3. Tell the washer that another second has passed.

e)1. At any secone add maximun of two new customers to the arrivals queue.
2. Start a new car through the washer when a car in washer finishes the washing..
3. Check the washer what time is it now..

User Frauke
by
7.6k points

1 Answer

4 votes

Final answer:

During each second of simulated time in the car wash simulation, the main actions that occur are adding a new customer to the arrivals queue, starting a new car through the washer when a car finishes washing, and notifying the washer that another second has passed.

Step-by-step explanation:

The three main actions that occur during each second of simulated time in the car wash simulation are as follows:

  1. Sometimes add a new customer to the arrivals queue. This means that occasionally, a new customer arrives at the car wash and joins the queue of cars waiting to be washed.
  2. Start a new car through the washer when a car in the washer finishes the washing. Once a car has finished being washed, another car is started through the washer to keep the process going.
  3. Tell the washer that another second has passed. This action is to keep track of time and ensure that the simulation progresses second by second.
User Hardik Bhalani
by
7.7k points