Question: On C programming language: C. Exercise: Again, the Free Falling Parachutist (10 points) Let's use structures/arrays and functions to calculate three different velocities for the
On C programming language:

C. Exercise: Again, the Free Falling Parachutist (10 points) Let's use structures/arrays and functions to calculate three different velocities for the free falling parachutist. Recall that the velocity of the parachutist is given by The above equation can calculate the velocity over time given the mass and drag coefficient of the parachutist. At t-0, the velocity of the parachutist is zero. Develop a program that gets from the user the weight, drag coefficient and a time (call this time t). The program calculates the velocity of the parachutist the following times: t = t 3, 1-2, 3, t = The program will output all input values and the calculated velocities in a table using output formatting. The following table provides a test cases that can be used for testing the software (this table was generated using Micrsoft Excel, see the file GNGII06Lab4TestCases.xls). The velocities were computed using the equation above. WeightDrag Coefficient,Time t Velocity (m/s 12.5 4.0 6.0 16.40 27.77 35.64 Use the following guidelines to create your program. 1) Symbolic Constants a. G- set to the value of gravitational constant, 9.8 m/s2 2) Function main a. Data Structures: i. Define a structure type "USER INPUT" which has three members, weight, drag, and time (all of type double). b. Local Variables i. input: a structure variable of type USER_INPUT that contains the three input values obtained from the user ii. velocities: An array with 3 elements of type double for storing the three velocity values. c. Logic/Strategies i. Call a function getInput to prompt the user for the three values weight, drag coefficient and time to be stored in the input structure variable (you will need to pass a reference to the function). Call a function calculateVelocities to compute the parachutist's three velocity values using the input values provided by the user. The velocity values are stored in an array referenced by a parameter (pointer variable). Display the result as shown below. Use the formatting features of the printf function to create a well formatted table. ii. iii. ae enter the dragi 12 lease enter the tine span: 6. eloc ities for the parachuti t ith ueight 68.10 k- s drag coefficient 12 Tine Velocity n/s kg/s are eas returned 20 (x14 execution tine1 26. 887
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
