عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
  #1  
قديم 03-05-2012, 11:59 AM

الدموع الحزينة الدموع الحزينة غير متواجد حالياً

جامعي

 
تاريخ التسجيل: Jan 2010
التخصص: IS
نوع الدراسة: إنتظام
المستوى: السادس
الجنس: أنثى
المشاركات: 136
Skaau.com (15) مساعدة عاجلة في البرمجة


السلام عليييييييييييكم
كيفككم ياحاسووووووبين

ابغى خدمممممه منكم لو مااااعلييييييكم امرنقرتين لعرض الصورة في صفحة مستقلة

عندنا في برمجة 1 تسليم واجب يوم الاحد وعليه بووونس 3 درجات واحنا بصراحه نحتاجهانقرتين لعرض الصورة في صفحة مستقلة
عشان نرفع درجاتنا نقرتين لعرض الصورة في صفحة مستقلة

"فضلا لا امرا " الا يعرف يحل البرنامج ياليت يساعدنا
ويكسب دعوات بظهر الغيب نقرتين لعرض الصورة في صفحة مستقلة

ياليت عبدالكريم وبااااقي النوابغ يساعدونا نقرتين لعرض الصورة في صفحة مستقلة
Write a program that simulates a bouncing ball by computing its height in feet at each second as time passes on a simulated clock. At time zero, the ball begins at height zero and has an initial velocity supplied by the user. (An initial velocity of at least 100 feet per second is a good choice.) After each second, change the height by adding the current velocity; then subtract 32 from the velocity. If the new height is less than zero, multiply both the height and the velocity by -0.5 to simulate the bounce. Stop at the fifth bounce. The output from your program should have the following form:
Enter the initial velocity of the ball: 100
Time: 0 Height: 0.0
Time: 1 Height: 100.0
Time: 2 Height: 168.0
Time: 3 Height: 204.0
Time: 4 Height: 208.0
Time: 5 Height: 180.0
Time: 6 Height: 120.0
Time: 7 Height: 28.0
Bounce!
Time: 8 Height: 48.0

This project is a numerical simulation of a bouncing ball. The simulation of the bounce is not particularly realistic, but it avoids dealing with issues of determining exactly when the ball hits the surface. The quality of the simulation is sensitive to the combination of the input parameters

وشوكرررا نقرتين لعرض الصورة في صفحة مستقلة

التعديل الأخير تم بواسطة الدموع الحزينة ; 03-05-2012 الساعة 12:26 PM.
رد مع اقتباس