Community Profile

photo

Jason Casey


103 total contributions since 2019

Jason Casey's Badges

  • CUP Challenge Master
  • Promoter
  • Solver

View details...

Contributions in
View by

Solved


Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

environ 2 mois ago

Solved


Free passes for everyone!
_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): Once a mont...

environ 2 mois ago

Solved


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

environ 2 mois 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

environ 2 mois 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...

environ 2 mois ago

Solved


Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

environ 2 mois ago

Solved


Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

environ 2 mois ago

Solved


Concatenate two strings
Its very easy. Just concatenate two strings.

environ 2 mois ago

Solved


Reverse a matrix
Its simple. You have to reverse a given matrix.

environ 2 mois ago

Solved


Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

environ 2 mois 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 + ...

environ 2 mois ago

Solved


Will there be a new leader?
Simply answer the title.

environ 2 mois ago

Solved


Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

environ 2 mois ago

Solved


Basic arrays operations.
Apply element-by-element binary operation 'fun' to two arrays (A and B).

environ 2 mois ago

Solved


Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

environ 2 mois ago

Solved


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

environ 2 mois ago

Solved


Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

environ 2 mois ago

Solved


Calculate square and cube of number
Calculate square and cube of number x

environ 2 mois ago

Solved


factorial of a number x
Factorial of a number x

environ 2 mois ago

Solved


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

environ 2 mois ago

Solved


Circumscribed circles
Given the lengths of the 3 sides of a triangle, output the radius of the circumscribed circle. Example: [3 4 5] -> 2.5

environ 2 mois ago

Solved


Back to basics 26 - Keywords
Covering some basic topics I haven't seen elsewhere on Cody. Return a cell array of strings of all MATLAB keywords.

environ 2 mois ago

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

environ 2 mois ago

Solved


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

2 mois ago

Solved


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 mois ago

Solved


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

2 mois ago

Solved


Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

2 mois ago

Solved


ASCii Code
Using matlab, give the symbol that is associated with ASCii code 122

2 mois ago

Solved


Divisible by 16
Write a function to determine if a number is divisible by 16. This can be done by a few different methods. Here are two: # If...

2 mois ago

Solved


Divisible by 15
Write a function to determine if a number is divisible by 15. If a number is <http://www.mathworks.com/matlabcentral/cody/proble...

2 mois ago

Load more