Gelöst


kmph to mps
convert kilometer per hour to meter per second

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

10 Monate vor

Gelöst


Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

10 Monate vor

Gelöst


Energy Conversion 1

10 Monate vor

Gelöst


Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

10 Monate vor

Gelöst


Square a Number
Given an input x, return y, which is equal to the square of x.

10 Monate vor

Gelöst


Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

10 Monate vor

Gelöst


Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


Temperature Conversion 2

10 Monate vor

Gelöst


Temperature Conversion 3
Given a temperature in Celcius, convert it to Fahrenheit.

10 Monate vor

Gelöst


Temperature Conversion 1

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


to the 2 all elements
to the 2 all elements

10 Monate vor

Gelöst


Double all elements in the array
Duplicate all elements in the array

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

10 Monate vor

Gelöst


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

10 Monate vor

Gelöst


Find the max element of the array
Find the max element of the array

10 Monate vor

Gelöst


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


Spherical Volume
Calculate the volume of a sphere.

10 Monate vor

Mehr laden