Solved


given 3 sides, find area of this triangle
1:3 -> 0; 3:5 -> 6

3 years ago

Solved


Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

3 years ago

Solved


Count photos
Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total nu...

3 years ago

Solved


Squares inside a square!

3 years ago

Solved


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

3 years ago

Solved


Half?
If you toss an even number (x) of coins, what is the probability (y) of 50% head and 50% tail?

3 years ago

Solved


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

3 years ago

Solved


What percentage?
Calculate the output c as the percentage of a on b for given a and b.

3 years ago

Solved


Product of Array
Given an array of numbers. Get the product of the array.

3 years ago

Solved


Kinetic Energy
Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.

3 years ago

Solved


Find the sum of n squares
What is the sum of the squares of the first n integers?

3 years ago

Solved


square root
Find the square root (y) of an input (x).

3 years ago

Solved


ASCii Code
Using matlab, give the symbol that is associated with ASCii code 122

3 years ago

Solved


All your base are belong to us
Find the base _b_ logarithm of the input decimal number _x_. Express the output as a decimal number. The first argument is the n...

3 years ago

Solved


Given area find sides
In a right angle triangle given area 'A' one arm=x, another arm=2x then find the value of x. For example, area A=400 then ...

3 years ago

Solved


Cutoff OF Exam

3 years ago

Solved


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

3 years ago

Solved


Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is 720 = 1 * 2 * 3 * 4* 5 *6 Thus 6 factorial = factorial(720)....

3 years ago

Solved


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

3 years ago

Solved


Sum of first n positive integers
Given n, find the sum of first n positive integers Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these terms is 55

3 years ago

Solved


If-then-else
Complete the function below such that if the value of x is in the range 10 to 14, inclusive, the value 18 is assigned to y. Oth...

3 years ago

Solved


kmph to mps
convert kilometer per hour to meter per second

3 years ago

Solved


Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

3 years ago

Solved


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

3 years ago

Solved


Calculate Resistance
Calculate Resistance R of a linear conductor having resistivity p, length l and area A

3 years ago

Solved


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

3 years ago

Solved


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

3 years ago

Solved


matlab indian players
answer is one of the indian matlab player(just for fun dont take serious)

3 years ago

Solved


Weighted average
Given two lists of numbers, determine the weighted average as follows Example [1 2 3] and [10 15 20] should result in 33.3...

3 years ago

Solved


10% Discount

3 years ago

Load more