Resuelto


Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...

más de 1 año hace

Resuelto


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2 3 3 3 4...

más de 1 año hace

Resuelto


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

más de 1 año hace

Resuelto


Calculate Parallel Resistance
Three resistors connected in parallel have resistances R1, R 2, and R 3, respectively. Return the total resistance R total of ...

más de 1 año hace

Resuelto


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

más de 1 año hace

Resuelto


Return area of square
Side of square=input=a Area=output=b

más de 1 año hace

Resuelto


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

más de 1 año hace

Resuelto


Total energy

casi 2 años hace

Resuelto


Kinetic energy calculation

casi 2 años hace

Resuelto


Laws of motion 1

casi 2 años hace

Resuelto


Laws of motion 2

casi 2 años hace

Resuelto


Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.

casi 2 años hace

Resuelto


Laws of motion 5

casi 2 años hace

Resuelto


Sums of cubes and squares of sums
Given the positive integers 1:n, can you: 1. Compute twice the sum of the cubes of those numbers. 2. Subtract the square...

casi 2 años hace

Resuelto


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displayed ...

casi 2 años hace

Resuelto


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

casi 2 años hace

Resuelto


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

casi 2 años hace

Resuelto


Potential energy calculation

casi 2 años hace

Resuelto


Velocity Conversion
Given a velocity in mph, convert it to km/h. Round the answer to the fourth decimal place.

casi 2 años hace

Resuelto


Force and Motion 3
Two robots push on a large object in the same direction. One robot pushes with a force of F1 Newtons and the other with a force...

casi 2 años hace

Resuelto


Voltage in a lamp
A lamp is measured to have a resistance of R ohms when it operates at a power of P Watts. What is the voltage (in volts) being a...

casi 2 años hace

Resuelto


Resistance in a circuit
Two resistors with values of 6.0 ohms and 12 ohms are connected in parallel. This combination is connected in series with a 4 o...

casi 2 años hace

Resuelto


Calculate supply voltage and total current
Three resistors are connected in series and each has a resistance in ohms. Resistor R2 has a voltage drop of ΔV2volts Find the ...

casi 2 años hace

Resuelto


Force and Motion 2
Two robots are pulling on an object in opposite directions. One robot pulls with a force of F1 Newtons and the other with a forc...

casi 2 años hace

Resuelto


Laws of motion 6

casi 2 años hace

Resuelto


Laws of motion 3

casi 2 años hace

Resuelto


Add two numbers
Given a and b, return the sum a+b in c.

casi 2 años hace

Resuelto


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

casi 2 años hace

Resuelto


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

casi 2 años hace

Resuelto


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

casi 2 años hace

Cargar más