Four passengers enter an elevator. There are four floors at which they can get off. The...
(1 point) A building has 4
floors. The building elevator starts from the first floor with 7
passengers and may stop at any of the 3 floors (from the 2nd floor
to the 4th floor). Suppose that each passenger may get out of the
elevator at any of these 3 floors. Note that 7 passengers are
different. How many ways may the 7 passengers get out of the
elevator?
(1 point) A building has 4 floors. The building elevator starts...
Two people are riding an elevator that can stop at floors two, three, …., and N. What is the probability that they will get off at different floors?
4. Suppose 8 people separately enter an elevator with eleven floors (not including the ground floor). Suppose that each of people independently choose a floor that is equally likely to be any of the 11. What is the expected number of floors that will be visited?
Supposewehavealatenightbusandtowardstheendofthe route, there are 3 passengers {P1 , P2 ,, P3} and 5 stops {S1,S2,S3,S4,S5, } remain. Suppose further that each passenger is inebriated, and is thus is equally likely to get off at any one of the stops. (i) We wish to list the set of outcomes in the sample space each of whose outcomes is an ordered triple of all three Sij for I=1,2,3, where Sij means that passenger Pi got off at the stop Sj. a) Write...
Homework #5 - Elevator Simulation - Doubly Linked List The program needs to use a doubly linked list. Homework #5 - Extra Credit Elevator Simulation Algorithm We are going to develop an algorithm and implement in C++ to simulate a single elevator in a 10-story building. There will be some simplifying assumptions that will make this a bit less complex than a real-world implementation. The number of floors is not important, nor is the number of people getting on or...
Suppose we have a late-night bus and towards the end of the route, there are 3 passengers {P1, P2, P3} and 5 stops {S1, S2, S3, S4, S5} remain. Suppose further that each passenger is inebriated and is thus is equally likely to get off at any one of the stops. (i) We wish to list the set of outcomes in the sample space each of whose outcomes is an ordered triple of all three Sij for I-1,2,3, where Sij...
3. Suppose we have a late night bus and towards the end of the route, there are 3 passengers {P, Pz2 , P3} and 5 stops SI,S2,S3,S4,Ss, remain. Suppose further that each passenger is inebriated, and is thus is equally likely to get off at any one of the stops (i) We wish to list the set of outcomes in the sample space each of whose outcomes is an ordered triple of all three Sij for l=1,2,3, where Sij means...
Ladder logic PLC, elvevator An elevator has three floors (basement, first floor and second floor). Three digital inputs which stands for a sensor at each floor. Two outputs which makes the elevator either go up or down. Three pushbuttons which are pressed on a HMI panel. The elevator is on the basement and you press PB2 and the elevator goes straight to the second floor. The elevator is on the basement and you press first PB2 and then PB1. The...
Two people enter the elevator in a 5-floor building. Let N1 and N2 denote the floors that they want to go. Assume that ?1 and ?2 are independent and equtl to 2, 3, 4 and 5 with probabilities 1/4 each. (a) Write down the joint PMF (b) Calculate ? (?1 > ?2) and ? (?1 = ?2) (c) Let ?1 and ?2 denote the number of stops that each of them will make before arriving to their floor. What is...
Design a Mealy FSM that will model an elevator that can be at any of 4 floors of EPIC (Ground, First, Second, and Third). There are 2 input buttons that are active High – U to move UP and D to move DOWN. The input buttons are mutually exclusive, that is, only one of them can be active at any point in time (U = 0 and D = 1 makes it go DOWN, and U = 1 and D...