Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi there, can you help with this question? I want the explanation for how the printer handles many instructions, flowchart, and source code C++ object-oriented

image text in transcribed

Hi there, can you help with this question? I want the explanation for how the printer handles many instructions, flowchart, and source code C++ object-oriented program. Thank you so much for your helping.

Consider the following situation in a computer science laboratory. On any average day about 10 students are working in the lab at any given hour. These students uses the shared printer in the lab to print their assignments and reading materials. The time taken for printing tasks varies from one another depending on the pages volumes printed by students. Students can send printing instructions from any terminals attached to same network of the printer. Hence, many students can do so at once. Below is the six printing job (each labelled as Task ID) that await to be printed along with their printing time and arrival time. Note that time unit starts with to. Task ID T1 T2 T3 T4 T5 Table 1 Execution Time Arrival Time 3 unit time to 5 unit time t1 2 unit time t3 4 unit time t6 6 unit time t10 1 unit time 114 T6 The timeline of printing job arrival time for Table 1 is illustrated in Figure 1 (up until the last job arrived) to t1 t2 t3 t4 T1/T2 T3 Arrival Time ts to tz ts to T4 Figure 1 T5 t10 111 112 113 114 T6 Explain how can the printer handles the many instructions. Show your solution in terms of flowchart and full program. Make sure your program use dynamic queue as the data strcuture and simulates the whole executions till completion. Your program should prints the time when the print job from each student started and their waiting time. It also need to calculate the time needed to complete all printing jobs and the average waiting time

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions