Answer:
import java.io.*;
import java.util.Scanner;
class divide {
public static void main (String[] args) {
Scanner num=new Scanner(System.in);//scanner object.
int userNum=num.nextInt();
while(userNum>1)//while loop.
{
userNum/=2;//dividing the userNum.
System.out.print(userNum+" ");//printing the userNum.
}
}
}
Input:-
40
Output:-
20 10 5 2 1
Input:-
2
Output:-
1
Input:-
0
Output:-
No Output
Input:-
-1
Output:-
No Output.
Explanation:
In the program While loop is used.In the while loop it divides the userNum by 2 in each iteration and prints the value of userNum.The inputs and corresponding outputs are written in the answer.
Answer:
Column matching given in explanation
1. Intranet : <em>a network of computer within an organization</em>
2. Placeholder: <em>an empty area that reserves space for new content</em>
3. Presentation: <em>information delivered to an audience</em>
4: Presentation Technology: <em>a software application that helps organize and convey information</em>
5. Keynote: <em>the main speech delivered to all in attendance</em>
Explanation:
Intranet:
A small network that exist in the small organization or company to connect all the computers in organization.
Placeholder:
In computer programming, few variables has been defined in the start of program. These variables have no value initially but can be utilized at the time of need. These variable holds some space in memory that is called Placeholder.
Presentation:
A piece of information relevant to some particular topic, which will be delivered to a particular audience is called presentation.
Presentation Technology:
The tools that are used to assist presentation such as projector, slides, boards etc. are called presentation technology.
Keynote:
The main idea of speech that presenter want to deliver to the audience is called Keynote.
If 29 bits of the 32 available addressing bits are used for the subnet, then only 3 bits giving 2^3=8 combinations remain for the host addresses.
In reality, the all zeros and all ones addresses are reserved. So, 8 addresses can exist, but 6 of those are available.
The way the question is formulated it seems the answer 8 is what they're after.