Игра и математика вместе - C#
Формулировка задачи:
Здравствуйте. Программа работает. Но не всё работает и еще предупреждает, что какое то исключение не обработано (не реализовано). Пожалуйста, помогите понять в чем дело.
Заранее благодарю.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp3
{
class Program
{
class Math{
internal static int sin(int v)
{
throw new NotImplementedException();
}
internal static int sqrt(object p)
{
throw new NotImplementedException();
}
}
static void Main()
{
Console.Write("a(Введите угол):");
int a = Int32.Parse(Console.ReadLine());
int[] arr = new int[a];
int s = 1500; //половина дальности между танками
int p; //расстояние пролетевшее --- p=(pow(u,2))*(Math.sin(v))/g
int u = 10; //начальная скорость --- u=Math.sqrt(20*5)
int g = 10; //округляем g
int v ;
int t = 200; // время полета
int h = 200000; //высота
Console.WriteLine(v = 2 * a);
Console.WriteLine(h=(g* (pow(t, 2)))/2);
Console.WriteLine(p=(pow(u, 2))*(Math.sin(v))/g);
Console.Read();
if (p == s*2)
{
System.Console.Write("POPAL");
}
else if (p != 2 * s)
{
System.Console.Write("PROMAZAL");
}
}
private static int pow(int u, int v)
{
throw new NotImplementedException();
}
private static int pow(int v1, int u, int v2)
{
throw new NotImplementedException();
}
}
}Решение задачи: «Игра и математика вместе»
textual
Листинг программы
class Math
{
internal static int sin(int v);
}