عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 15-05-2010, 11:21 PM   #65

galaxy55

جامعي

 
تاريخ التسجيل: Mar 2010
التخصص: cs
نوع الدراسة: إنتظام
المستوى: الثاني
الجنس: أنثى
المشاركات: 23
Skaau.com (10) رد: [cpcs 203 - برمجة 2] لديك سؤال , أفكار , شيء غير مفهوم ,,, تفضل هنا , موضوع مفيد

Cryptography) A company wants to transmit data over the telephone, but is
concerned that its phones could be tapped. All of the data are transmitted as four-digi
integers. The company has asked you to write a program that encrypts the data so th
it can be transmitted more securely. Your program should read a four-digit integer an
encrypt it as follows: Replace each digit by (the sum of that digit plus 7) modulus 10.
Then, swap the first digit with the third, swap the second digit with the fourth and print
the encrypted integer. Write a separate program that inputs an encrypted four- digit
integer and decrypts it to form the original number.
-----
والله مااعرفت احل

 

galaxy55 غير متواجد حالياً   رد مع اقتباس