Question: Please read the requirements carefully. (using C++) Consider the following situation in a computer science laboratory. On any average day about 10 students are working

Please read the requirements carefully.
(using C++) 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 atonce. 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 T6 Table 1 Execution Time 3 unit time 5 unit time 2 unit time 4 unit time 6 unit time 1 unit time Arrival Time to 11 13 16 110 114 The timeline of printing job arrival time for Table 1 is illustrated in Figure 1 (up until the last job arrived). 12 14 25 LO 11 12 19 Arrival Time 16 17 18 T4 t3 T3 110 111 112 113 114 T5 T6 Figure 1 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. Requirements: 1. Flowchart 2. Problem analysis
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
