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 12953Post New CSJM Interview Questions
Explain exception filter?
oledbdataadpter with ms access in c#.net giving exception System.Data.OleDb.OleDbException while writing adapter.update(dataset,"tabname"); how to update the database from dataset?
Differentiate between skewed and uniform distribution?
What are the 6 major components of microsoft access?
What are the main tags in jsp?
Who created postgresql?
agar hum koi sale return 3 month ke andar hi receive krte hai or part uski cst purchase ka bill deti hai or humse c form mangti hai to kya hum use LS-10 me tax benefit ke liye and LP-3 me c form issue krne ke liye kyoki central purchase ka haryana vat me benefit nhi milta kya dono form LP-3 and LS-10 me hum us return ko show kar skte hai
upto how much low RPM we will run the commercial motor which is run through VFD without any problem occurs in motor.Motor rating Duty is S1 & RPM is 1400.
Does postgres automatically index primary key?
How VisiBroker provides Robust thread and connection management?
Explain what is actual mobile testing and in realtime how this testing happens?
Why should we not dispatch the reprocess material to export?
WHAT IS MEANT BY INSULATION CLEARANCE IN VACCUM?
what authentication modes does sql server support? : Sql server database administration
Define a context in the universe?