Using C programming
Description: You have been tasked to design an application for an engineering firm to measure the performance of their vehicle designs. The user, an engineer will enter data into your program when prompted and will perform the required calculation and output the answer. The formula used for this project calculates the distance an object will cover in meters given an initial velocity, a rate of acceleration and a time of acceleration or travel.
1. Your program must declare three functions using function prototypes.
2. The first function should be called “PrintInstructions”
3. This function takes no arguments and returns an int or Boolean value, which the caller can use to determine if the user wishes to quit (entered ‘q’ or ‘Q’) the program or continue (any other character). This will require an if/else decision in your main function.
4. The second function should be called “GetData”.
5. This function must use pointers to get the required inputs (time, velocity, and acceleration) from the user and store the values in the caller’s local variables in main (upward communication).
6. The third function is called “AccelerationDisplacement”
. 7. This function will take parameters by value from the caller in main and calculate the distance an object will travel given time, initial velocity and acceleration and return the calculated value as a type double to the caller.
8. The function should perform the calculation of the formula given. You may use the pow() function pp 191 of the text.
9. The final function is called PrintOutput.
10. This function is called with a value argument and prints the formatted output to the user with the calculations as shown in the required outputs below. The program should then end gracefully.
Formulas: The formula to determine the distance travelled by an accelerating body is shown below. This is a physics kinematics formula. d = displacement (distance) vi = initial velocity t = time a = accelerations d = (vi • t) + (½ • a) • ????2 Source: http://www.physicsclassroom.com/class/1DKin/Lesson-6/Kinematic-Equationsand-Problem-Solving Function Prototypes:
int PrintInstructions(void);
void GetData(float* , float* , float* );
double AccelerationDisplacement(float vi, float t, float a);
void PrintOutput(double result, float vi, float t, float a);
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int PrintInstructions(void);
void GetData(float*, float*, float*);
double AccelerationDisplacement(float, float, float);
void PrintOutput(double, float, float, float);
int main() {
char c;
float time, velocity, acceleration;
double d;
while(1){
fflush(stdin);
c = PrintInstructions();
if (c == 'q' || c == 'Q')
break;
GetData(&time, &velocity, &acceleration);
d = AccelerationDisplacement(time, velocity, acceleration);
PrintOutput(d, time, velocity, acceleration);
}
printf("Press any key to exit....");
getch();
return 0;
}
int PrintInstructions() {
char x;
printf("\n/************************************/\n");
printf("Welcome to performance calculator app\n");
printf("Please follow the instructions to provide input data for calculation.\n");
printf("If you are done using it, enter 'q' or 'Q' to quit the app.\n");
printf("Do you want to proceed with the app? ");
scanf(" %c", &x); //Whitespace before %c is necessary to eat any remainng whitespace in stream
return x;
}
void GetData(float *time, float* velocity, float *acceleration) {
printf("Enter time(in sec): ");
scanf("%f", time);
printf("Enter velocity(in m/s): ");
scanf("%f", velocity);
printf("Enter acceleration(in m/s^2): ");
scanf("%f", acceleration);
}
double AccelerationDisplacement(float time, float velocity, float acceleration) {
return velocity*time + 0.5*acceleration*time*time;
}
void PrintOutput(double d, float time, float velocity, float acceleration) {
printf("Time(s): %f Velocity(m/s): %f Acceleration(m/s^2): %f Distance(m): %lf\n", time, velocity, acceleration, d);
}

Using C programming Description: You have been tasked to design an application for an engineering firm...