Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assume the Jerusalem Bank is start at 8 AM and end at 2 PM every day. The customers need to do tasksin the bank. The
Assume the Jerusalem Bank is start at AM and end at PM every day. The customers need to do tasksin the bank. The customertask is a class with the following attribute: Task ID Task name credit debit, query, open an account, close an account, etc Task arrival time must between AM and PM Task wait time the waiting time before the task is starting start time arrival time Task start time when the task is being served. arrival time wait time Task period timethe number of minutes needed to finish the task Task Priority there are types of prioritiesa. Normal task has no priorityb Important in this case we decrease minutes from the arrival timec. VIP in this case we decrease minutes from the arrival timeThis simulation of the bank system should be implemented using queue fundamentals.Create the following menu to simulate and implement the above system Add a task add a single task with necessary information Add n number of tasks. create n tasks with random information in an array, then sort thearray according to the arrival time and insert it to the queue Rarrange the queue check the wait time for each minutes wait move the task one positiontoward the front of the queue Print task information Total wait time for all tasks Time needed to finish all tasks How many task cant complete and done today Print the information of a served task Print the information of all tasks not yet served Exit
Solve in c
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started