Home / Expert Answers / Computer Science / 2-the-height-h-of-a-ball-thrown-upward-at-an-angle-mathrm-a-with-initial-velocity-v-0-pa823

(Solved): 2. The height h of a ball thrown upward at an angle \( \mathrm{A} \) with initial velocity \( v_{0} ...




2. The height h of a ball thrown upward at an angle \( \mathrm{A} \) with initial velocity \( v_{0} \) is given by the follow
2. The height h of a ball thrown upward at an angle \( \mathrm{A} \) with initial velocity \( v_{0} \) is given by the following formula: \[ h=v_{0} t \sin (A)-\frac{1}{2} g t^{2} \] where \( t \) is the time in seconds since the ball was thrown: The acceleration due to gravity, \( \mathrm{g} \), should be given a value of \( 9.81 \) and PI with a value of \( 3.14159 \). Use an initial velocity, \( v_{a} \). value of \( 36.3 \mathrm{~m} / \mathrm{s} \) and an angle of launch, \( A \), of \( 38^{\circ} \), To start, the program should ask the user to give a starting time, \( t \), for the table that they would like to print. Print a labeled table of values of time \( t \) and height \( h \), beginning at time \( t \) and continuing at intervals of \( 0.1 \) second until 6 rows of values are calculated and printed. Inside a while loop calculate the height and print the values one line at a time withest the loop. placing time in the column on the left and height in the column on the right. Use 2 digits after the decimal point for time and 2 digits after the decimal point for height. Test your program with \( 2.1 \) seconds.


We have an Answer from Expert

View Expert Answer

Expert Answer


Ans: Let's implement the given problem in the C programming language with comments to understand the code easily. Declare some f
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe