Answer:
sqrt(area)
Explanation:
- Here sqrt is a short form of square root.
- area is a variable name having he area of square.
- When the function is called, it will give the square root of the value stored in variable area.
As we have to find the length of the diagonal, we must knew that as all sides of the square are same in length so are the diagonals. This means that each of the four sides of the square and it diagonals are equal in length.
So a square has: length=breadth=diagonal
As Area= length*breadth
√area = length (as length = diagonal length)
So √area = diagonal length
Answer:
Not sure what language, but in python a super basic version would be:
val1 = 98
val2 = 87
val3 = 84
val4 = 100
val5 = 94
sum = val1 + val2 + val3 + val4 + val5
avg = sum / 5
print(avg)
Explanation:
Answer:
Each pixel in an image is made up of binary numbers. If we say that 1 is black (or on) and 0 is white (or off), then a simple black and white picture can be created using binary. To create the picture, a grid can be set out and the squares coloured (1 – black and 0 – white).
Answer:
/*
I don't know what language you're using, so I'll write it in javascript which is usually legible enough.
*/
console.log(buildSequence(30));
function buildSequence(maxVal){
maxVal = Math.abs(maxVal);
var n, list = [];
for(n = 1; n < maxVal; n++){
/*
to check for odd numbers, we only need to know if the last bit
is a 1 or 0:
*/
if(n & 1){ // <-- note the binary &, as opposed to the logical &&
list[list.length] = n;
}else{
list[list.length] = -n;
}
}
return list.implode(',');
}
<u>B. Microphone</u> helps Carol to use the speech recognition software.
<u>Explanation</u>:
A microphone is a hardware device which converts the sound waves in the air into electronic signals. The electrical signals are transferred to a recording medium. Four main types of microphones are as follows:
i) Cardioid
ii) Super cardioid
iii) Omni
iv) Figure 8
Handheld microphone can be used better with the home theater or a karaoke machine. The speech recognition software can be used with the help of microphone. Cabling problem can be avoided with the use of microphone, thus cable trip hazard can also be avoided.