Community Profile

# Caleb O'Cain

##### Last seen: alrededor de 2 meses ago
77 total contributions since 2021

View details...

Contributions in
View by

Solved

y equals x divided by 2
function y = x/2

alrededor de 2 meses ago

Solved

divide by 5

alrededor de 2 meses ago

Solved

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

alrededor de 2 meses ago

Solved

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

alrededor de 2 meses ago

Solved

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

alrededor de 2 meses ago

Solved

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

alrededor de 2 meses ago

Solved

Deleting an element in a matrix
For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix Grades=[98 56 34 100 88 87] **re...

alrededor de 2 meses ago

Solved

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

alrededor de 2 meses ago

Solved

Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

alrededor de 2 meses ago

Solved

Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

alrededor de 2 meses ago

Solved

Continued fractions
Find a <http://en.wikipedia.org/wiki/Continued_fraction continued fraction> approximation of x.

alrededor de 2 meses ago

Solved

find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

alrededor de 2 meses ago

Solved

Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

alrededor de 2 meses ago

Solved

Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

alrededor de 2 meses ago

Solved

Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

alrededor de 2 meses ago

Solved

Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

alrededor de 2 meses ago

Solved

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

alrededor de 2 meses ago

Solved

Given input in radians, output to degrees

alrededor de 2 meses ago

Solved

You just measured its surface area, that is the input.

alrededor de 2 meses ago

Solved

Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

alrededor de 2 meses ago

Solved

Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

alrededor de 2 meses ago

Solved

Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<https://imgur...

alrededor de 2 meses ago

Solved

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

alrededor de 2 meses ago

Solved

Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

alrededor de 2 meses ago

Solved

Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

alrededor de 2 meses ago

Solved

Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

alrededor de 2 meses ago

Solved

Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<https://i.imgur.com/jlZDHhq.png>> Image courtesy of <http://up...

alrededor de 2 meses ago

Solved

Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x? <<https://i.imgur.com/jlZDHhq.png>> ...

alrededor de 2 meses ago

Solved

Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<https://imgur.com/x6hT6mm.png>> ...

alrededor de 2 meses ago

Solved

Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

alrededor de 2 meses ago