A résolu


Air Density from Temperature and Pressure
The density of air can be estimated from the product of molar mass and molar density: Write a function that finds the densi...

environ un an il y a

A résolu


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

environ un an il y a

A résolu


kmph to mph converter
Convert the speed in miles/hour to km/hour.

environ un an il y a

A résolu


Basic commands - rounding
make a function which will round to integer, which is nearer to zero. Example x=[-2.5 2]; y=[-2 2];

environ un an il y a

A résolu


Calculating Student Grades
The matrix grades contains raw grades for 7 students who took your course. Each row represents a different student. The first 7 ...

environ un an il y a

A résolu


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

environ un an il y a

A résolu


Convert radians to degrees
Given input in radians, output to degrees

environ un an il y a

A résolu


Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

environ un an il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

environ un an il y a

A résolu


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

environ un an il y a

A résolu


How to multiply?
Imagine you are in 3012 Anno Domini, when everyone must learn how to multiply, and competing for the highly prestigious post of...

environ un an il y a

A résolu


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

environ un an il y a

A résolu


Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

environ un an il y a

A résolu


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

environ un an il y a

A résolu


How to subtract?
*&plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn* * Imagine you need to subtract one...

environ un an il y a

A résolu


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

environ un an il y a

A résolu


Determine the square root
Determine the square root of the value the user has entered, n.

environ un an il y a

A résolu


Convert from Fahrenheit to Celsius
Given an input vector F containing temperature values in Fahrenheit, return an output vector C that contains the values in Celsi...

environ un an il y a

A résolu


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

environ un an il y a

A résolu


Energy Conversion 2

environ un an il y a

A résolu


Energy Conversion 1

environ un an il y a

A résolu


Velocity Conversion
Given a velocity in mph, convert it to km/h. Round the answer to the fourth decimal place.

environ un an il y a

A résolu


Temperature Conversion 3
Given a temperature in Celcius, convert it to Fahrenheit.

environ un an il y a

A résolu


Temperature Conversion 2

environ un an il y a

A résolu


Temperature Conversion 1

environ un an il y a

A résolu


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

environ un an il y a

A résolu


Given a matrix, swap the 2nd & 3rd columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

environ un an il y a

A résolu


Is it column vector?
Is it column vector? Check vector for column vector without using iscolumn function.

environ un an il y a

A résolu


Count number of words in string
Count number of words in string Examples 'hi', answer is 1 'hi hi', answer is 2 'I enjoy cody', answer is 3

environ un an il y a

A résolu


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

environ un an il y a

Charger plus