How do I check if a password is correct in an ATM project?

0

I have a college job in which I need to create a kind of ATM in C #, in which I have to create two textbox in which I have to enter a four-digit password in the first one, and aperacer the same masked password in the second .

The password must be entered on four different buttons with three digits each. The design part is good for me, my problem is in coding.

I have to enter the password by the buttons, to appear in the first textbox (visible), the second (masquerade). If the password is correct, the message " Senha OK " should appear and terminate the application.

Wrong attempts can only occur twice, if the third occur, the message " Cartão bloqueado " should appear and terminate the application.

    
asked by anonymous 29.04.2016 / 19:59

0 answers