Solved


MPS to MPH
Given the speed in miles per second, find the speed in miles per hour.

5 years ago

Solved


Area of rhombus
Calculate the rhombus area

5 years ago

Solved


Degrees to Radian
Convert degrees to radians

5 years ago

Solved


Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.

5 years ago

Solved


Spherical Volume
Calculate the volume of a sphere.

5 years ago

Solved


Area of square
Find the area of a square whose diagonal length is given as x.

5 years ago

Solved


How many monitors are connected ?
How to obtain the numbers of monitors connected to your computer ?

5 years ago

Solved


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

5 years ago

Solved


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

5 years ago

Solved


metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

5 years ago

Solved


Sum the squares of numbers from 1 to n
For a given value of n return the sum of square of numbers from 1 to n. Example For n = 2 then sum of squares = 5 (1^2 + ...

5 years ago

Solved


Convert degrees to radians
Given input in degrees, output to radians

5 years ago

Solved


Draw 'C'.
Given x as input, generate a x-by-x matrix 'C' using 0 and 1. example: x=4 ans= [0 1 1 1 1 0 0 0 ...

5 years ago

Solved


Draw 'F'
Draw a x-by-x matrix 'F' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 1 1 0 0 0 0 ...

5 years ago

Solved


Calculate square and cube of number
Calculate square and cube of number x

5 years ago

Solved


Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

5 years ago

Solved


Draw 'B'
Draw a x-by-x matrix 'B' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 0 1 0 0 0 1 ...

5 years ago

Solved


Find out value of sine given by degree.
Find out value of sine given by degree. If theta=30, it's value must be 0.5.

5 years ago

Solved


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

5 years ago

Solved


Complex number
For complex number c=a+bi, write code that will add a and b together.

5 years ago

Solved


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

5 years ago

Solved


Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

5 years ago

Solved


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

5 years ago

Solved


Rounding
Round 10.67 and make 'y' equal to that number.

5 years ago

Solved


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

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

5 years ago

Solved


Sum of Two Numbers
Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

5 years ago

Solved


Given a matrix, swap the 2nd & 3rd columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

5 years ago

Solved


Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

5 years ago

Solved


Angle between two vectors
You have two vectors , determine the angle between these two vectors For example: u = [0 0 1]; v = [1 0 0]; The a...

5 years ago

Load more