المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : ساعدوني



قرن1
29-03-2011, 12:07 AM
شو جواب هذا الشؤال
مادة Algorathim







In the era of Internet and globalization security becomes a vital part of any software/hardware. One of the major operations in security is encryption/decryption. Encryption means hiding the information by applying techniques in such a way this technique can be reversed and the original information can be obtained.
Write a program in which you read two values from the keyboard:
- a password of exactly six lower case letters, pw
- An integer, n
Your program should replace each letter, c , in the pw with the character that comes n entries after c. For example if c = ‘a’ and n = 3, then ‘a’ should be encrypted to ‘d’ because ‘d’ comes after ‘a’ with 3 entries. Notice that you need to rotate the letter in case it goes beyond ‘z’. For example, if c= ‘x’ and n = 4, then ‘x’ should be replace by ‘b’.

Case1
enter password>>abcdef
enter n>>4
encrypted=efghij

Case2
enter password>>banana
enter n>>1
encrypted=cbobob

Case3
enter password>>xrayme
enter n>>3
encrypted=audbph

Case4
enter password>>falcon
enter n>>0
encrypted=falcon

Zayed Girl
29-03-2011, 08:34 AM
اتمنى مساعدتك لكني لا اعرف الجواب متأسفه :(

TheRoyale
01-04-2011, 10:29 PM
والله ما ادري
بس على حسب التعليمات كلهم صح

بالتوفيق