Solved


reverse string
input='rama' output='amar'

1 year ago

Solved


If you have matrix A, create matrix B using matrix A as an "element"
A = [1 2 3 4; 5 6 7 8] B = [1 2 3 4 1 2 3 4; 5 6 ...

1 year ago

Solved


ASCII code of a leter.
Given the letter, the output will show the corresponding ASCII code.

1 year ago

Solved


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

1 year ago

Solved


Square root of a number
Write a code that will output the square root of x.

1 year ago

Solved


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

1 year ago

Solved


Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets $x per hour and a yearly bonus of $2000? (Let, 50 wee...

1 year ago

Solved


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

1 year ago

Solved


Travel time
Calculate the time (in hours) it takes a car traveling at a given uniform speed of s km/hour to travel a distance of d km. For i...

1 year ago

Solved


Array Concatenation (1)
Given two matrices, a and b, concatenate the two matrices horizontally, i.e., the number of columns of the result should be equa...

1 year ago

Solved


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

1 year ago

Solved


Find the max element of the array
Find the max element of the array

1 year ago

Solved


Laws of motion 3

1 year ago

Solved


Total energy

1 year ago

Solved


Kinetic energy calculation

1 year ago

Solved


Laws of motion 5
Calculate the force is u are given mass and acceleration.

1 year ago

Solved


Laws of motion 2

1 year ago

Solved


Laws of motion 1

1 year ago

Solved


Laws of motion 6

1 year ago

Solved


Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.

1 year ago

Solved


Potential energy calculation

1 year ago

Solved


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

1 year ago

Solved


01 - Scalar variables
Create the following variables: <<http://samle.dk/STTBDP/Assignment1_1.png>>

1 year ago

Solved


Make roundn function
Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

1 year ago

Solved


Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. http://en.wikipedia.org/wiki/Whole_numb...

1 year ago

Solved


Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

1 year ago

Solved


MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

1 year ago

Solved


Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

1 year ago

Solved


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

1 year ago

Load more