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 11748Post New CSJM Interview Questions
how to comvert 120 into one hunderd twenty rupees only and vice varsa
What Are Accrued Revenues And When Are They Recorded?
How Passive immunity is classified?
Explain the operation of 3φ bridge inverter for 1800 degree mode of operation with aid of relevant phase and line voltage waveforms?
When using oracle export/import what character set concerns might come up? How do you handle them?
Mathematical models using linear, dynamic, integer, or algorithm models are considered: A. Project selection criteria B. A form of expert judgment C. Project selection methods D. A form of historical information
Define a binary search tree?
What is the use of the function 'imagetypes()'?
what is sas database server? : Sas-di
Explain Working with Time-Dependent workflow in Salesforce?
What are the dimensions of powerpoint slide?
How to Sort Strings which are given in List and display in ascending order without using java api.
Is angular difficult to learn?
You routinely compress old log files. You now need to examine a log from two months ago. In order to view its contents without first having to decompress it, use the which utility in linux?
what is an alias command? : Sql dba