The answer for the 1st blank is text.
Answer:
Following are the declaration and the initialization of variable
int monthOfYear=11; // variable declaration of integer
long companyRevenue=5666777; //
variable declaration of long
int firstClassTicketPrice=6000; //
variable declaration of int
long totalPopulation=1222333; //
variable declaration of long
Explanation:
Following are the description of Statement
- Declare a variable " monthOfYear " as integer type and initialized 11 to them .
- Declare a variable " companyRevenue " as long type and initialized 5666777 to them .
- Declare a variable " firstClassTicketPrice" as integer type and initialized 6000 to them
- Declare a variable " totalPopulation " as Long type and initialized 1222333 to them .
Answer:
var findComplement = function(num) {
var start = false;
for (var i = 31; i >= 0; --i) {
if (num & (1 << i)) {//find the leftmost hightest bit 1 and start from there
start = true;
}
if (start) {
num ^= (1 << i);
}
}
return num;
};
var findComplement = function(num) {
var bits = num.toString(2);
var complement = '';
for(var i=0;i<bits.length;i++)
{
complement += (bits[i]==1?0:1);
}
return parseInt(complement,2);
};
Explanation:
The javascript code above would accept a number in the variable complemnt and using the parseint keyword, it converts it to a binary value of that number.
Each bit is converted from the least to the most significant bit, then it is returned to the find compliment function and converted back to an integer.
I believe this is called bioinformatics, using computers to quickly compute or search various databases for info.
If you combine maximum values of Red Green and Blue you will get white.