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

  Creating an object oriented data model

Create an object oriented data model, including all appropriate notations, to represent the given situation. In a particular region there are a number of gardens.

  Writing a java program

The history teacher at your school requires help grading a True or False test. The students' IDs and test answers are stored in a file document.

  Question about isdn

Today ISDN cost $40 every month for BRI service which includes 1 D Channel and 2 B Channels. Every channel is capable of transmitting 64kbps of voice, data, video or fax for a total of 128 kbps.

  Finding total available storage capacity

A certain hard disk has 480 cylinders, sixteen tracks, and thirty-two sectors of 512 bytes each. It spins at 4800 revolutions per minute, and has an adjacent cylinder seek time of eighty msec, and a max seek time of onde hundred msec.

  Binary search tree adt

Write a client method that returns a count of the number of nodes in a binary search tree that contain a value less than or equal to the argument value.

  Computing total number of keys needed in symmetric cipher

Determine the total number of keys that are needed for organization if symmetric cipher is used.

  Write algorithm which divides n objects of u into k clusters

Suggest the algorithm which divides n objects of U into k clusters, making use of MST of a graph. Give a simple argument of correctness and bound on the running time of the algorithm you are proposing.

  Using channel to implement the back up

Think about an organization, which has a rented communications channel in two buildings, building A and building B. They have a set of servers in building A,

  Finding majority element

Let A be an array of n elements. An element x is said to be a majority element in A if it occurs in A more than n/2 times.

  Create a program using c++

Create a program using C++ or Java that will automatically generate x numbers between a range provided by the user? For purposes of this project, the range can be 1-20 and store them in an array.

  Preparing a java program

Prepare a program that asks the user how many automobiles are to be explained, and for each automobile it inputs the user's selection of make and color.

  Relationships in a database model

Discuss different types of classifications and do they overlap, or do they each tell us something unique about the entity relationship?

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