#include <stdio.h>
#include <math.h>
/*-----------------------------
Author: 
Student Number: 
Sept 23, 2018
Assignment 1
filename: A1_3000
Course: GNG_1106
-------------------------------*/
// Question 1
/*----------------------------------------------------
Function: main
Description: Gets input from user for time, calls function
             to compute the speed and displays results to user.
------------------------------------------------------------------------*/

float calculateSpeed(float t);

int main()
{
     float t;
     printf("Please enter a time in secs:");
     scanf("%f/n", &t);
     printf("at time %5.2fs, the speed of the plane is %5.5f0m/s", t, calculateSpeed(t));
    return(0);
}
float calculateSpeed(float t)
{

   v = (0.00001*pow(t,3)) - (0.00488*pow(t,2)) + 0.75795*t + 181.3566;

   return(v);

}

// Question 2

/*-----------------------------------------------------------------------
Function: calculateR
Parameters:
    Rl          Resistance value per Length
    L           Length
    a           Resistance constant
    T           Temperature
Return:  Velocity of the parachutist after time t.
Description: Computes the velocity of the parachutists with given
             drag and weight after time t.
------------------------------------------------------------------------*/
