Solved

Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is 720 = 1 * 2 * 3 * 4* 5 *6 Thus 6 factorial = factorial(720)....

alrededor de 5 años ago

Solved

Sudoku square
We have a small Sudoku square, but one number is missing. x = [ 1 5 4 8 6 3 0 9 7 ] Make a function, wher...

alrededor de 5 años ago

Solved

01 - Scalar variables
Create the following variables: <<http://samle.dk/STTBDP/Assignment1_1.png>>

alrededor de 5 años ago

Solved

Variable sized row arrays
* Reverse the contents of row array mileMarkers

alrededor de 5 años ago

Solved

Linear-spaced points array
* Construct a row array plotPoints with 5 values that are spaced linearly from lowValue to highValue. Ex: If lowValue is 1 and ...

alrededor de 5 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 5 años ago

Solved

Population growth
Assign finalPopulation with the population size given an initial population, population growth rate, and number of years. The fi...

alrededor de 5 años ago

Solved

Declaring a string
* Assign streetAddress with the string 1313 Mockingbird Lane.

alrededor de 5 años ago

Solved

Function definition: Double down.
* Complete the DoubleDown function to return twice the initialValue.

alrededor de 5 años ago

Solved

Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

alrededor de 5 años ago

Solved

Construct an array

alrededor de 5 años ago

Solved

Declaring a character
* Assign middleInitial with the character T.

alrededor de 5 años ago

Solved

Computing wind chill
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 5 años ago

Solved

Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the hourly wage times 40 and times 50, because annualSalary = hour...

alrededor de 5 años ago

Solved

Logic variables
* Assign isAvailable with true.

alrededor de 5 años ago

Solved

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

alrededor de 5 años ago

Solved

Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...

alrededor de 5 años 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 5 años ago

Solved

First N Perfect Squares
*Description* Return the first N perfect squares *Example* input = 4; output = [ 1 4 9 16 ];

alrededor de 5 años ago

Solved

Write an expression
Assigns finalResult with firstSample plus secondSample, squared, then divided by 3. Ex: If firstSample is 18 and secondSample is...

alrededor de 5 años ago

Solved

Plus x: A first program
_Solve this problem in Mathwork's online Cody system._ Write a statement that assigns y with 5 plus x. Ex: If input x = 2,...

alrededor de 5 años ago

Solved

Compute total cost
A soda costs 2 dollars. A taco costs 3 dollars. Write a statement that assigns totalCost with the total meal cost given the numb...

alrededor de 5 años ago

Solved

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

alrededor de 5 años 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? <<http://upload.wikimedia.org/wikipe...

alrededor de 5 años ago

Solved

Get the length of a given vector
Given a vector x, the output y should equal the length of x.

alrededor de 5 años ago

Solved

Circle area using pi
Write a statement that assigns circleArea with the circle's area given circleRadius. Use the built-in mathematical constant pi. ...

alrededor de 5 años ago

Solved

surface of a spherical planet
you just discovered its circumference, that is the input.

alrededor de 5 años ago

Solved

Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

alrededor de 5 años ago

Solved

Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

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

alrededor de 5 años ago