People sneeze when there are a certain number of irritants in the person’s throat or nose. Many people often sneexe multiple times before stopping, because one sneeze wouldn’t be enough to get rid of all the dust particles. So, another sneeze occures. Reasearchers aren’t exactly sure, but that is what…
Month: December 2021
C++ atoi()
In C++, the function atoi() is designed to convert characters to integers. If a character is named n, all that is needed to convert it to an integer is: In other words, the atoi function wraps around the character and changes it to an integer.
Initial Value
Initial value for variables is very important in C++. If a variable is in the wrong scope, errors can appear, or it won’t give the expected outcome. For example, if a variable is declared in a for loop, and it is used in a function, the announced variable will not…
CCC ’18 J4 (S2)
Matrices are among an important group in coding problems. Matrix rotations are also vital. For instance, QR codes can be read even when it is rotated 90°. Take the coding problem below as an example: https://dmoj.ca/problem/ccc18s2 This is a matrix problem. At first glance, people might thnk that the data…
Atbash Cipher
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:
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…
