problem solving in c++
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
A program is to be written to input a a message in string and then encrypt the message. output "Enter message" Input MyMessage EncryptString= "" For i- 1 to CHARACTERCOUNT (mymessage) NextNum - ASC(ONECHAR(MYMessage,i) + 3) EncryptString - EncryptString & CHR(NextNum) Endfor Output encryptstring ONECHAR("Barcelona", 3) returns 'r' CHARACTERCOUNT ("South Africa") returns 12 Please help me write program code for this algorithm