1) Write an object oriented C++ program (i.e. a class and a main function to use it) that meets the requirements of Application Exercise #1 on pages 852-853 of Chapter 16 of the textbook. You may use any method of inputting your data to your program you wish. Note that you will need to create your own test data An industrial engineering, it is sometimes necessary to simulate manufacturing and service operations for the purpose of improving efficiency and optimizing the system. In this problem you are to model a rapid oil change and lubrication business. The queue data structure can be used to do this. Assume that the station has the following: a. There are three bays for changing oil. b. It takes 15 minutes to service each car. c. One car arrives randomly between every 2 and 20 minutes. d. At the end of the day, all waiting cars are sent away. Write your program to model 30 days of operation. Determine the average waiting time for the cars and the total amount of idle time for the bays. Run your program 12 times to get an understanding of the variability of the results. Report all of your answers.

The main objective of this assignment is to create an object-oriented C++ program that simulates a rapid oil change and lubrication business. The simulation should model 30 days of operation and calculate the average waiting time for cars, as well as the total amount of idle time for the bays. To ensure accurate results, the program should be run 12 times to determine the variability of the outcomes.

To accomplish this, we will create a class that represents the oil change station, with three bays for changing oil. Each bay will have its own queue to manage the arrival of cars. The program should simulate the arrival of cars randomly between every 2 and 20 minutes. The service time for each car is fixed at 15 minutes.

The first step in creating the program is to design the class that represents the oil change station. The class should have private member variables to keep track of the current state of the simulation, such as the time, the number of cars serviced, and the total waiting time for cars. Additionally, it should have public member functions to initialize the simulation, simulate the arrival of cars, and calculate the average waiting time and total idle time.

To simulate the arrival of cars, we can use a random number generator to determine the time between each car arrival. The random number generator should generate values between 2 and 20 minutes. Each time a car arrives, it should be added to one of the bays’ queues. If all the bays are occupied, the car should be sent away.

During the simulation, the program should keep track of the waiting time for each car in the queue. This can be done by incrementing the waiting time for each car in the queue by the time it takes to service each car, i.e., 15 minutes. Additionally, the program should calculate the total idle time for the bays by subtracting the time spent servicing cars from the total simulation time.

After simulating 30 days of operation, the program should calculate the average waiting time for the cars by dividing the total waiting time by the number of cars serviced. Similarly, it should calculate the total idle time for the bays by subtracting the total time spent servicing cars from the total simulation time.

To account for the variability of the results, the program should be run 12 times. This will enable us to determine the range of possible outcomes and provide a more accurate representation of the average waiting time and total idle time.

In summary, the program should create an object-oriented simulation of a rapid oil change and lubrication business. It should model 30 days of operation, calculate the average waiting time for cars, and determine the total idle time for the bays. By running the program 12 times, we can assess the variability of the outcomes and report the results accordingly.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer