Answered step by step
Verified Expert Solution
Link Copied!

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 8 AM and end at 2 PM every day. The customers need to do tasksin the bank. The customer-task is a class with the following attribute:1. Task ID2. Task name //credit, debit, query, open an account, close an account, etc3. Task arrival time// must between 8 AM and 2 PM4. Task wait time// the waiting time before the task is starting (start time arrival time)5. Task start time// when the task is being served. (arrival time + wait time)6. Task period time//the number of minutes needed to finish the task.7. Task Priority// there are 3 types of prioritiesa. Normal task (has no priority)b. Important // in this case we decrease 2 minutes from the arrival timec. VIP // in this case we decrease 5 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 system1. Add a task //add a single task with necessary information2. 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.3. R-arrange the queue //check the wait time for each 5 minutes wait move the task one positiontoward the front of the queue.4. Print task information5. Total wait time for all tasks6. Time needed to finish all tasks7. How many task cant complete and done today8. Print the information of a served task9. Print the information of all tasks not yet served.10. Exit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions

Question

Explain all drawbacks of application procedure.

Answered: 1 week ago

Question

Understand some techniques for evaluating the HRM function

Answered: 1 week ago