Answer:
a) only one digit changes as the number increases.
Explanation:
Let us first understand what does it mean when we say only one digit changes as the number increases using the Reflected Binary code (also called Gray code)
consider the 4 bit representation of Binary coded decimal and RB codes
Decimal | Binary code | Reflected binary (RB) code
0 0000 0000
1 0001 0001
2 0010 0011
3 0011 0010
4 0100 0110
5 0101 0111
As you can see in the case of binary codes, there are more than one digit changes between two consecutive numbers.
But notice that in the case of Gray codes, there is always one digit change between two consecutive numbers.
The problem with the binary codes is that the more digits change there states the greater is the chance of ending up with random transitional values rather than real values which can be incorrect. The RB code solves this problem by only changing one digit at a time.
The RB code is widely used in linear and rotary encoders, error correction and digital logic design.
Answer:
The correct answer for the given question is "public"
Explanation:
The access modifier of constructor is public,private ,protected.
The access modifier of constructor should be public because to access the constructor outside the class .
Constructor can be called anywhere in program by using public access modifier .
The default access modifier in a class is public.
In the private access modifier constructor cannot be called anywhere in program.
We use public keyword to declared public constructor .
We use private keywors to declared private constructor.
Following are example to declared public and private constructor
class test
{
public test() // to declared public constructor
{
// statement
}
private test() // to declared private constructor
{
// statement
}
}
Then here are the excel features that you need to get a hold of:
Learn to use shortcuts. Once you are able to live without the mouse, you get the speed that counts. There are two types of shortcuts - one where you press a set of keys sequentially - like Alt>H>O>I to adjust column width. And the second where you simultaneously press a combination of keys - like Ctrl+Shift+L for applying filters or Ctrl+1 for the format numbers dialog box. It takes repetition to get the speed but once you are there, you get an edge.
Learn excel functions and apply them to build formulas. Start with easy ones like SUM, COUNT, SUMIF, COUNTIF, IF etc, then move to VLOOKUP, SUMIFS, COUNTIFS, HLOOKUP, INDEX, MATCH, then move to building nested complex formulas like IF inside an IF, VLOOKUP with HLOOKUP, INDEX+MATCH and so on.
Learn about data analysis and data aggregation. This includes tools like Pivot table, solver, goal seek, data tables, descriptive statistics, regression.
Learn about conditional formatting. Style and colour your spreadsheets.
Answer:
The reason for the error is that the pay is declared and initialized as double, which should be a larger float data type and the main function should be in curly braces. The class should best be declared and initialized before the main function.
Explanation:
class Fvp{
Fvp( double earning ){
double pay = earning;
float bimth = pay/24;
float biweek = pay/26;
}
}
int main( ) {
Fvp john(32500.00);
cout << '' Annual earnings: $'' << john.pay << endl;
cout << '' Bimonthly earnings: $'' << john.bimth << endl;
cout << '' Biweekly earnings: $'' << john.biweek << endl;
}