Posts by Laura • 63 points
4 posts
-
-1
votes1
answer65
viewsQ: How to add a specific key to an array object?
I’m starting in Javascript and have the following problem: Given the array: const game = [['John', 'rock'], ['Mayk', 'scissors']]; I need to verify who is the winner (of a jokempô tournament), IE,…
javascriptasked Laura 63 -
0
votes1
answer121
viewsQ: How to query within a Java array?
The problem calls for the creation of a program that reads the name, Cpf, email and phone of 10 people. Then provide 4 query options (1-By name, 2-By CPF, 3-By email and 4-By phone). For example, if…
-
1
votes1
answer769
viewsQ: Exception in thread "main" java.util.Nosuchelementexception: No line found
I am new in programming and the problem asks to store in vector the name of 10 products. Then the program must request the range of products that must be displayed (for example: 3 to 7). The error…
-
1
votes1
answer46
viewsQ: How do I print a table with all iterations in Python?
With the code below I get only the final answers, how do I print each step? def funcao_volume(x : float): return 4*(x**3) - 1014*(x**2) + 62370*x def calculate_alpha(delta: float): numerador =…