def caesar_cipher_encrypt(text, key, a):
text = text.upper()
encrypted_Text = ""
for i in text:
if i in a:
index = (a.find(i) + key) % len(a)
encrypted_Text = encrypted_Text + a[index]
else:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"scores":{"main":{"score":40,"max_score":50,"output":{"hints":["hint"]}}},"scoreboard":[97],"version":"2.0"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Controller { | |
| /** | |
| Controller method that is called when the user clicks "Import From File" | |
| on the fourth tab in the application. This method asks the user to select | |
| a text file that contains account database information, reads the file, | |
| and populates the account database with the accounts found in the file. | |
| Prints errors if the file could not be read or if it was in a bad format. | |
| @param event the ActionEvent generated by the button press. Ignored for | |
| our purposes. | |
| */ |
OlderNewer