Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I really need help with this assigment, I am really bad at coding and would like to get help to see how to set this

I really need help with this assigment, I am really bad at coding and would like to get help to see how to set this up its really confusing. Again thank you.

Project 3 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. Objectives: Learn to implement a solution to a problem using stepwise refinement. Use Selection structures. Declare functions in the C language. Pass by Reference to functions using pointers. Document your projects. Use pointers for returning values to calling programs. Use operator precedence and associativity rules to perform computations. Display formatted output using input/output statements. Use format control strings to format text output. Use C data types. Requirements: 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 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 callers local variables in main. 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. 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 Function Prototypes: int PrintInstructions() void GetData(float* , float* , float* ) double AccelerationDisplacement(float vi, float t, float a) void PrintOutput(double result, float vi, float t, float a)

Required Input & output Display: Below is a screen shot displaying the input and output screens you need to try to reproduce. I wont be counting your spaces, just try to make it neat using tabs and new line characters. If it lines up and has the asterisks then you get the points. The width and precision for the outputs shown are: d = %7.2f vi, a, t = %6.2f

This is what the output should look like and the data that needs to be tested.:image text in transcribed

image text in transcribed

Test Data: Your program will be tested using the following values and must produce the same output given these values. Calc 1 0 6 4.1 50.43 Calc 2 0 Calc 3 26.82 VI 5.2 108.16 2.3 66.98

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

9-15. Is the subject line effective? Why or why not?

Answered: 1 week ago

Question

7. Highlight warnings and precautions.

Answered: 1 week ago

Question

8. Use headings and subheadings for longer procedures.

Answered: 1 week ago