A résolu


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

presque 10 ans il y a

A résolu


Sum of series I
What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

presque 10 ans il y a

A résolu


Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

presque 10 ans il y a

A résolu


x&u are two vectors then Y=x+u???
x&u are two vectors then Y=x+u???

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


Tree Height
Assign treeHeight with the tree height given the shadow length and angle of elevation. Simple geometry can compute the heigh...

presque 10 ans il y a

A résolu


Calculating cost
You sold a Product at $x and gain 10% What was the cost of the product?

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


03 - Matrix Variables 5
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3e.png>>

presque 10 ans il y a

A résolu


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

presque 10 ans il y a

A résolu


Calculate z=x^2+y^2
There are z in (x,y). x=1:10;y=1:10 [x y]=meshgrid(x,y) Calculate x^2+y^2.

presque 10 ans il y a

A résolu


Potential Energy
Calculate the potential energy of a rock.

presque 10 ans il y a

A résolu


Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

presque 10 ans il y a

A résolu


Create a vector
Create a vector from 0 to n by intervals of 2.

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


Matlab Basics - y as a function of x
write a script to calculate y as a function of x, such that y = 6x^2 + 5x - 2

presque 10 ans il y a

A résolu


Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


Find out sum of all elements of given Matrix
Find out sum of all elements of given Matrix A=[1 2 3;4 5 6 ;7 8 9]; Answer must be: 45 *If you like this problem, pl...

presque 10 ans il y a

A résolu


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


Matlab Basics - Sum a vector
Write a script to add up all the elements in a vector e.g. x = [1 2 3 4] --> output = 10

presque 10 ans il y a

A résolu


Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

presque 10 ans il y a

A résolu


Computing wind chill
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

presque 10 ans il y a

A résolu


Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<http://upload.wikimedia.org/wikipe...

presque 10 ans il y a

A résolu


Area of a circle
Find the value for area of the circle if diameter is given

presque 10 ans il y a

A résolu


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

presque 10 ans il y a

A résolu


Times 3 problem
When you enter the number, it should return the number multiplied by 3

presque 10 ans il y a

Charger plus