Question: This must be done in C. Lab 6 Due March 7th, 2017 at 11:59 PM Overview In this lab, you will write a program that
This must be done in C.




Lab 6 Due March 7th, 2017 at 11:59 PM Overview In this lab, you will write a program that computes the following physics motion equations: 1. v vo Vo zo) 3, v 2 a 4. ry where ro is the initial position, ry s the final position, vo is the initial velocity, v f s the final velocity, a is acceleration, and t is time. See the Example Execution section below for detailed examples. objectives Use pointers to pass by reference Translate mathematical equations to C expressions e More practice with the switch statement More practice with a user menu More practice with the math library Function Prototypes These are the function declarations you will need in this lab. Place these lines above your main function and below your include statements. You will write the function definition e. implementation) for each of these functions. Note that result is an output parameter, where you will place the result of the equation instead of directly returning a value. List of all function prototypes displays user menu, reads input, and validates input int user menu (void); Equation functions that are pass by reference void equation 1(float *result) calculate motion equation 1 void equation 2 (float result) calculate motion equation 2 void equation (float result) Calculate motion equation 3 void equation4(float *result); calculate motion equation 4 User input functions return a value from user float get position i nitial void) Prompts user for x0 float get position final (void) Prompts user for xf
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
