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