Community Profile

photo

Brett Mastrangelo


50 total contributions since 2016

Brett Mastrangelo's Badges

  • Solver

View details...

Contributions in
View by

Solved


Sum function: Counting cookies
Row array troopCookieSales contains the number of boxes of cookies sold by each troop member. Assign totalSales with the sum of ...

alrededor de 4 años ago

Solved


Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

alrededor de 4 años ago

Solved


this is a test problem
this is a anniversary test problem

alrededor de 4 años ago

Solved


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

alrededor de 4 años ago

Solved


UICBioE240 problem 1.5
Find the size of the matrix, then multiply both values by 10 and make it into a column vector. So if A = [ 1 2 3; ...

alrededor de 4 años ago

Solved


UICBioE240 problem 1.3
Find the length of a vector. So if A = [1 1 1 1 1] Then B = 5

alrededor de 4 años ago

Solved


Volume of this donut
Given hole diameter a, and outermost diameter b, determine the volume y of the resulting donut.

alrededor de 4 años ago

Solved


UICBioE240 problem 1.2
Convert a column vector into a row vector. So if A = [1; 2; 3] Then B = [ 1 2 3]

alrededor de 4 años ago

Solved


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

alrededor de 4 años ago

Solved


UICBioE240 2.10
Given a vector of numbers, give the difference between the maximum and minimum values.

alrededor de 4 años ago

Solved


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

alrededor de 4 años ago

Solved


Wind Chill Computation
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

alrededor de 4 años ago

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

alrededor de 4 años ago

Solved


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

alrededor de 4 años ago

Solved


modulus of a number
find the modulus of a given number

alrededor de 4 años ago

Solved


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

alrededor de 4 años ago

Solved


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

alrededor de 4 años ago

Solved


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

alrededor de 4 años ago

Solved


ASCII code of a leter.
Given the letter, the output will show the corresponding ASCII code.

alrededor de 4 años ago

Solved


Corresponding letter to ASCII code.
Given the letter, the output will show the corresponding ASCII code.

alrededor de 4 años ago

Solved


ASCII Code
Using matlab, give the symbol that is associated with ASCii code 90.

alrededor de 4 años ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

alrededor de 4 años ago

Solved


Assigning a sum
* Write a statement that assigns numCoins with numNickels + numDimes.

alrededor de 4 años ago

Solved


Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

alrededor de 4 años 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 4 años 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]

alrededor de 4 años ago

Solved


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

alrededor de 4 años ago

Solved


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

alrededor de 4 años ago

Solved


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

alrededor de 4 años ago

Load more