Hello,

I have two assignments and they want you to write code to determine the distance of how far an individual will go with velocity known.

1)

Yikes the clown is going to be shot out of a cannon and needs to know where to put the safety net. Your mission is to write a C++ program to help him do this.
Yikes will enter his velocity in miles per hour, and the cannon angle in degrees. Your program will give him the distance (range) that he travels measured in feet.
Assume the following:
R = (v2 / g) sin(2Θ)
R = distance in feet
v = velocity in feet per second
Θ=cannon angle

2)


Clown Skateboard


Given the success of his last stunt, Yikes the Clown is now going to attempt the following. He will ride down a hill on a skateboard and off a ramp at the bottom. He wants to know how fast he will be travelling when he leaves the ramp.
The formula for this is:
V=sqrt (2 g (h1 – h2))
V is his velocity at the end of the ramp
g is acceleration due to gravity (either 9.8 m/s2 or 32 f/s2 depending on if you are using English or Metric).
h1 is the height of the hill in either meters or feet.
H2 is the height of the ramp in either meters or feet.
You may choose which unit of measure to do this assignment in.

:::::::::



I am attempting, but I have no idea. None. Professor wasn't much help.