| Bothayna Top (2) | |
|
HI ;) I AM NEW in c++ programming; and i had a ATM Project ; but i dont know what i do :{ Your are about to simulate a simp ple automated teller machine (ATM). It shoul ld do five basic tasks: 1. Withdrawing from user’s balance. This operation can be executed as t the balance allows to do so. 2. Depositing to user’s acco ount. 3. User’s balance inquiry. 4. Inquire about the last 5 tr ransactions that have been done through a ses ssion starting from the last one (whether they ar re withdraw or deposit or just inquiry). 5. Editing personal informattion that includes: Telephone Number, email aaddress and password. 1 Password should be encry ypted after changing it using Caesar cipher wwith a shift of 3. Password should be decry ypted before comparing it to the one that user r entered. These tasks can be executed uupon user choice as the user does not choose e to quit. For security, this list of tasks will not be show wn as the password is wrong. So, first of all l the user is prompted for his/her password to show th he list of operations. The user have only th hree attempts to enter the correct password. As the th hird attempt is wrong, the program should terminate and no task is presented. Remarks: • Assume an initial balanc ce of the account is 5000 and the ATM passwo ord is a12b. • Your program should be menu-driven in which it should display a me enu with the options shown above in addition n to quit option. • As the user choose to ed dit his/her personal information, your program m also has to display another menu with four options: changing Telephone Number, changiing Email address, changing password, and back to the main menu. • There is two algorithms for Caesar Cipher presented in Appendix A, yyou can use them or use your own algorithm to im mplement the cipher. Caesar Algorithm m is presented in Appendix A. 1 Appendix A Caesar Algorithm The Caesar cipher is one of the eearliest known and simplest ciphers. It is a tyype of substitution cipher in which each letter in the plain ntext is 'shifted' a certain number of places down the alphabet. For example to cipher letter A with a shift of 2, it will be C and B will be D , YY will be A , Z will be B and so on. Another Example, Ass suming we have letter set 0 1 2 ………………24 25 A B C … …… … … … Y Z If the shift is 3 and the plain text t is MYPASSWORD Then the encrypted text using Caaesar cipher is: PBSDVVZRUG Algorithms: Encrypt (PlainText,shift) Loop over PlainText NextCharacter = GetNext(PlainText) EncryptedCharacter = ( (ASCII of NextCharacter - ASCII of first charactar in character's list + shift) MOD size of character's list) + ASCII of first charachtar in character's list Append EncryptedCharacter to EncryptedString End Loop End Encrypt } I need you to understand this project and writing code, help me please,, | |
|
|
|
| chipp (505) | |
from my opinion, for creating account, you can use <vector>. and the caesar encryption is just shifting the character using arithmetic operations and little algorithm... btw, what's wrong with your writing?
| |
|
|
|
| Bothayna Top (2) | |||
my code
I think it contains logical errors and compilation errors :( | |||
|
|
|||
| usandfriends (5) | |||
My Code.
No errors but I don't know how to do the password properly and the Last 5 Inquiry. I too am a new C++ programmer, so yeah... | |||
|
|
|||