Winter sports

The acceleration of a sleigh sliding down a hill is a = g sin a , where a is the slope of the hill, and the gravity acceleration g = 9.8 ms-2. An explanation is given in your physics book in example 5-9, page 128.
Write a C++ function that calculates the acceleration as a function of the slope a in degrees.
Write a C++ program that reads the slope and the length of the hill as inputs, and calculates how long time it takes to slide down the hill.
Hint: the header file MATH.H
defines the common mathematical functions, including sin(x)
(where x is in radians) and sqrt(x) (square root). The constant p is
also defined in MATH.H with the name M_PI. To get access to these
functions and constants, write:
#include <MATH.H>