Answered step by step
Verified Expert Solution
Link Copied!

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

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

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions

Question

What are the four primary objectives of data entry?

Answered: 1 week ago

Question

2. Identify issues/causes for the apparent conflict.

Answered: 1 week ago

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago