解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


Declaring a character
* Assign middleInitial with the character T.

11年以上 前

解決済み


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

11年以上 前

解決済み


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年以上 前

解決済み


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

11年以上 前

解決済み


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年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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年以上 前

解決済み


Logic variables
* Assign isAvailable with true.

11年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

さらに読み込む