Write an interactive c program that will encode or decode a line of text. To encode a line of text, proceed as follows: Convert each character, including blank spaces, to its ASCII equivalent. Generate a positive random integer. Add this integer to the ASCII equivalent of each character. The same random integer will be used for the entire line of text. Suppose that N1 represents the lowest permissible value in the ASCII code, and N2 represents the highest permissible value. If the number obtained in step 2 above exceeds N2, then subtract the largest possible multiple of N2 from this number, and add the remainder to N1. Hence the encoded number will always fall between N1 and N2, and will therefore always represent some ASCII character. Display the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text. Be certain, however, that the same random number is used in decoding as was used in encoding.
1 12857Post New CSJM C Interview Questions
What is null pointer and void pointer and what is their use?
Hi All I am Vamshi I Provide Training on ECC Security, Bi Security, HR Security, GRC Access Control Suit(RAR SPM CUP ERM), SRM Security and CRM Security. Duration: 30 days Fees: Rs 7000/- Vamshi Krishna +91-7569362152 email: s.sap30@gmail.com
Does direct memory manipulation is an unsafe operations, if yes, how?
What are the key fields in MRP views?
What are plugins/mambots?
what is the physical connection of a analog i/p to a analog i/p module (ab plc)and through a analog o/p module(ab plc) to a analog o/p . and how all the process control by scada
Explain various cabling techniques used in IEEE 802.3 standard.
What a pipe?
What is the number of Districts in your nearby states?
Define topstitched seam?
How do you stop an app from crashing?
whenever we give #metastat cmd in svm, it display output "need to maintain" state, what u do?
Is empty in php?
Is it true that each controller has its own context node ?
Is razor a mvc?