logo Use SA10RAM to get 10%* Discount.
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Anthony BidiniBusiness
(5/5)

512 Answers

Hire Me
expert
Paramjeet KaurManagement
(5/5)

592 Answers

Hire Me
expert
Sikhar AggarwalMathematics
(5/5)

865 Answers

Hire Me
expert
Joseph MburuStatistics
(/5)

819 Answers

Hire Me
C++ Programming

Your task for this assignment is to develop a computer repair scheduling application. The application will use an array-based heap to implement a priority queue data structure in C++. This will be accomplished utilizing a user-defined class.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Your task for this assignment is to develop a computer repair scheduling application. The application will use an array-based heap to implement a priority queue data structure in C++. This will be accomplished utilizing a user-defined class.

  1. Implement a transaction-based priority queue data structure using C++. The program will be interactive. A prompt will be displayed requesting an input transaction. Each input transaction will be entered at the command line and results will be displayed on the console.
  2. Each input transaction will represent a new computer repair order to be scheduled or a “service” command. A new computer repair order will be represented in three parts separated by hyphens: customer ID (variable length), computer model year (4 digits), and warranty code (y or n). Each repair order will be scheduled based on priority and the order in which the repair order was received (first-come-first-served). A warranty repair order (i.e., warranty code = ‘y’) is assigned priority 1 (highest). A non-warranty repair for a computer model less than 6 years old is assigned priority 2. A non-warranty repair order for a computer model older than 5 years is assigned a priority 3 (lowest). Each repair order is placed in a priority queue and will be serviced by the next available repair technician.

A transaction that contains a “service” command results in a repair order being removed from the priority queue and the customer ID being displayed on the console. A transaction containing the string “end-of-file” will signal the end of the input. Display the number of repair orders remaining in the queue when the “end-of-file” transaction is processed.

 

Sample input transactions and output expected:

guo-2018-y

hannie-2014-n

ian-2004-y

service (output: guo)

service (output: ian)

danny-2012-n

eli-2017-n

fan-1992-y

service (output: fan)

service (output: hannie)

ann-2013-y

bow-2016-n

cho-2013-n

service (output: ann)

service (output: eli)

service (output: bow)

end-of-file (output: There are 2 remaining repair orders in the queue.)

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

Get Free Quote!

418 Experts Online