Use the person class functions to simulate a random arrival


(Statistics)

a. Construct a class named Person. The class should have no attributes, a single constructor function, and two member functions named arrive() and request(). The constructor function should be an empty, do-nothing function. The arrive() function should return a random number between 1 and 10, and the request() function should provide a random number between 1 and 15.

b. Test the Person class functions written for Exercise 4a in a complete working program.

c. Use the Person class functions to simulate a random arrival of a person and a random request for a floor to which the elevator should take this person.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Use the person class functions to simulate a random arrival
Reference No:- TGS02195411

Expected delivery within 24 Hours