heduling a Class (Intermediate above) You are an administrator for the Kulliyyah and is assigned the task to schedule a set of classes for a given day. Unfortunately, there is only one lecture hall and therefore, two classes cannot run at the same time. This is usually an easy task, however, there are some criteria that you would have to consider. The criteria are as follows: · Each class has a duration class time. · Higher level courses has higher priority than other low level courses. · Some lecturers prefer to have morning classes instead of the afternoon classes because they come to the office much earlier than other lecturers so they should be scheduled earlier. Your job is to propose the best scheduling based on this criteria. To do this, you will write a C++
Oh no! Our expert couldn't answer your question.
Don't worry! We won't leave you hanging. Plus, we're giving you back one question for the inconvenience.
Here's what the expert had to say:
Hi and thanks for your question! Unfortunately we cannot answer this particular question due to its complexity. We've credited a question back to your account. Apologies for the inconvenience.
Ask Your Question Again
30 of 30 questions left
until Jul 17, 2021
Question
Scheduling a Class (Intermediate above)
You are an administrator for the Kulliyyah and is assigned the task to schedule a set of classes for a given day. Unfortunately, there is only one lecture hall and therefore, two classes cannot run at the same time. This is usually an easy task, however, there are some criteria that you would have to consider. The criteria are as follows:
· Each class has a duration class time.
· Higher level courses has higher priority than other low level courses.
· Some lecturers prefer to have morning classes instead of the afternoon classes because they come to the office much earlier than other lecturers so they should be scheduled earlier.
Your job is to propose the best scheduling based on this criteria. To do this, you will write a C++ program that will first sort the classes by lecturer arrive time and then by course levels. Lecturers arriving early, can start first, but if they arrive at the same time, the higher level course will go first. Course 3301 for example, has higher priority than 3300 and 1100.
You will need a struct, to be defined, as the one given below.
Step by stepSolved in 3 steps with 2 images
- Draw a diagram for use case for vending machine. 1. Actors: • User: Interacts with the vending machine to make a purchase. • Maintenance Personnel: Responsible for restocking the vending machine and performing maintenance tasks. 2. Use Cases: • Select Product: The user selects a product they want to purchase. • Insert Payment: The user inserts the required payment (e.g., coins, bills, or cards). • Validate Payment: The vending machine verifies the payment provided by the user. • Dispense Product: If the payment is validated, the vending machine dispenses the selected product. • Provide Change: If the user's payment exceeds the product's price, the vending machine provides change. • Refill Stock: Maintenance personnel refills the vending machine with products when they run out. • Perform Maintenance: Maintenance personnel performs routine maintenance tasks on the vending machine. 3. Relationships: • User interacts with the vending machine to perform use cases such as selecting a…arrow_forwardDraw a Use Case Diagram for Patient management system Vic’s hospital has a patient management system. A patient must register with the hospital before start of the treatment. Once registered, a doctor is assigned to the patient. The patient must be provided with an appointment date based on the urgency. A doctor meets the patient and request tests to be performed by labs. When the lab results are ready, a new appointment is set with doctor. Doctor meets the patient again and prescribe medicines and treatments/rehabilitation.arrow_forwardEvent-Driven Approach Write a program (in any programming language) to simulate Event-driven approach. inputs: Arrival Times, and Departure times for entities. OR TBAI and STi for entities Output: Time Calculations, System Status, Instructions executed in each iteration needed statisticsarrow_forward
- Software Engernning Question: (JUST NEED DIAGRAMS) Consider a Vehicle Maintenance System where a customer can come for inspecting his/her vehicle. The mechanic will inspect the vehicle and be paid for it. They will store the inspection result in the inspection record. Based on the record, the mechanics can repair the vehicle too if the customer wants and be paid for it. The owner can order parts to the vendor if there is any shortage in the inventory. The customer will pay bill for inspection and repair. Draw a Data Flow Diagram (Level 0 and 1) for the system. Then for any one of the process, show the level 2 data flow diagram.arrow_forwardSolve the system using Design the Use Case Diagram (contains at least 10 use cases) (Example)arrow_forwardReal-time Scheduling: Select all of the following statements that are true. Soft real-time systems must guarantee that real-time tasks will be serviced in accord with their deadline requirements. A periodic task is a job that is repeated regularly. A real-time task's CPU utilization can be calculated by dividing its period length by its service time for one period. Schedulability refers to a property indicating whether a real-time system (a set of real-time tasks) can meet its deadlines. Real-time systems apply an admission-control algorithm in order to decide whether a task is admitted (guaranteeing that it will complete on time) or rejected (if it cannot guarantee that the task will be serviced by its deadline).arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education