Risolto


Sum All Positive Elements
Output a scalar that is equal to the sum of all positive elements in a given vector/matrix. For Example: The sum of all positi...

28 giorni fa

Risolto


divide by 5

28 giorni fa

Risolto


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

28 giorni fa

Risolto


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 ...

28 giorni fa

Risolto


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

28 giorni fa

Risolto


radius of a spherical planet
You just measured its surface area, that is the input.

28 giorni fa

Risolto


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

28 giorni fa

Risolto


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

28 giorni fa

Risolto


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...

28 giorni fa

Risolto


Convert from Fahrenheit to Celsius
Given an input vector F containing temperature values in Fahrenheit, return an output vector C that contains the values in Celsi...

28 giorni fa

Risolto


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

28 giorni fa

Risolto


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 ...

28 giorni fa

Risolto


Calculate Amount of Cake Frosting
Given two input variables r and h, which stand for the radius and height of a cake, calculate the surface area of the cake you n...

2 mesi fa

Risolto


Determine the square root
Determine the square root of the value the user has entered, n.

2 mesi fa

Risolto


The Gate of Addition
As Arjun stands at the entrance of the mysterious Lost Forest of Aryavarta, he encounters a massive ancient wooden gate covered ...

2 mesi fa

Risolto


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:...

2 mesi fa