This type of cipher is one of the easiest because each encoded letter could only be another. It is also known as the mirror cipher, because A=Z, B=Y, C=X, and so on. This type is best to do a key, and it is below: Here is a code in Atbash:
Uncategorized
Caesar Cipher
This type of cipher is one of the most modern and ancient types. A message is encoded by shifting the alphabet by a certain number of times. Then, the new alphabet is put. For instance, in a shift of 1, A=B, B=C, and so on, all the way to Z=A….
Cryptography
Cryptography is the study of codes, encoding them, and decoding them. It is useful in wars, when sodiers want to send messages to each other. To avoid enimies intercepting and reading the message, senders would decrypt them with some type of format, such as Caesar Cipher. See if you can…
Morphine
Morphine is a drug used to kill severe pain. Though this drug can save lives, simultaneously it kills people as well. Despite being pain-killers, morphine is still a type of drug. If people have it and they aren’t going through severe/moderate pain, they can be addicted to it and eventually…
Value Scope
In C++, value scope is important for declaring variables. If a variable is declared in a for loop, it is different than if it is announced in the main() function. If the variable is declared in the for loop, it will only be present in the loop. In the main()…
Test For No Errors!
Remember: in C++, a frequent thing that needs to be done is to test (use debugging code) to check that there are no mistakes. Why? Mistakes could be solved easily, but if there are too many all of them would be hard to solve. Plus, if an entire program was…
C++ stoi()
In C++, the stoi() function is useful to change strings to integers. Basically, it only needs one parameter, and it is like stoi(something). Example: Example Output: And that’s all! In short, stoi() is a function that converts strings into integers.
CCC ’21 J4 – Solution
Arranging Books is a coding problem that can be viewed here. It isn’t easy, and is literally impossible to solve it correctly by actually swapping books. Here is the problem: Canadian Computing Competition: 2021 Stage 1, Junior #4 Valentina wants books on a shelf to be arranged in a particular…
C++ substr()
In C++, the substr() method is one of the easiest functions to use to split a string into multiple slices. Here are the parameters of the substr(): where name is the string that you want to be sliced, position is the staring point, and len is the number of characters…
Don’t Borrow Money to Buy Stocks!
When trying to earn money investing stocks, remember not to borrow money from the bank to buy them! There would be a huge profit if you get money from buying and selling them, but what if the stock goes down and you lose money? You wouldn’t have enought money to…
