By testing example with different values for the inputs

Assignment Help Computer Engineering
Reference no: EM1330437

A tech support queue consists of n number of positions and the current position that the tech support individual is working with. If there are no customers that need assistance, the tech support person will go on break for x number of seconds (representing minutes). Also if a customer enters the support queue but the queue already has n number of individuals, then the customer is rejected (with a counter). The tech support person will help the person for y number of seconds (representing minutes). The customers should come in at a steady rate by z number of seconds. There should be a max of customers that may come in as w.

STEPS
1. Write a program using C++ or Java that will take in the following parameters from the user:

x: break for number of seconds
y: time it takes to resolve one individual
z: rate that the customers should be added
w: maximum number of customers allowed to attempt to enter the queue

2. If the rate of y is less than z, then the queue may never get full. The program will simulate process synchronization. You will want to make sure that you output a message during each of these transactions:

Tech support goes on break
Tech support comes back from break
Customer attempts to enter queue
Customer enters queue at position (#)
Customer is rejected due to queue being full
Tech support is currently serving customer (#)
Tech support is finished serving customer (#)
Last customer is finished being served

3. Output the number of served customers and the number of rejected customers with the total length of time it took to serve the customers. Develop a thorough testing example with different values for the inputs.

Reference no: EM1330437

Questions Cloud

Explain privacy and security issues : Explain privacy and security issues - what do you meant by privacy and security issues explain with example
Describe the providers equilibrium salary : Describe the provider's equilibrium salary and how many nursing units it will hire.
Explain what hr staff will you need in london : International HRM for an IT Consulting Firm - What HR staff will you need in London? Will your HR employees be expatriate employees, host country nationals, and/or third country nationals?
Vision statement for reaching your ideal potential : How did you develop this vision statement for reaching your IDEAL potential?
By testing example with different values for the inputs : The customers should come in at a steady rate by z number of seconds. There must be a max of customers that may come in as w.
A discussion on kirkpatrick''s four levels of evaluation : Provide a explained discussion on Kirkpatrick's four levels of evaluation?
Explain customer behavior : Explain customer behavior - what do you meant by customer behavior illustarte
Employee, consumer and community relations : What are the key facts and critical issues of that event and summarize them here as they relate to the past conduct of the organization and examine American Red Cross's effort to improve relations with each of these stakeholder groups: employee, c..
Suppose the costs also benefits incur at the end of the year : Suppose the costs also benefits incur at the end of the year, should the city buy the trucks.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create a compensation structure

Evaluates both approaches (job-based and person-based) and creates a compensation structure based on both approaches. In considering both approaches, what would the compensation structure look like for each position? Justify your recommendations w..

  Test a program that generates 1000 random numbers

write and test a program that generates 1000 random numbers between 1 and 6 and stores them in a data file.Write down a second program the takes the data produced by the first program and analyses it to produce a table showing the number of times ..

  Different visual basic command

Write down the visual basic command in order to Load a LVM file ( file name: Data.lvm), Delete the first 22 row , Insert a new column from 0 to last row of file with increment of 0.1 ( For example, if there are 25 rows in Data.lvm; then 25-22=3, it w..

  Program to determine weighted average of test

Write an algorithm for a program which prompts the user to enter the five test scores, determine total of the five tests and determine the weighted average of each test supposing that each test weighs 20%.

  Chomsky normal form

Requesting assistance with the Theory of Computing.Construct a PDA that accepts L.

  What is the variety of addresses available in each networks

What is the variety of addresses available in each  networks

  Developing the algorithm and analyzing its running time

Katt wishes you to develop an algorithm that, provided a string X, computer efficiently how many ways X can be broken up into the sequence of words.

  Operation for circular linked list

Write down an algorithm or code segment for searching the circular linked list for a given item. Write down an algorithm or the code segment for locating nth successor of an item within a circular linked list (nth item which follows the given item ..

  Explain contents of an initially empty avl tree

Explain contents of an initially empty AVL tree

  How to establishing a secure computer room

Include the principles of separation of duties to find out who should be granted access into the computer room and the type of access they should have.

  Modify java application that displays the product number

make a Java application that displays the product number, the name of the product, the number of units in stock, the price of each unit, and the value of the inventory (the number of units in stock multiplied by the price of each unit).

  What are prospect trends for healthcare informatics

What are prospect trends for healthcare informatics.

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