Write an expression
Assigns finalResult with firstSample plus secondSample, squared, then divided by 3. Ex: If firstSample is 18 and secondSample is...
10年以上 前
解決済み
Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.
10年以上 前
解決済み
Circle area using pi
Write a statement that assigns circleArea with the circle's area given circleRadius. Use the built-in mathematical constant pi. ...
Test if two numbers have the same digits
Given two integers _x1_ and _x2_, return |true| if the numbers written with no leading zeros contain the same digits. That is, t...
Count decimal digits of a number
* Given an integer number you have to return the number of its digits.
* For example 248 has 3 digits and 1589 has 4 digits
...
10年以上 前
解決済み
Find the 9's Complement
Find the 9's complement of the given number.
An example of how this works is <http://electrical4u.com/9s-complement-and-10s-c...
Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.
10年以上 前
解決済み
Area of a circle
Find the value for area of the circle if diameter is given
10年以上 前
解決済み
Times 3 problem
When you enter the number, it should return the number multiplied by 3
10年以上 前
解決済み
Double colon operator: Counting down
* Construct a row array countValues from startValue to endValue, elements decremented by -2
Ex: If startValue is 10 and end...
Element-wise division
* Assign row array weightKilo with the corresponding weight in kilograms.
Use the following conversion:
kg = lb / 2.2
10年以上 前
解決済み
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...