Question: Please solve the following problem: Program a simple version of the Angry Birds game, which is based on the theory of parabolic shooting, by making
Please solve the following problem:
Program a simple version of the Angry Birds game, which is based on the theory of parabolic shooting, by making a program through using C language of programming.
The parameters are:
The program will calculate (propose) the distance in meters from the shooting point to the target, in a range of 500.0 meters to 2000.0 meters.
The user will enter the firing speed in m/s and the angle in degrees.
The program will calculate the distance traveled by the projectile and will tell the user: + If it succeeded in hit it + if it failed and went too far + If it fell short and didnt go far
To know if the objective was achieved, take into account an error range of more or less 2%.
Example:
800m 784m - 800m - 816m If the bullet falls at a distance greater than 784 and less than 816 meters, this implies that it hit the target.
The user has 10 shots to hit the target, if he hits the target it will show WIN in ascii, otherwise LOSS ascii.
This program must include the commands: int, float, long, scanf and operators that are relational and arithmetic. (Without using functions like if or else)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
