Solved


Determine the number of odd integers in a vector
Determine the number of unique odd integers in a vector. Examples: Input x = [2 5 8 3 7 1]; Output y = 4; Inp...

2 years ago

Solved


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

2 years ago

Solved


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

2 years ago

Solved


Count ones
Write a program to count number of ones (1s) in an integer variable input. For example: Input x=2200112231 output y=3 I...

2 years ago

Solved


Mode
Find the mode of the vector Assumption: no vector is bimodal Example 1: input=[1 2 3 4 4]; output=4 Example 2: input=[7...

2 years ago

Solved


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

2 years ago

Solved


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

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

2 years ago

Solved


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

2 years ago

Solved


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

2 years ago

Solved


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

2 years ago

Solved


Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

2 years ago

Solved


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

2 years ago

Solved


Add a row of zeros on top of a matrix
Given a matrix, insert a row of zeros as the top row.

2 years ago

Solved


Sum of odd numbers in a matrix
Find the sum of all the odd numbers in a matrix. Example x = [2 3 5 7 1 4 11] y = 27

2 years ago

Solved


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

2 years ago

Solved


Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

2 years ago

Solved


Max of a Vector
Write a function to return the max of a vector

2 years ago

Solved


Find out sum of prime number till given number
Find out sum of prime number till given number Example, if number is 10, then answer must be 17.

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

2 years ago

Solved


Find max
Find the maximum value of a given vector or matrix.

2 years ago

Solved


the average value of the elements
Calculate the average value of the elements in the array

2 years ago

Solved


calculate the length of matrix
input 1 array, calculate the length

2 years ago

Solved


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

2 years ago

Solved


Laws of motion 1

2 years ago

Solved


Laws of motion 6

2 years ago

Solved


Laws of motion 5

2 years ago

Solved


Total energy

2 years ago

Solved


Potential energy calculation

2 years ago

Solved


Laws of motion 2

2 years ago

Load more