<u>Answer:</u>
<em>int fNumber,scndNumber = -1, </em>
<em>dup = 0;
</em>
<em>do {
</em>
<em>cin >> fNumber;
</em>
<em>if ( scndNumber == -1) {
</em>
<em>scndNumber = fNumber;
</em>
<em>}
</em>
<em>else {
</em>
<em>if ( scndNumber == fNumber )
</em>
<em>duplicates++;
</em>
<em>else
</em>
<em>scndNumber = fNumber;
</em>
<em>}
</em>
<em>} while(fNumber > 0 ); </em>
<em>cout << dup;
</em>
<u>Explanation:</u>
Here three variables are declared to hold the first number which is used obtain all the inputs given by the user, second number to hold the value of <em>last encountered number and “dup” variable to count the number of duplicate values.</em>
<em>“Do-while”</em> loop help us to get the input check whether it is same as previous input if yes then it <em>adds to the duplicate</em> value otherwise the new previous value if stored.
Answer:
The answer is "True"
Explanation:
In computer science, the IEEE project uses this security project, it is designed for wireless network, that provides the same level security and the data encryption for cable network also.
- It provides protects in wireless transmissions from both the poking and collecting information of packets.
- It also lets hackers crack their computer, that's why the given statement is true.
Answer:
An advertisement for sportswear
Explanation:
An advertisement for sportswear would most likely be written in an informal style.
B. Add actions , such as fly ins , between slide
Answer:
ValueError
Explanation:
Required
Determine the error the program returned
The above will return a ValueError error and the reason is as follows.
The first line of the program initializes variable as 'live'.
The next line tries to convert answer to integer and this is where it returns the error'.
On the second line, variable amount expects that the answer variable to contain number e.g. '567' but because it doesn't contain a complete number (i.e. unexpected values), the program returns a ValueError.