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

  Virtual machine forensics

Determine what you perceive to be the greatest challenge when dealing with virtual machines from a system forensics perspective. Provide a rationale with your response.

  What are the equilibrium price and quantity of corn

The table above contains information about the corn market. Use the table to answer the following questions. a.       What are the equilibrium price and quantity of corn? b.       Suppose the prevailing price is $9 per bushel. Is there a shortage o..

  Multiple choice java programming questions

Determine which of the following may be a violation of information hiding if inserted for the comment above?

  Programming using the java language

Programming using the Java language. The basic concepts of object-oriented programming. Topics used will include algorithmic logic, control structures, data and program design, objects and classes.

  Corrections as necessary and output screen snapshots

Submit all completed programs, with corrections as necessary and output screen snapshots, to demonstrate that they all perform properly to meet the specifications.

  Write a code fragment that would printout the multiplication

Write a code fragment that would printout the multiplication table for the number 3 multiplied by (1-10) .

  How do you write else statements

How do you write else statements when you write an infinite loop?

  Prepare a program to triple each number in the list

Write a program that will read in a list of numbers, triple each number in the list and print the result - Write a program that will read in 2 numbers per line, and print the sum.

  Write complete java program to read from keyboard

Write complete Java program to read, from keyboard, a student's first and last name and six grades. It will display on screen last name then first letter of first name with a period.

  Implement the basic properties of a bank account

Define the class bankAccount to implement the basic properties of a bank account. An object of this class should store the subsequent data:

  Evaluate the amount of a certificate of deposit on maturity

Write a GUI program to compute the amount of a certificate of deposit on maturity -  prepare a program to evaluate the amount of a certificate of deposit on maturity

  Project amount of total sales

Write a program called sales_prediction.js, that displays the profit based on the project amount of total sales for the year. Use a literal value of $2,500,000 for the projected total sales amount. Display the profit amount formatted to two decima..

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