Fizz
Dado um número inteiro n, retorne 'fizz' se esse valor for multiplo de 3, ou retorne o valor caso contrario.
Fizz(3) = 'fizz';
...
1 year ago
Solved
Determina si el número es primo
Primero, antes que nada: ¿Qué es un número primo?
Un número primo es cualquier número que solamente se puede dividir por 1 y ...
Simple Electrical Power Calculation
Calculate the electrical power using the formula:
P=V×I
where:
V is the voltage (in volts)
I is the current (in amperes)
1 year ago
Solved
Moyenne pondérée
Ecrire une fonction qui prend en entrée un vecteur P et un vecteur V et calcule la moyenne pondérée MP des élements vi d'un vec...
1 year ago
Solved
Wheatstone bridge
Determine if a set of resistors maintain Wheatstone bridge equilibrium
1 year ago
Solved
Maximizing Stock Profit
As a stock exchange broker focusing on a single transaction, your goal is to maximize profit by buying a stock at a low price an...
Battery Life Estimation for a Device
A battery-powered device consumes a constant current while operating. The estimated battery life (T) can be calculated using the...
1 year ago
Solved
Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.