This exercise involves designing a help-desk priority manager. Help requests are stored in a text file with the following structure: priority, id of requesting party, time of request The priority is an integer in the range 1–5 with 1 being the least important and 5 being the most important. The id is a four-digit employee identification number and the time is in TimeSpan.Hours, TimeSpan.Minutes, TimeSpan.Seconds format. Write a Windows application that, during the Form˙Load event, reads five records from the data file containing help requests, prioritizes the list using a priority queue, and displays the list in a list box. Each time a job is completed, the user can click on the job in the list box to remove it. When all five jobs are completed, the application should automatically read five more data records, prioritize them, and display them in the list box
This exercise involves designing a help-desk priority manager. Help
requests are stored in a text file with the following structure: priority, id
of requesting party, time of request The priority is an integer in the range
1–5 with 1 being the least important and 5 being the most important.
The id is a four-digit employee identification number and the time is in
TimeSpan.Hours, TimeSpan.Minutes, TimeSpan.Seconds format. Write a
Windows application that, during the Form˙Load event, reads five records
from the data file containing help requests, prioritizes the list using a priority queue, and displays the list in a list box. Each time a job is completed,
the user can click on the job in the list box to remove it. When all five jobs
are completed, the application should automatically read five more data
records, prioritize them, and display them in the list box
Step by step
Solved in 4 steps