Functions: Calculating velocity, time, distance (double type variables)
<p>I have created a program that wehn the calculate button is pressed, an average speed will be calculated using the total distance travled and the total hours traveled, and that will be multiplied by the time to get from NY city to MIAMI to get the distance from NY city to MIAMI. After button click <code>Label1</code> will report the speed, the time and distance and <code>Clear_textBox()</code> will clear all textbox fields. The problem is that I am not getting any results back but errors. </p>

<p>Can some one give me guidance in changes to be made in my code?</p>

<p>the functions I am receiving an error <code>Display_Results</code> and property <code>private double get_Time</code></p>

<pre><code>   namespace form1
   {
public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
    }



    private double Calculate_Velocity()
    {
        //Calculate Velocity
        int startingMileageBox;
        startingMileageBox = Convert.ToInt32(textBox1.Text);

        int endingMileageBox;
        endingMileageBox = Convert.ToInt32(textBox2.Text);

        double time = Get_Time(); //assuming you have set up GetTime()
        double distance = endingMileageBox - startingMileageBox;
        return distance / time; 
    }

   public double Get_Time()
    {
        //Get Time
        return get_Time;
    }

    private double Calculate_Distance(double velocity, double time)
    {
        //Calculate Distance
        return velocity * time;
    }

    private void Display_Results(double velocity, double time, double distance)
    {
        //Display Results
        label1.Text = "Velocity = " + velocity.ToString() + " time= " + time.ToString() + " Distance = " + distance.ToString();
    }

    private void Clear_Textboxes()
    {
        //Clear textboxes
        textBox1.Clear();
        textBox2.Clear();
        textBox3.Clear();
        textBox4.Clear();
    }



    // Property to GetTime
    private double get_Time
    {


        get
        {



            // variable to hold time
            double time = double.MinValue;

            // Safely parse the text into a double
            if (double.TryParse(textBox3.Text, out time))
            {
                return time;
            }

            // Could just as easily return time here   
            return double.MinValue;
        }
        set
        {
            // Set tbTime
            textBox3.Text = value.ToString();
        }
    }

    private void Form1_Load(object sender, EventArgs e)
    {

    }

    private void button2_Click(object sender, EventArgs e)
    {
        Close(); 
    }

    private void button1_Click(object sender, EventArgs e)
    {
        double v = Calculate_Velocity();
        double t = Get_Time();

        double d = Calculate_Distance(v, t);
        Display_Results(v, t, d);

        Clear_Textboxes();

    }
}
</code></pre>

<p>}</p>

<p><strong>Form</strong></p>

<p><img src="http://i.stack.imgur.com/BVATc.png" alt="enter image description here"></p>
