none
trying to write a code for a class and im not sure where to start

    Question


  • Your application must do the following:

    Print a “welcome” message to the user telling them that this application will calculate the distance between two points and the angle between those points.
    Prompt for and get the x value for the first point from the user (prompt for the x value, read the value, parse the value and then store the value). To read, parse, and store the value, you could use something like:
    float point1X = float.Parse(Console.ReadLine());

    Prompt for and get the y value for the first point and the x and y values for the second point from the user
    The picture below might help you with the following steps:

    Calculate the delta x and delta y between the two points. The subtraction order matters when you calculate the angle, so be sure to subtract the first point values from the second point values
    Calculate the distance between the two points using the Pythagorean Theorem. You might want to explore the documentation for the Math class to help with this
    Calculate the angle between the two points
    HUGE HINT: The Atan2 method in the Math class can really help here

    Thursday, March 31, 2016 6:51 PM