قمر الأحساء
07-04-2005, 08:43 PM
السلام عليكم والرحمة والإكرام
مطلوب مني أسوي هالبرنامج بلغة الـ ++C
أنا حاليا أدرس في الجامعه ... بس غبت المحاظره الماضيه اللي تم فيها شرح هالجزء
وألحين أواجه صعوبه في حل البرنامج
أتمنى منكم المساعده .. الله لايهينكم
A company wants to transmit data over the telephone, but is concerned that its phone could be tapped. All of the data are transmitted as four digit integer. The company has asked you to write a program that encrypts the data so that can be transmitted more securely. Your program should read a. four-digit integer and 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.
مطلوب مني أسوي هالبرنامج بلغة الـ ++C
أنا حاليا أدرس في الجامعه ... بس غبت المحاظره الماضيه اللي تم فيها شرح هالجزء
وألحين أواجه صعوبه في حل البرنامج
أتمنى منكم المساعده .. الله لايهينكم
A company wants to transmit data over the telephone, but is concerned that its phone could be tapped. All of the data are transmitted as four digit integer. The company has asked you to write a program that encrypts the data so that can be transmitted more securely. Your program should read a. four-digit integer and 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.