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 11768Post New CSJM C Interview Questions
How deadlock is detected?
please tell me short cut method in maths as well as in english for correcting the error for the post of clerck in bank exam
Can we make a constructor final?
Explain what are the major data structures used in the hierarchical data model?
What is the difference between XML Serialization and Binary Serialization?
What is the bapi?
How to implement getcommon method in class a? Are you seeing any problem in the implementation?
What we have to post entry for payroll processing ? (Indian payroll)
Define Expression
dear sir please provide what question will be asked in bank it officer interview
How do I install android os on my phone?
plz drive the formula d2/162.162 for the calculation of weight of steel bars????
Mention what are the two components jenkins is mainly integrated with?
Approach for Installation,comaptibility,system testing
How many tables can be joined in SQL Server?