C++ queue
Get Help With a similar task to - C++ queue
Additional Instructions:
CPSC 1160: ASSIGNMENT 9[25 MARKS] To Do You will need to implement a Queue class using a linked list that should have a template, so it can store any data type. You only need to implement a constructor, enqueue, dequeue,isEmpty and the big three. Write a program called memorySim.cpp which will use the Queue class you have implemented. You should use a queue to store jobs to go into memory. Your program should ask the user for a file to simulate and the capacity of memory. Every line in the file has the time the Job arrives, the space the job takes up, the time it takes to complete the job and the ID of the Job. Your program should queue jobs when they arrive but should only start running them when there is space in memory to hold the job. The only new job that can be added into memory is the one at the start of the queue. Your output should match the sample below. When your simulation is done print out the total time it took to run the simulation, the number of jobs and the average time it took to complete a job. Test.txt 3 11 8 1 3 3 3 2 7 2 3 3 10 5 3 4 13 9 3 5 18 2 2 6 23 8 1 7 24 7 2 8 28 5 2 9 30 7 5 10 To Submit 1) You should zip and submit all the h and cpp files that you wrote to compile them.
Related Questions
Tutlance Experts offer help in a wide range of topics. Here are some of our top services:
- Math homework help
- Nursing homework help
- Statistics homework help
- Nursing coursework help
- Capstone project writing services
- Essay writers for hire
- Case study writing help
- Buy college papers online
- Buy college research papers
- College homework help
- Professional resume writing services
- Programming homework help
- Coursework writing help
- Term paper writing help
- Biology homework help
- Do my physics homework
- Dissertation data analysis help
- PhD Dissertation writing services
- Chemistry homework help
Post your project now for free and watch professional experts outbid each other in just a few minutes.