عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 28-06-2010, 12:22 AM   #5

هوتميلكوم

جامعي

 
تاريخ التسجيل: Apr 2010
التخصص: computer science
نوع الدراسة: إنتظام
المستوى: الأول
الجنس: أنثى
المشاركات: 22
افتراضي رد: [cpcs 202 - برمجة 1] لديك سؤال , شيء غير مفهوم ,,, تفضل هنا , موضوع مفيد

السلام عليكم ورحمة الله وبركاته
أخي احمد اذا ممكن تحللي هذا السؤال

1. The distance from the center of the earth to the center of the moon is 343711 km.
2. The moon’s orbit around the earth is completely circular.
3. The moon takes one whole month to finish a complete rotation around the earth.

Write a C program that finds and prints the distance and speed explained below using the following functions:

1. Function called dist_thous_yrs that receives the distance from the center of the earth to the center of the moon and returns the distance ( in km ) the moon covers orbiting around the earth for a thousand consecutive years.
2. Function called day_speed that receives the distance resulting from the first function ( dist_thous_yrs ) and returns the speed (in km/sec) needed to cover the same distance in a single day


وجزاك الله خيراً لمجهودك
بالتوفيق

 

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