已解决


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

2 years 前

已解决


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

2 years 前

已解决


Determine whether the input is divisible by 3 as well as 5
If the input is divisible by 3 as well as 5 then the output should be 'true' otherwise 'false'

2 years 前

已解决


ICFP 2023 Orchestra: Score Optimization of 2-Musicians and 1-Attendee
The Template solves all cases. Please submit the template and view the graphs. The ICFP 2023 Competition in July was to place...

2 years 前

已解决


Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

2 years 前

已解决


determine the sum of the squares
if x = 4, the solution will be: y = 1^2+2^2+3^2+4^2=1+4+9+16 = 30.

2 years 前

已解决


Find the last digit
FInd the last digit of a given number. Given number is the input and output should be the last digit of that number.

2 years 前

已解决


modulus of a number
find the modulus of a given number

2 years 前

已解决


Rotate array 90 degrees
Rotate the given matrix by 90 degrees. Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

2 years 前

已解决


Solve expression II
Solve given expression. alpha=0.1(-x-y-50)/(exp((-x-y-50)/10)-1) beta=5exp((-x+y-60)/20) result=alpha+beta;

2 years 前

已解决


Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.

2 years 前

已解决


Set x value to each odd index of vector y.
Set x value to each odd index of vector y.

2 years 前

已解决


Sum positive elements of matrix.
Calculate sum of positive elements of the matrix.

2 years 前

已解决


Find sum of negative elements in row.
Find sum of negative elements in row. Example x=[1 -5 3 4 -6 6 7 8 9 10] result = -11

2 years 前

已解决


Display positive elements of matrix.
Display positive elements of matrix.

2 years 前

已解决


Check for armstrong number
Given a number, check if it is an armstrong number. Eg: n = 371 Output: 1 Eg: n = 75 Output: 0

2 years 前

已解决


Palindrome Check
Check whether the entire matrix is palindrome or not. Example matrix = [7 8 7] matrix_reverse = [7 8 7] So the mat...

2 years 前

已解决


Matrix symmetry
Given a matrix A = [1 2 3; 4 5 6] Flip it horizontally and vertically to obtain a complete reversal of both rows and columns. ...

2 years 前

已解决


Find the area of the four walls
If length, breadth and height of the walls are given, find the area of the four walls.

2 years 前

已解决


Matrix which contains the values of an other matrix A at the given locations.
If you have two matrices, which together give xc and yc coordinates into another matrix, eg : xc = [1 1 1; 2 2 1]; ...

2 years 前

已解决


A quadrant matrix
Write a function called quadrants that takes as its input argument a scalar integer named n. The function returns Q, a 2n-by-2n ...

2 years 前

已解决


Tiling a matrix
Given a matrix and a number of columns, replicate matrix in a single row

2 years 前

已解决


Strange Number Algorithms
Three integer numbers will be provided to you. Write a function to Step1: Multiply first number by 3. Step2: Add 6 with t...

2 years 前

已解决


Mid-term report
You just got your mid-term report, but it's full of ones and twos :(. So before you give it to your parents, you change it, in o...

2 years 前

已解决


calculate the tangent of angle in radians
Calculate the tangent of angle in degrees

2 years 前

已解决


Determine if a row vector has NaN
Determine if a row vector x has NaN

2 years 前

已解决


Average of square wave
given positive and negative peak , calculate dc level, 50% duty cycle

2 years 前

已解决


peta to nano (x-ray)
for certain x-ray radiation, given frequency in petahertz, give wavelength in nanometer, must be accurate +/- 25%

2 years 前

已解决


return 4
Return 4

2 years 前

已解决


Determine if input is greater than pi
Evaluate if given number is greater than pi. If greater, return true; else, return false.

2 years 前

加载更多