Question 3 (40 points)Consider a fast-food restaurant. This company has a drive-through service. This service has two pr
Posted: Fri May 20, 2022 12:18 pm
Question 3 (40 points)Consider a fast-food restaurant. This company has a drive-through service. This service has two processes which are ordering and delivery. When a consumer arrives, the system first gives an order and then goes to the delivery point. Travel time from the ordering to the delivery point is considered negligible. The ordering point has room for two cars (If a new car arrives and there are two cars in ordering the part, the new car immediately leaves the system). When the ordering is complete, if delivery is occupying another car, the car cannot leave the ordering point. That means the new cannot order. There are two workers, one for ordering and one for delivery in the restaurant The system is empty and the resource are idle at time 0. The following table shows the arrival and service times in minutes): Figure 1: Data set for Q3 Ordering 8 Delivery ID 1 2 3 4 Arrive Time 0 1 2 4 ID 5 6 3 2 1 3 6 3 4 Arrive Time 6 13 22 45 Ordering 2 1 2 3 Delivery 6 1 1 2 8
Write java code for Question 3 (You can use the given data. Hint: Create your object)
Write java code for Question 3 (You can use the given data. Hint: Create your object)