Write a program to simulate queueing system in the cinema

Assignment Help Computer Engineering
Reference no: EM131961943

Assignment

You are required to write a program to simulate queueing system in the cinema with the following requirements:

1. There are two type of customers to be served which are: VIP member and non-member customers.

2. The number of tickets wanted to be bought by the customer are vary in a range of 1 to 10 tickets.

3. There must be at least 2 queue (you can have more than 2 queues) in the queueing system. Of all the queues, there must be one priority queue which only allow VIP member to queue up.

4. There are 4 service counters in the queueing system. The service rate of the sales worker are as below:

o Counter 01: Required 10 seconds to sell 1 ticket.
o Counter 02: Required 15 seconds to sell 1 ticket.
o Counter 03: Required 30 seconds to sell 1 ticket.
o Counter 04: Required 15 seconds to sell 1 ticket.

When a customer arrive at the cinema, he/she will go to the queue. If the customer is a VIP member, he/she will go to the priority queue, or else if he/she is a non-member, he/she will go to the normal queue. VIP member customer must be served before any non-member customer.

Whenever there are customers waiting in the queue, the available service counters has to call the next customer and serve them. There should not be any idle service counter except there is no more customer to serve.

Reference no: EM131961943

Questions Cloud

What are the profit-maximizing price : What are the profit-maximizing price and quantity from a single-price strategy?
What was your favorite segment of the first weeks lessons : What was your favorite segment of the first week's lessons? (The assignment, reading, video, discussion, etc.)? Why?
Create an argument for additional regulation : Create an argument for additional regulation as a preventative measure against businesses being hacked. Provide support for your argument.
Optical mix between capital and labour : With the advances in new technology, what challenges do firms face when deciding on the optical mix between capital and labour given the constraints of costs
Write a program to simulate queueing system in the cinema : You are required to write a program to simulate queueing system in the cinema with the requirements- There are two type of customers to be served which are.
Lucas and taylor monetary stimulus beliefs : What are the differences between Lucas and Taylor's monetary stimulus beliefs?
Explore reasons for project failures : Explore reasons for project failures through case study and Demonstrate a student's understanding of lessons learnt and their application to project management
Impact free market economics and capitalism : Compare and contrast how these impact free market economics and capitalism.
What you believe to be the greatest need in jurisdiction : Sex offender rehabilitation is most effective when treated in the cognitive-behavioral environment. Given the obstacles, outline a pathway to treatment.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd