解決済み


Perfect Square
Determine if the input is a perfect square (square of an integer) or not. Example - If input is 25(==5^2), return 1. If input...

4ヶ月 前

解決済み


Number Puzzle - 087

4ヶ月 前

解決済み


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

4ヶ月 前

解決済み


Number Puzzle - 086

4ヶ月 前

解決済み


Find the sum of the largest two elements in a vector
With this one, you have to find the two largest elements in a vector and output the sum of those numbers.

4ヶ月 前

解決済み


Diagonal Product of A Square Matrix
For a matrix A, calculate the product of its diagonal elements. * Assume all input matrices are square & corresponding element...

4ヶ月 前

解決済み


Find offset of given matrix element from first matrix element
Given matrix m and an element of that matrix, return the offset from its first element. e.g. m=[11 2 34; 40 51 6; 87 8 109] el...

4ヶ月 前

解決済み


Weave two matrices together to form one matrix
Take the first column from matrix a, then insert the first column from matrix b, and so on. For example: a = [1 2 3 4]; b ...

4ヶ月 前

解決済み


Cricket - How Much More to Beat Bradman?
Sir Don Bradman famously needed only 4 runs in his final innings to retire with an average of 100. Out for a duck, he ended inst...

4ヶ月 前

解決済み


Alternating sum
Given vector x, calculate the alternating sum y = x(1) - x(2) + x(3) - x(4) + ...

4ヶ月 前

解決済み


Find Logic 15

4ヶ月 前

解決済み


Draw a '7' in a zero matrix!

4ヶ月 前

解決済み


The Case of the Missing Prototype – Calculate the Car’s Average Speed Between GPS Readings to Trace the Escape Route
Using GPS data, you’ve obtained the total distance (in meters) traveled by the suspect’s car at equal time intervals.These readi...

4ヶ月 前

解決済み


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

4ヶ月 前

解決済み


Number Puzzle - 070

4ヶ月 前

解決済み


Number Puzzle - 067

4ヶ月 前

解決済み


Number Puzzles - 011

4ヶ月 前

解決済み


Number Puzzles - 007

4ヶ月 前

解決済み


Determine the square root
Determine the square root of the value the user has entered, n.

4ヶ月 前

解決済み


Pluralization
Define function plu(n) that returns '' (an empty string) if n=1, or 's' otherwise. This is handy for displaying messages from a...

4ヶ月 前

解決済み


04 - Scalar Equations 1
Define the variable a: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> Use this to calculate x: <<http://samle.dk/STTBD...

4ヶ月 前

解決済み


Number Puzzle - 035

4ヶ月 前

解決済み


Number Puzzle - 032

4ヶ月 前

解決済み


Sum the two halves of an array with an even number of elements
given an array of an even number of elements, sum the front and back half of the array and return the sums as an array For exam...

4ヶ月 前

解決済み


convert between ascii and characters
I have seen multiple problems like this but none of them have a robust test suite associated with them. The first input C is ...

4ヶ月 前

解決済み


Find the position of last minimum value in an integer array with numbers
If x = [2 6 4 9 -10 3 1 5 -10] then the output should be 9, because last minimum value (-10) lies at the 9th position.

4ヶ月 前

解決済み


Array Width (no usage of size)
Find the array width. Size may not be used.

4ヶ月 前

解決済み


Function substitution (1)
Evaluate the function for the given values of the variables N and t

4ヶ月 前

解決済み


Simple Interest : Calculate Future Value
Theorem : Simple Interest where; F : Future Value P : Present Value r : Annual simple interest rate (decimal) t : Time in...

4ヶ月 前

解決済み


compter le nombre de zéros dans une matrice
écrire une fonction count_zeros qui prend en entrée une matrice M et détermine le nombre de zéros dans une matrice

4ヶ月 前

さらに読み込む