Question: C++ Program: A print queue algorithm assigns printing tasks to printers based on the number of pages to be printed. The tasks are grouped by
C++ Program: A print queue algorithm assigns printing tasks to printers based on the number of pages to be printed. The tasks are grouped by small jobs (less than 10 pages), medium jobs (11-25 pages), large jobs (26-50 pages) and very large jobs (51 pages and up). Each printer can print 7 pages per minute. Write a C++ program to prioritize print jobs and simulate printing times for systems that have 1 to 4 printers. Assume print requests happen every 30 seconds and that requests fit into one of the four job sizes listed above.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
