please use python to implement and send screenshots of program running
111 ** 4G 8:56 AM 4% Done Project2.pptx Requirement Simulate the Banker's algorithm Suppose we have 3 resources, 5 processes For a given input of resource total number (Total vector) current resource allocation state (Allocation matrix) each maximization request (Max matrix) Determine whether deadlock will happen? If no deadlock, give a safe sequence of the processes. Implement in any programming language you prefer Refer to Chapter06 for details of the banker's algorithm A step by step demo of the algorithm . You can refer to this video to understand the algorithm Banker's Algorithm General steps of the program ceput from githe command linear (1) Let the user input the necessary data Total vector. Total resource numbers Max matrix: Maximum required resources of each process Allocation matrix: Allocated resources to each process (2) Calculate the Need and Available data Need matrix: resources still need by each process Available vector: resources can be allocated . (3) Determine whether the current state is safe or not If yes, print the safe sequence ..ll +31 4G 8:56 AM @ 4% Done Project2.pptx A step by step demo of the algorithm You can refer to this video to understand the algorithm Banker's Algorithm General steps of the program You can read the prom sitie the cuttinut linea (1) Let the user input the necessary data Total vector: Total resource numbers Max matrix: Maximum required resources of each process Allocation matrix: Allocated resources to each process (2) Calculate the Need and Available data Need matrix: resources still need by each process Available vector: resources can be allocated (3) Determine whether the current state is safe or not If yes, print the safe sequence Sample input-Total vector . You can let the user input the total resources like below Total vector - 13 2 2] Please input the total resources of type 1: 3 Please input the total resources of type 2: 2 Please input the total resources of type 3: 2 ...l ** 4G 8:57 AM 4% Done Project2.pptx veco . You can let the user input the total resources like below Total vector - [3 2 21 Please input the total resources of type 1: 3 Please input the total resources of type 2: 2 Please input the total resources of type 3: 2 113 Sample input-Max matrix . You can let the user input the maximum required resources shown in below table like this Max 753 3 2 2 902 2 2 2 ex there the More The Man the the Let the nature for Free you or th Type ne theme se put the proces The Allocation matrix is similar Requirement to the report Please submit a report in WORD/PDF format The report should include below three parts: the design of your program the code of your program the sample usage of your system (screenshots)