Community Profile

photo

Alfred Larsson


Active since 2016

Followers: 0   Following: 0

Statistics

  • Solver

View badges

Feeds

View by

Solved


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

7 years ago

Solved


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

7 years ago

Solved


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

7 years ago

Solved


Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

7 years ago

Solved


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

7 years ago

Solved


If you have matrix A, create matrix B using matrix A as an "element"
A = [1 2 3 4; 5 6 7 8] B = [1 2 3 4 1 2 3 4; 5 6 ...

7 years ago

Solved


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

7 years ago

Solved


Find subtraction
Given a, b. Find a-b

7 years ago

Solved


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

7 years ago

Solved


find max
You are given an array number find the maximum

7 years ago

Solved


Find the qube of a give number.
You are given a number, find the qube of that number.

7 years ago

Solved


Find mean
given an array, find the mean of the number in that array

7 years ago

Solved


first element of matrix
find the first elements of a column matrix

7 years ago

Solved


Find remainder when x is divided by 3
Find remainder when x is divided by 3

7 years ago

Solved


multiply an array by its position number
You have given an array. Multiply an array by its position number

7 years ago

Solved


find sum of the numbers in array
calculate the sum of numbers in a given array

7 years ago

Solved


find square root of a positive real number
a number given, find the square root of that number

7 years ago

Solved


find minimum
find the minimum from an array

7 years ago

Solved


find lenth of array
you have given an array, find the length of that.

7 years ago

Solved


Find qube root
Find the quberoot of 27

7 years ago

Solved


find the Area of a rectangle
length is x width is y what is the area of the rectangle?

7 years ago

Solved


Lightning strike distance: Writing a function
Write a function named LightningDistance that outputs "distance" given input "seconds". Seconds is the time from seeing lightnin...

7 years ago

Solved


radius of a spherical planet
you just measured its surface area, that is the input.

7 years ago

Solved


Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

7 years 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];

7 years ago

Solved


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

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

7 years ago

Solved


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

7 years ago

Solved


Make one big string out of two smaller strings
If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

7 years ago

Solved


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

7 years ago

Load more