A local company owns three 3d printers

Assignment Help Data Structure & Algorithms
Reference no: EM13163492

Case description
A local company owns three 3D printers installed in its three different branches. Clients can call the company and reserve the use of one printer for some hours. Because of the heavy request for its printers and the time needed for maintaining the machines, the company receives requests from clients for one week and then schedules the use of its machines for the next week. When a client calls the company, he/she has to specify the number of hours he/she needs a printer, the preferred printing branch (1, 2, or 3), and his/her name.
The company wants to test different scheduling strategies and select the most beneficial one. These strategies include:
- First Come First Serve (FCFS): This strategy will not consider the preferences of the clients. However, it will consider the order of their requests. It will assign the earliest available printer to the client.
- Shortest Work Duration First (SWDF): This strategy will not consider the preferences of the clients. It will assign the printers by giving priority to the clients who requested the shortest work durations. Like in FCFS, the clients will be assigned to the earliest available printer.
- Longest Work Duration First (LWDF): This strategy will not consider the preferences of the clients. It will assign the printers by giving priority to the clients who requested the longest work durations. Like in FCFS, the clients will be assigned to the earliest available printer.
- Preference-Based (PB): This strategy will assign the printers to the clients according to their preferences.
In order to assess the performance of each strategy, the company will be using the following two measures
- Work duration: For each of the four strategies FCFS, SWDF, LWDF, and PB, the company will schedule the requests of clients in a way to optimize the use of its printers (finish all the jobs as early as possible).
- Client satisfaction: For the three strategies FCFS, SWDF, and LWDF, the company will calculate the satisfaction percentage (percentage of clients who were assigned to the printers in the locations they prefer).
Your work
- Implement each of the four strategies as a separate user-defined function.
- Implement the function main() that asks the user to enter as many printer reservations as he/she wishes. For each reservation, the user has to enter the name of the client, the requested duration for the use of the printer as well as the preferred working site. Once the user stops entering new reservations, the function main() will call successively FCFS, SWDF, LWDF, and then PB. The function main() will do the following tasks:
2
o For each printing site, display the order of client names as well as their starting and finishing job times. The result will be something like:
1. Client1 (S:0 , F:7) 2. Client2 (S:7 , F:15) 3. Client3 (S:15 , F:20) ....
Remark: Here S means Start and F means Finish.
o For each printing site, display the total time to finish the assigned jobs.
o For each strategy, display the time needed to finish all the jobs as well as the clients' satisfaction percentage.
o Display which strategy if the best to choose if the company is trying to minimize the printers working duration.
The output of your C++ program could be something similar to what follows:
Please enter the following information ...
>>> Client: Adel
>>> Job duration: 7
>>> Preferred site (1/2/3): 1
More reservations (Y/N): Y
>>> Client: Leila
>>> Job duration: 10
>>> Preferred site (1/2/3): 3
More reservations (Y/N): Y
...
<<< First Come First Serve (FCFS) >>>
Site 1 -----------
Order: 1. Adel (S:0 , F:7) ...........................
Duration: 75 hours, Satisfaction: 25%
Site 2 -----------
Order: 2. Leila (S:0 , F:10) .....................
Duration: 50 hours, Satisfaction: 35%
Site 3: ............................................................
<<< Shortest Work Duration First (SWDF) >>>
Site 1 -----------
Order: 1. ...........................
Duration: ....................., Satisfaction: .....................
Site 2 ............................................................
Site 3: ............................................................
3
<<< Longest Work Duration First (LWDF) >>>
..................................................................
<<< Preference-Based (PB) >>>
..................................................................
BEST STRATEGY FOR THE CURRENT JOB REQUESTS IS .................................

Reference no: EM13163492

Questions Cloud

Is basil a resident of australia for tax purposes : The total price was $550. Later, a friend visiting their house saw the chairs and was sure they were Queen Anne antiques. He contacted a collector who inspected the chairs and offered Basil $14,000 for the set.
Compute the four lowest energy levels for an electron : Consider that a benzene molecule could fit nicely within a two-dimensional square box with each side having length of 5 degree A. a. Calculate the four lowest energy levels for an electron confined
Write general set of instructions will allow us to change : Write a general set of instructions that will allow us to change any displayed value (from 0 to 9) to any desired value (from 0 to 9) in the least number of steps. For example, if the displayed value is 1 and the desired value is 0,
Compute the uncertainty in position : Calculate the uncertainty in position. The function Ax(1-(x/a)) is an acceptable wave function for the particle in the one dimensional
A local company owns three 3d printers : A local company owns three 3D printers installed in its three different branches. Clients can call the company and reserve the use of one printer for some hours.
Explain what is the value of the equilibrium constant : Equal quantities of 0.010M solutions of an acid HA and a base B are mixed. The pH of the resulting solution is 9.4. A) If Ka for HA is 9.0×10?5, what is the value of the equilibrium constant for the reaction between HA and B
Find our the major issues currently on the agenda : Determine and report to the class on the latest issues being discussed by the IASB and the FASB in their joint project of revising the conceptual framework.
supply a student tester class that tests all methods : Implement a class Student. For the purpose of this exercise, a student has a name and a total quiz score. Supply an appropriate constructor and methods getName( ), addQuiz(int score), getTotalScore( ), and getAverageScore ( ).
Prepare a statement of unrestricted revenues : Prepare a Statement of Unrestricted Revenues, Expenses, and Other Changes in Unrestricted Net Assets together with a Statement of Changes in Net assets.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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