Posts by Brian de Oliveira • 33 points
3 posts
-
0
votes2
answers58
viewsA: Organization for future code maintenance when I have two similar functions
I decided to use the hint of this link and the second function: Why not use a boolean parameter? That would continue to use the "bool todos" parameter, but create functions that call this main…
-
1
votes2
answers58
viewsQ: Organization for future code maintenance when I have two similar functions
I have two functions, one returns only the first result and the other also returns the first result or returns more than one result. I created the "string all" parameter to define whether to return…
-
2
votes3
answers103
viewsA: Individual average does not return value and the number of student situations does not count in C#
You can use the Nota1, nota2 and nota3 variable as an array as well double[] notas = new double[3]; And make a "for" to go through those notes inside the other "for" int i2; for (i2 = 0; i2 <…
c#answered Brian de Oliveira 33