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 12986How you can handle errors in BDC.IN the log file what type of error mostly will be facing in real time
2 8026Post New TCS Interview Questions
Define com binder?
List out the activities carried out in production planning?
What is the benefit of an android library project?
Define streaming?
What are the fundamental blocks of co> operating system of ab initio?
if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?
On which factors scc depend?
After creating the cube, if we added a new column to the oltp table then how you add this new attribute to the cube? : sql server analysis services, ssas
How do I switch from windows live mail to outlook?
Why is sessionfactory immutable?
Can the unique key be null?
What is Service Broker in sql server 2012?
why do biologist study protostomes
How many double suspension hardware fittings are required on a double circuit transmission tower?
What are system databases into sql server (2005/2008) : sql server database administration