Question: Given the projectile angle (e), the projectile's velocity (v), the distance to the base target (s) and the acceleration due to gravity (g), the height


Given the projectile angle (e), the projectile's velocity (v), the distance to the base target (s) and the acceleration due to gravity (g), the height of the desired impact point on the target (h) can be determined using the following equation: [Diberi sudut peluncur (0), hadlaju peluncur (v), jarak ke tapak sasaran (s) dan pecutan graviti(g), ketinggian titik sasaran hentaman yang dikehendaki (h) boleh ditentukan dengan menggunakan persamaan berikut : 1 h= stane 2 va cos20 where the acceleration due to gravity, g = 9.81 m/s2. (dimana pecutan graviti, g = 9.81 m/s2.] Write a program in C that reads the values of projectile angle (0), the projectile's velocity (v), the distance to the base target (s) and computes the height of the desired impact point on the target (h). The program should have the functions below: read_value - This function is used to read the values from the user. (read_value - Rangkap ini digunakan untuk membaca nilai-nilai daripada pengguna.] calc_height - This function is used to compute the height of the desired impact point on the target (h). [calc_height - Rangkap ini digunakan untuk menghitung ketinggian titik hentaman yang dikehendaki (h).) print_height - This function is used to display the height of the desired impact point on the target (h) to the user. [print_height - Rangkap ini digunakan untuk memaparkan ketinggian titik hentaman yang dikehendaki (h) kepada pengguna.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
