السلام عليكم
الدكتور طلب مننا نتدرب على برامج حددها لنا عشان الامتحان النهائي اللي يصادف يوم الخميس 9 ديسمبر
المشكلة ان هذا الدكتور ماعطانه و لا شي ندرس منه لا كتاب و لا ملزمة و لا شي و انا ظاااااااااايعه و مو عارفة اي كود استخدم و لا وين استخدمه !
المهم انا راح احط اصعب سؤال عشان تحلونه لي و اتبع نفس الطريقة بالبرامج الي راح اتدرب عليها
السؤال يقول
write a computer program that computes the duration of a projectile's flight and it's height above the ground when it reaches the target. As part of your solution, write and call a function that displays instructiona to the program user.
problem constant
G=32.17 // gravitational constant
problem Inputs
float theta // input-angle(radians)of the elevation
float distance // input-distance(ft)to target
float velocity // input-projectile velocity (ft/sec(
problem Outputs
float time // output-time(sec)of flight
float height // output-height at impact
Relevant Formulas
time=distance/velocity*cos(theta)
height=velocity*sin(theta)*time-(g(time*time)/2
Try your program on these data sets
inputs
angle of elevation
Velocity
Distance to target
Data set 1
0.3 radian
800 ft/sec
11,000 ft
Data set 2
0.71 radian
1.600 ft/sec
78,670 ft
و سلامتكم...
ارجووووووووكم لا تكشتون فيني تراني حدي ظايعه و مو عارفة شسوي...اخاف ارسب و السبه الدكتور التعبان هذا
