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...
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...
9 days ago
Solved
Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.]
Non-scored bonus...
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...
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...
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 months ago
Solved
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:...