Community Profile

photo

Manjinder Singh


Last seen: 3년 초과 전 2018년부터 활동

Followers: 0   Following: 0

통계

  • Solver

배지 보기

Feeds

보기 기준

문제를 풀었습니다


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

5년 초과 전

문제를 풀었습니다


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

5년 초과 전

문제를 풀었습니다


inner product of two vectors
inner product of two vectors

5년 초과 전

문제를 풀었습니다


prime test
find largest 2 digit prime number

5년 초과 전

문제를 풀었습니다


Average speed for the entire trip
The input is two speeds (for the trip and return trip) and output is average speed. Assume units are consistent, say miles per h...

5년 초과 전

문제를 풀었습니다


Calculate volume of box
Calculate the volume of box,hiven its sides

5년 초과 전

문제를 풀었습니다


kmph to mph converter
Convert the speed in miles/hour to km/hour.

5년 초과 전

문제를 풀었습니다


Product of Array
Given an array of numbers. Get the product of the array.

5년 초과 전

문제를 풀었습니다


Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer: e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


only input
Return the output without writing any code into the function.

5년 초과 전

문제를 풀었습니다


Replacing a row
For matrix G=[1 2 3; 4 5 6; 7 8 9] Replace the 2nd row with 8s **remember to create matrix G

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


Given area find sides
In a right angle triangle given area 'A' one arm=x, another arm=2x then find the value of x. For example, area A=400 then ...

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


Matlab Basics II - Count rows in a matrix
Write a function that returns that number of rows in a vector or matrix x example: x = [1; 2; 3] output = 3

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


Average Grade
Given a 1x5 vector presents the grades of a student on five tests. Calculate the average grade of that student.

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


Percentage profit
If you are buying at x dollar, what will be the selling price for making the r% profit?

5년 초과 전

문제를 풀었습니다


What percentage?
Calculate the output c as the percentage of a on b for given a and b.

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

5년 초과 전

문제를 풀었습니다


Back to basics 9 - Indexed References
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix and row and column, output the index of th...

5년 초과 전

문제를 풀었습니다


Back to basics 12 - Input Arguments
Covering some basic topics I haven't seen elsewhere on Cody. Return a value equal to the number of input arguments to the fun...

5년 초과 전

더 보기