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 13099How you can handle errors in BDC.IN the log file what type of error mostly will be facing in real time
2 8133Post New TCS Interview Questions
How many types of targeting in video and display network campaigns?
what is the log target type for sending the logs to email, what is the field name that has to be given a value for subject representation of an email?
what is mean by Performance Related Testing in data base?
What is a pressure cap in the radiator?
How many static init can you have?
What is a caas?
What is the current version of mysql?
If we want to upload data through DataLoader, what the changes to be done?
What is the short cut to open the “Code Snippet Library” in Xcode?
Is it possible to edit the process once it is activated? : salesforce process builder
What is dialect in database?
Explain what is the function of sql server agent windows service?
What is cookie less session?
How is industrial internet of things (iot) different from the internet of things (iot)?
What is the next step after Mapper or MapTask?