In C++ Write a program that simulates a checkout line at a supermarket. The line is a queue object. Customers (i.e. cust

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

In C++ Write a program that simulates a checkout line at a supermarket. The line is a queue object. Customers (i.e. cust

Post by answerhappygod »

In C++ Write a program that simulates a checkout line at asupermarket. The line is a queue object. Customers (i.e. customerobjects) arrive in random integer intervals of 1-4 minutes, also,each customer is served in random integers intervals of 1-4minutes. Obviously, the rates need to be balanced. If the averagearrival rate is larger than the average service rate, the queuewill grow infinitely. Even with balanced rates, randomness canstill cause long lines.
Please upload the following:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply