Question: code in C A. If a bullet is shot straight, it will keep going straight until it falls on ground after certain distance. The bullet

code in C
code in C A. If a bullet is shot straight, it will

A. If a bullet is shot straight, it will keep going straight until it falls on ground after certain distance. The bullet keeps loosing speed due to gravity. The bullet looses 6% of its speed every second. Once the speed becomes 1 meter per second or less, the bullet stops and falls on the ground. Write a recursive C function that takes as an input a float value that represents the started speed of a bullet in (meters per second) and returns as integer the time on when this bullet will stop in seconds. Name your function getBulletFallTime. B. Write a main function that uses the function getBulletFallTime you wrote in Part A to find then a bullet with speed 1000 meters/second will stop. Print the time in seconds

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!