Solved


If
If a more than zero, then b = true.

1 day ago

Solved


Simple equation: Annual salary
Given an hourly wage, compute an annual salary

1 day 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

1 day ago

Solved


Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

1 day ago

Solved


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

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

1 day ago

Solved


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

1 day ago

Solved


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

1 day ago

Solved


Find The Area Of Triangle Using Base & Height
You should find the area of the Triangle using base and height. Good Luck!

1 day ago

Solved


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

1 day ago

Solved


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

1 day ago

Solved


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

1 day ago

Solved


Square a Number
Given an input x, return y, which is equal to the square of x.

1 day ago

Solved


Convert Angstrom to Meters
Write a code that converts the angstrom unit to meters.(A is angstrom and m is meters.)

1 day ago

Solved


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return true if the triangle with sides a, b and c is right-...

1 day ago

Solved


Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

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

1 day ago

Solved


MATLAB 101: Basic Calculator
Write a MATLAB function named basic_calculator that accepts two input numbers, A and B, and returns four distinct outputs: The ...

1 day ago

Solved


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

1 day ago

Solved


Volume of Cylinder
Find the volume of a cylinder

1 day ago

Solved


Mile to Kilometer
x is mile and y is km

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

1 day ago

Solved


surface of a spherical planet
you just discovered its circumference, that is the input.

1 day ago

Solved


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

1 day ago

Solved


y equals x divided by 2
function y = x/2

1 day ago

Solved


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

1 day ago

Solved


Watt
Ampere x Volt = Watt

1 day ago

Solved


MATLAB 101: Area of a circle
Write a MATLAB function named circle_area that accepts the radius r as an input and returns the area of the circle.

1 day ago

Solved


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

1 day ago

Solved


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

1 day ago

Load more