Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started