الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

بحث لاجابة بعض الاسئله المتعلقه بالc++عن طريق اللوب او If Statment

بدأه اوتادا في 7 ديسمبر 2008 · 3 رد · 627 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

: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 فقط من دون الاكلاس او هاذا ما ذكر في الكتاب

#2

اكتب اسئلتك بالعربي + محاولة جادة.

وسوف تجد المساعده ان شاء الله

tvquran_6.gif

#3

عزيزي الاستاذ فهد هذه هيا ترجمة النص ومحاولتي معها ولكم جزيل الشكر

السوال الاول اكتب برنامج بسي بلس بلس يقراء من المستخدم ويحول درجة الحراره من سلسيوس الى فهرنهايت باستخدام القانون

f=(9/5)c+32....................

(f=fahrenheit)حيث

(C=Celsius)حيث

محاولتي بالحل

......

# include<iostream>

using name space std;

int main()

{

cout << "Fahrenheit equivalents of Celcius temperatures:\n"

<< "Celcius\t\tFahrenheit\n";

int c;

cin>>c;

for ( int i = 0; i <= c; ++i )

cout << i << "\t\t" << fahrenheit << '\n';

return static_cast< int > ( 9.0 / 5.0 * c + 32 );

return 0;

}

#4
هل قراءت هذه المشاركة
tvquran_6.gif

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…