2^(32-20) - one for the network number - one for the broadcast address = 4,094
Answer:
Program Comments
Explanation:
program comments are explanations. They are not executable code and the can actually appear anywhere in your code. Their main function is code documentation for the future. In Java programming language for example three types of comments is used. These are
// Single line comments (This starts with two forward slashes
/* Multiple Line
comment
Style*/
The third is the javadoc that gives a description of a function. I looks like the multiple line but is has two asterics
/** This is javadoc
comment
style*/
Answer:
While loop
Explanation:
It should be noted that the number of times which the computer will ask the user to take a guess is not known.
When we have a condition like this, the while loop (or in some programs; the do-while loop) is to be used.
To further back my point, see the following program in python.
<em>secret_code = 1234</em>
<em>user_guess = int(input("Take a guess: "))</em>
<em>while user_guess != secret_code:</em>
<em> user_guess = int(input("guess again: "))</em>
<em>print("You guessed right")</em>
<em />
The above program will keep asking the user to take a guess until the user enters 1234.
<em>This may or may not be possible with a for loop.</em>
Answer:
I HOPE THE ABOVE INFORMATION WILL HELP YOU A LOT.