Don't Include a Five (Part Two)
Given a vector A with at least one non-five, return vector B, with all fives excluded (not replaced by zeros).
12日 前
解決済み
Don't Include a Five
Given a vector A, return vector B with all 5s replaced with 0s.
12日 前
解決済み
High Five!
Write a function that takes a number x and returns y = 'High Five' if x is not equal to five. Return y = 'Denied' if the number ...
12日 前
解決済み
A Five Introduction
Write a function that takes a number x as an input and returns the same value as y, unless x = 5, in which case the function sho...
12日 前
解決済み
Basic Physics X
Calculate the Kinetic Energy (KE) by Weight (w), Distanec (d), and Time (t) without Mass (m) or Speed (v).
12日 前
解決済み
Basic Physics IX
Calculate the Kinetic Energy (KE) by Weight (w) instead of Mass (m).
12日 前
解決済み
Basic Physics VIII
Calculate the Mechanical Energy (ME) when the point is B.
Basic Physics I
Calculate the energy by the famous formula of Albert Einstein.
12日 前
解決済み
Roll the Dice!
Description
Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice.
Example
[x1,x2] = rollDice(...
12日 前
解決済み
An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:*
Many important observations in math and science can be described by short, but powerful, equations...
Basic Algebra II
You have the equation X^2 = n you should find the value of X.
GOOD LUCK!
12日 前
解決済み
Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...
Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle.
<<https://i.imgu...