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 12984Post New CSJM Interview Questions
Why ph scale range is 14? Why it is not less or not greater than 14? Solution of hcl or hydrogen containing liquid has a ph. But if the solution is kmno4 here nothydrogen power does it ph?
Why is django popular?
Is php deprecated?
how does sas handle missing values in a merge? : Sas programming
How do you add a border in word 2016?
What are the advantages of fuzzy logic systems?
what is the use of a call center? what are the most commonly asked questions during a call center interview? can you give me some tips on a call center job interview? what is the use of a call center? can you give me some lists of possible questions in a call center interview? including the best answers for that particular question. Thank you.
Explain what happens if you free a pointer twice?
How to read data with the sqldatareader ?
How to prepare for oracle pl sql certification?
How did you transfer legacy data in the mid of the financial year (us) to sap system?
Explain what is emulsion?
What are the main features of impala?
How do http requests work?
What is the major functions of any bank?