Community Profile

# Brett Mastrangelo

50 total contributions since 2016

View details...

Contributions in
View by

Solved

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

oltre 3 anni 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 ...

oltre 3 anni ago

Solved

this is a test problem
this is a anniversary test problem

oltre 3 anni 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;...

oltre 3 anni 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; ...

oltre 3 anni ago

Solved

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

oltre 3 anni ago

Solved

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

oltre 3 anni 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]

oltre 3 anni ago

Solved

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

oltre 3 anni ago

Solved

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

oltre 3 anni ago

Solved

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

oltre 3 anni 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...

oltre 3 anni 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,...

oltre 3 anni ago

Solved

Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

oltre 3 anni ago

Solved

modulus of a number
find the modulus of a given number

oltre 3 anni ago

Solved

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

oltre 3 anni ago

Solved

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

oltre 3 anni ago

Solved

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

oltre 3 anni ago

Solved

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

oltre 3 anni ago

Solved

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

oltre 3 anni ago

Solved

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

oltre 3 anni 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 ...

oltre 3 anni ago

Solved

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

oltre 3 anni ago

Solved

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

oltre 3 anni 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...

oltre 3 anni 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]

oltre 3 anni 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; ...

oltre 3 anni ago

Solved

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

oltre 3 anni ago

Solved

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

oltre 3 anni ago