After creating this code:
Console.WriteLine("Hello, and Welcome to Shell Bomber!\n");
Console.WriteLine("In this game you will calculate the distance\n");
Console.WriteLine("a shell will rise and travel along the ground ^_^\n");
Console.WriteLine("theta = ?"); // initial angle that you will ask for from the user
double theta = Double.Parse(Console.ReadLine());
Console.WriteLine("v_o = ?"); // initial velocity that you will ask for from the user
double v_o = Double.Parse(Console.ReadLine());
Console.WriteLine("Calculate v_ox"); //Calculate vox = v_ocos(theta
double v_ox = v_o * Math.Cos(theta); //Use the Math.Cos(theta) method
theta = theta * Math.PI / 180.0; // Converts from degrees to radians
Console.ReadLine();
Is the program automatically going to convert the value of double v_ox = v_o * Math.Cos(theta) to a value from the user's input of an angle for theta and an initial value? Because when I run it, the program is not calculating the value? Did I do something wrong or is that just how I made it work?