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

  Implement a single threaded game engine

Implement a single threaded game engine and single player user interface for a casino style dice game. The rules are simple, the player places a bet and then rolls two dice before the house rolls against the player

  Write a program that plays a word game with the user

Write a program that plays a word game with the user. The program should ask the user to enter the following.

  Discuss how using arrays changes the way

Discuss how using arrays changes the way that your code is organized.

  Create a program that will simulate the child''s number guess

Create a program that will simulate the child's number guessing game with two players

  Techniques used to secure web servers

Two of the most popular web servers are Apache and Microsoft IIS. Discuss some of the tools and techniques used to secure these web servers.

  Scenario - clinic management system

Change the category of a doctor - Clinic Management System - Java client application that perform

  Program mimics a rudimentary spreadsheet

Change the averages so that they are rounded to the nearest one hundredth. The example above shows averages in format - Change the program so that before the spreadsheet window is displayed, the user sees the window

  Bilinear and nearest neighbour algorithm in java

How to do bilinear and nearest neighbour algorithm in java. Show how to eliminate change in pixel aspect ratio in java.

  Create an abstract class named element

Part 1: Create an abstract class named Element that holds properties of elements, including their symbol, atomic number, and atomic weight. Include a constructor that requires values for all three properties and a get method for each value.

  Determine the unit product cost of one pound

Determine the unit product cost of one pound of the Kenya Dark coffee and one pound of the Viet Select coffee and determine the unit product cost of one pound of the Kenya Dark coffee and one pound of the Viet Select coffee.

  Given the following data definition classpublic class exam

given the following data definition classpublic class exam private static int totalpublic static void settotalint t

  Explain java-oriented microprocessors presented by sun

Research the latest Java-oriented microprocessors presented by Sun. In what ways are they optimized to implement Java programs?

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