You are on yourwinter break, enjoying a relaxing skate at the local ice rink, wh
ID: 3608334 • Letter: Y
Question
You are on yourwinter break, enjoying a relaxing skate at the local ice rink, whenyou notice that your professor is "skating" next to the railingholding on for dear life. You look down to see that next toyou are a rotten tomato, a banana cream pie, and a largerock. Taking advantage of the opportunity, you pick up one ofthe items and throw it at your professor. Assuming you arestanding still on your skates when you throw the object and thatyou hit your professor directly in the head, what velocity will yoube traveling backwards after the throw?
A diagram of theproblem:
First we mustfigure out the velocity of the object in the horizontal directionof the professor. To make the problem easier the skater willalways throw the object at a 45? angle. Then the horizontalvelocity of the object will be:
To determine theresulting velocity of the skater in the opposite direction, we usethe Conservation of Momentum. That is, the (mass * velocity)of the object is equal the (mass * veocity) of the skater in theopposite direction. The resulting equation is:
Your task is to write a C program simulating the above problem. Usefunctions
Program inputs:
Program output: