Solved


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

11 years ago

Solved


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

11 years ago

Solved


Variable Assignment
Complete the ? part by assigning myExamScore with 100.

11 years ago

Solved


Construct an array
* Construct an array named observedValues with elements sensorReading1, sensorReading2, and sensorReading3.

11 years ago

Solved


Character variable: Compass direction
* Assign compassDirection with sensorReading's value. Both are character variables.

11 years ago

Solved


Fahrenheit to Celsius using multiple statements
°C = (°F - 32) x 5/9 * Write a statement that assigns fractionalMultiplier with 5/9. * Write a second statement that assign...

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

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

11 years ago

Solved


Declaring a character
* Assign middleInitial with the character T.

11 years ago

Solved


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

11 years ago

Solved


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

11 years ago

Solved


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

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

11 years ago

Solved


Coordinate geometry
Assign pointsDistance with the distance between point (x1, y1) and point (x2, y2). The distance is calculated by: Distance =...

11 years ago

Solved


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

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

11 years ago

Solved


Logic variables
* Assign isAvailable with true.

11 years ago

Solved


Add 7
Given an input variable x, output a variable y that is 7 greater than x. Example: Input x = 1 Output y is 8 Input ...

11 years ago

Solved


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

11 years ago

Solved


Alkane
Given a number, x, that is equal to the number of carbon atoms in an <http://en.wikipedia.org/wiki/Alkane alkane>, find, y, the ...

11 years ago

Solved


Split array into pieces according to corresponding array
An array x of length n has values 1...m with each value appearing at least once. The values are sorted (n>=m). A second...

11 years ago

Solved


sum of the first 10 odd numbers
y = sum(first_10_odd_numbers)

11 years ago

Solved


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

11 years ago

Solved


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

11 years ago

Solved


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

11 years ago

Solved


Times 32
X is given as your variable. Y is your output multiplied by 32 Example x=1 y=1x32=32

11 years ago

Solved


Find the square root of a value
Given the variable x as your input, find the square root and let the result be represented by y Examples: Input x = 4 O...

11 years 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

11 years ago

Solved


Sum Even Numbers
Given a number x, make the summation of all the even until x. For instance, x = 7, so y = 2+4+6 = 12 * x = [3] * y = 2 * ...

11 years ago

Solved


Autocorrelation of Signal
Given a sine function with these characteristics below, give the autocorrelation of this signal. N=51; n=1:N; x= sin(pi...

11 years ago

Load more