Advertisement
kdaud

Console_Display

Feb 12th, 2019
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.83 KB | None | 0 0
  1. //the user enters what the program tells him or her respectively in hierarchy shown bellow
  2.  
  3. Please enter your text:
  4.  
  5. Please enter your key:
  6.  
  7. 1 Encrypt plain text using binary and Or
  8. 2 Decrypt cipher text using binary and Or
  9. 0 Exit
  10.  
  11. Please enter your menu selection -----------------
  12. // when the user enters say 1 or 2, the console displays as shown below. Otherwise exits when users enters  0
  13.  
  14. You entered:                 //user enters a text which is a string
  15. Your key is:                 //user enters a key which is a string
  16. Your text in base 10 is:     // base 10 value for each character of the text entered
  17. Your key in base 10 is:      //base 10 value for each character of the key entered
  18. Your text in binary is:     // binary for text
  19. Your key in binary is:    //binary for key
  20.  
  21. Your cipher text in plain text is //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement