Posts by Filipe Farias • 157 points
7 posts
-
0
votes3
answers1384
viewsA: Problem with Python matrices
Well, I don’t think what I’m going for is complex, I’m going to put a few comments in case you don’t understand. # PEGUEI SEU CÓDIGO PARA FACILITAR VOU DEIXAR ELE MAIS EXTENSO MESMO QUE NÃO ESTEJA…
-
2
votes3
answers82
viewsA: How to display matrix input values without [' ']
well, I wouldn’t recommend doing so but I can help. mt1 = input().split() mt2 = input().split() mt3 = input().split() mt4 = input().split() # a função split retorna uma lista, mesmo que contendo…
pythonanswered Filipe Farias 157 -
1
votes4
answers295
viewsA: take only the decimal of a double
try it this way, I think it works! public double decimal(double num){ return num % 1; //retorna o resto da divisao } OUUUU public decimal(double x){ resto = x % 1; //mesma coisa de antes } as I…
javaanswered Filipe Farias 157 -
0
votes1
answer493
viewsA: Storing questions from a java quiz
You did not start the questions/objects using the Questions class Preciclage method, try this. public static void main(String[] args){ Perguntas.Preciclagem();…
javaanswered Filipe Farias 157 -
2
votes3
answers1952
viewsA: Sum of the main diagonal of a matrix in Python
You have passed more arguments than necessary in input (raw_input is python 2.7 as I recall and I used 3.7), try using an input for i and another for j, however your code would culminate in more…
pythonanswered Filipe Farias 157 -
2
votes1
answer36
viewsQ: Why is it possible to delete an exception "release" statement from the signature of an inherited method?
I would like to know because I did not understand this part, it is because it is a statement that it can "launch" an exception? //EXEMPLO public abstract class Personagem{ public abstract void…
-
2
votes1
answer509
viewsQ: How does the Composite design pattern work in theory?
How does this pattern work in theory? What kind of problem does it solve and what utilities does it bring or something?