1
Is it possible to create an algorithm in visualg that reads a letter and transforms it by another letter or by a number that was already stored in the algorithm? As a simple encryption?
The logic would be :
A = B
B = C
C = D
If typed A, it would appear at the end B, and successively.
The ultimate goal would be to read whole sentences with spaces and exchange them for numbers or letters.. But for now, I want to know if it can be done in viualG.
I started doing it, but the feeling is wrong. Ex.:
Escreval("Escreva uma letra de A a D para conversão: ")
leia(textoc)
textoc <- textocc
se textoc = a entao
escreval("Texto codificado: ")
escreval("b")
fimse