Using C#: Write the code for a console application to solve the following proble
ID: 654204 • Letter: U
Question
Using C#:
Write the code for a console application to solve the following problem. Have the user first enter a number giving the total number of jobs to be scheduled on a machine. Then for each job, prompt the user to enter the jobs name, the processing time (in minutes) and due date (a datetime, latest time at which a job is due). Declare and use appropriate data structures to represent this data. Assume there is a cost of $100 per hour for each late job. The "Shortest Processing Time" rule is commonly used in this case to try to minimize late costs. It says, simply, that the shortest jobs should be scheduled first. Use due date to break ties (schedule earlier due dates first). Assume all jobs are being scheduled starting from now (the system clock time). Output the final schedule of jobs (for each job, list name, completion time, due date, and lateness), and then the total late cost across all jobs.
Explanation / Answer
There are two method:
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.