-
Notifications
You must be signed in to change notification settings - Fork 23
Viktor morohovtsev #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Viktor morohovtsev #36
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔧
CourseApp/Program.cs
Outdated
return y; | ||
} | ||
|
||
public static double[] TaskA(double a, double xn, double xk, double dx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Используйте коллекции вместо массивов
@jskonst , использовал коллекции |
Какой родительский класс можно составить по отношению к Человеку? |
double xn = 1.2; | ||
double xk = 3.7; | ||
double dx = 0.5; | ||
List<double> res = Program.TaskA(a, xn, xk, dx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Случай когда xn > xk и случай dx > xk-xn
{ | ||
Console.WriteLine("Age should be more 0 and less than 100"); | ||
Assert.True(true); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Проверьте, что не сменился возраст после выбрасывания exception'a
Task A, B and test (first attempt).