:S السلام عليكــم ورحمـة الله وبركاتــه
ااناا عضو جديد لكن كنت ادخل اشوف مشاركاتكم المتميزه ولكن انا عندي ثلاثه اسئله لم استطع حلها ياليت الاقي عندكم الاجابه وساكون من الشاكرين وادعي للي يساعدني بالتوفيق اتمنى ان اجد رد وتفاعل
.....................الاسئله
Write a program that prints the value 100.453627 rounded to the nearest digit, tenth, hundredth, thousandth and ten thousandth using only techniques you have learned.
Problem 6:
Write a C program to read and convert temperatures from degree Celsius to degrees Fahrenheit using the flowing formula:
F = (9/5) C + 32
Where F is the temperature in degrees Fahrenheit and C is the Temperatures in degrees Celsius. Hint: Use typecasting
Problem 7:
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 –digit integers. The company has asked you to write a program that encrypts the data so that it 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 the 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.
After that, write a separate program (another program) that inputs an encrypted four-digit integer and decrypts it to form the original number
اعتذر عن كتابة الاكواد بالنجليزي ولكن هذا الكود كان موجود بنفس الصيغه ....... ملاحضه الحل باللوب,,وIF فقط من دون الاكلاس او هاذا ما ذكر في الكتاب
