(Solved):Q: Write a program …

Question

Write a program in Python that serves as a password checker. The string password that Python should check for is, "wahtZ9t%". The program must limit the user to 3 password attempts. A loop controlled by the range function must be used to execute up to 3 times. If the user entered password matches the target then the computer should output a success message that includes the number of tries it took to get it right. Then the loop must exit. Otherwise display a failure message, including attempts left and return to top of loop. If the user fails all 3 attempts output a message that the users password has been revoked.

Continue reading

(Solved):Q: Give a determini…

Question
<img src="https://prod-qna-question-images.s3.amazonaws.com/qna-images/question/55567383-e81c-4062-b678-e90f7fa3da97/f49e9b30-f5ec-41c8-9235-6fdc708cc033/9lbkx7b_processed.png" alt="Give a deterministic pushdown automata (DPDA) that recognizes the language L = {x*y}w*z° | 0 <i< j,0<k

Give a deterministic pushdown automata (DPDA) that recognizes the language L = {x*y}w*z° | 0 <i< j,0<k < l} Provide a brief explanation of how the DPDA works.

Continue reading

Scroll to top