Develop a thorough testing example with different values

Assignment Help JAVA Programming
Reference no: EM13941276

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: EM13941276

Questions Cloud

Consider the cash flows : Consider the following cash flows: Year Cash Flow 0 –$ 34,000 1 15,100 2 16,600 3 12,500 Howell Petroleum, Inc., is trying to evaluate a generation project with the following cash flows: Year Cash Flow 0 –$37,500,000 1 56,500,000 2 –12,500,000
Estimates the cash flows used to analyze a proposed project : Which of the following should be considered when a company estimates the cash flows used to analyze a proposed project?
How do one uses the macauleys model : How do one uses the Macauleys model to find deflections of bars
Considering adding one additional stock to 3-stock portfolio : A highly risk-averse investor is considering adding one additional stock to a 3-stock portfolio, to form a 4-stock portfolio. The three stocks currently held all have b = 1.0, and they are perfectly positively correlated with the market. However, Sto..
Develop a thorough testing example with different values : 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
Accurate reflection of the issues facing parents : Discuss if this statement is still an accurate reflection of the issues facing parents today. Must be Harvard Referencing must be give on before 20 dec 2015
Which one would be considered liberal : Define the differences between judicial restraint and judicial activism. Which one would be considered liberal and which one would be conservative.
Gain a competitive advantage : Evidence that the organizations has a gain a competitive advantage from their marketing processes. Theoritical analysis of the reasons  for the achievement of this advantage
More desirable addition to portfolio then stock : Stock A's beta is 1.5 and Stock B's beta is 0.5. Which of the following statements must be true, assuming the CAPM is correct. Stock A would be a more desirable addition to a portfolio then Stock B. In equilibrium, the expected return on Stock B will..

Reviews

Write a Review

 

JAVA Programming Questions & Answers

  Display an image of an apple on the screen

Display an image of an apple on the screen, then after 3 seconds automatically change the display to an orange.

  Implement a shopping cart class with user interface

project will be to implement a shopping cart class with user interface (UI) that contains main() in Net Beans. The UI class will be used to perform user input/output and to invoke the appropriate methods of shopping cart class. When your program star..

  1obtaining the new script download and save the attached

1.obtaining the new script download and save the attached comment cgi mailer script form-mail.pl to your servers

  Write the program using a for-loop and a break statement

Write a program that asks the user to enter a number that's positive and a multiple of 4. The user has three attempts to find such a number. Write the program using a for-loop and a ‘break' statement in the loop

  Create a complete java application

Create a complete Java application that meets these requirements and the program has an opening comments section (using block comments) with the file name, date, your name, and purpose of the program.

  Write a program using an array that will store

Using java programing : Write a program using an array that will store input data. Prompt the user for and read 6 numbers between 70 and 90. Verify the numbers should be greater than 70 and less than 90. If the number is less than

  Rectangular and cylindrical coordinates

Write a program to convert between rectangular and cylindrical coordinates, based upon user input.

  Digit decimal seconds counter using two 7-segment displays

Write a program that implements a two digit decimal seconds counter using two 7-segment displays.  Make this program using java programming. Make this program in simple way.

  Part 1product maintenanceyoull create a series of pages

part 1product maintenanceyoull create a series of pages that allow you to add update or delete a product thats

  Write a bluej project- birthday paradox

The birthday paradox states that if there are 23 people in a room then there is a slightly more than 50:50 chance that at least two of them will have the same birthday.

  Statements to print a label

Add the statements to print a label in the following format (the numbers in the example output are correct for input of $4.25 per pound and 41 ounces). Use the formatting object money to print the unit price and total price and the formatting object ..

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