Question: Write a menu-driven application to implement a print job queue in C++ using class only Create menu options to request a print job ask for

Write a menu-driven application to implement a print job queue in C++ using class only

Create menu options to

  • request a print job
    • ask for the job name; the name may have blank spaces and consist of alphanumeric characters only, must start with a letter
    • display a confirmation of the job request received and the status ( denied/accepted) along with the details such as a tracking number, position in the queue( if accepted), reason for denial (if denied), etc
  • execute a print job (remove from the queue )
    • display a confirmation along with the tracking number, the name of the print job, and the number of print jobs currently in the queue
  • display number of print jobs executed, number of print jobs denied, number of jobs currently in the queue, number of the print job request placed
  • quit
  • the menu option made from cases or do switch and while loop with error checking in input may be called in main from a class member function
  • Queue made from the arithmetic algorithm with no using memory allocation.

Notes

  • the queue can hold 10 print jobs only
  • implement the print job item as a class
  • implement queue as a class with an automatic array
  • tracking to be done by queue class
  • no need to keep details of the denied print jobs, only their count
  • no vectors
  • no dynamic memory allocation
  • use enum type or enum class where appropriate

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!