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 m/s2.
a) prepare a c++ function that find outs the acceleration as a function of the slope a in degrees.
b)prepare a c++ program that reads the slope and length of the hill as inputs,and find outs how long time it takes to slide down the hill.