حساب وقت سقوط كرة من أعلى برج باستخدام لغة البرمجة Python


2.1: سقطت كرة من أعلى برج ارتفاعه (h) بسرعة ابتدائية مقدارها (0m/s). أكتب برنامجاً بلغة بايثون يطلب من المستخدم إدخال قيمة ارتفاع البرج بالأمتار ومن ثم يقوم البرنامج بحساب وطباعة الوقت الذي تستغرقه الكرة حتى تصل إلى الأرض، متجاهلاً مقاومة الهواء. 

استخدم البرنامج لحساب الوقت الذي تستغرقه الكرة للسقوط من برج إرتفاعه 100 متر. 

 

A ball is again dropped from a tower of height h with initial velocity zero. Write a program that asks the user to enter the height in meters of the tower and then calculates and prints the time the ball takes until it hits the ground, ignoring air resistance. Use your program to calculate the time for a ball dropped from a 100 m high tower. 

 

book name: Computational Physics

chapter: 2, section: 2

author : Mark Newmans

ؤاشحفث

الأجوبة

ابحث عن مسائل برمجة بايثون | Python programming بالانجليزي

h = float(input("Enter the height of the tower: "))
t=((h*2)/(0.5*9.81))**0.5
print("The falling time is ", t )

محتاج مساعدة؟ تواصل مع مدرس اونلاين الان!