Skip to content

Conversation

DressCodeBoy
Copy link

Task A, B and test (first attempt).

Copy link
Collaborator

@jskonst jskonst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧

return y;
}

public static double[] TaskA(double a, double xn, double xk, double dx)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Используйте коллекции вместо массивов

@DressCodeBoy
Copy link
Author

@jskonst , использовал коллекции

@DressCodeBoy
Copy link
Author

Какой родительский класс можно составить по отношению к Человеку?

double xn = 1.2;
double xk = 3.7;
double dx = 0.5;
List<double> res = Program.TaskA(a, xn, xk, dx);
Copy link
Collaborator

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);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Проверьте, что не сменился возраст после выбрасывания exception'a

@jskonst jskonst merged commit 0e3ba37 into ISUCT:Viktor_Morohovtsev Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants