2. A network printer is installed in Lab1 and users sent their print jobs in the order: {Job1, Job2, Job3,
Job4, Job5, Job6, Job7, Job8}. It is a requirement that jobs be printed/served in the order they were
sent to the printer. You are required to implement a data structure that will implement
this behaviour.
a. What data structure is best suited for this scenario?
b. Write a function scheduleJob() that will get jobs and schedule them for printing.
c. Write a function serveJob() that will serve the first 4 scheduled jobs.
d. Write a function newSchedule() that displays the jobs after operation in c. above (print output) in
the format:
***************
The new Schedule
***************
List of jobs after operation in c.
++++END OF SCHEDULE+++
1
Expert's answer
2021-09-25T17:47:25-0400
Dear Selma, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment