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 12899How you can handle errors in BDC.IN the log file what type of error mostly will be facing in real time
2 7941Post New TCS Interview Questions
How to improve in english
Can you mention a few general requirements of rpa for front and back-office processing?
What is the difference between RDBMS with Hadoop MapReduce?
Can a process have 0 threads?
Tell me what are your long term career goals?
In C programming, what command or code can be used to determine if a number of odd or even?
What is the syntax to create ajax objects? : asp.net ajax
Difference between the transient, persistent and detached state in hibernate?
Following is an NSAP of IS-IS, which is legal NET (When area number is 1)? 1) 47.0001.1921.6800.3025.01 2) 0001.1921.6800.3025.00 3) 47.0001.192.168.3.25.00 4) 0001.1921.6800.3025.01
if the server has slow how to check the server performance? How to check server performance what is the procedure?
How do I make a spreadsheet fit the page?
How many types of Transmission cards are in Ultra BTS?
Can a class be protected in java?
What are the different row versions available in table?
Which is the best free database software?