Answer:
public static int greaterThanInt(int n){
return n+10;
}
Explanation:
This is a very simple method in Java. it will accept an argument which is an integer n and return n+10 since the question requires that an arbitrary integer greater than n be returned adding any int value to n will make it greater than n.
A complete java program calling the method is given below:
<em>import java.util.Scanner;</em>
<em>public class ANot {</em>
<em> public static void main(String[] args) {</em>
<em> Scanner in = new Scanner(System.in);</em>
<em> System.out.println("Please enter an integer");</em>
<em> int n = in.nextInt();</em>
<em> int greaterInt = greaterThanInt(n);</em>
<em> System.out.println("You entered "+n+", "+greaterInt+" is larger than it");</em>
<em> }</em>
<em> public static int greaterThanInt(int n){</em>
<em> return n+10;</em>
<em> }</em>
<em>}</em>
Answer:
Encapsulation
Explanation:
There are seven layers in the OSI network model. These layers are, application, presentation, session, transport, network, data-link and physical layer.
Each layer of the OSI model has a PDU or protocol data unit. These PDUs are form by encapsulation.
The application, presentation and session data. When it moves to the transport layer, it is encapsulated within the transport header. This new pdu is called segment.
This process continues in network and data-link to give packet and frame PDUs respectively.
Answer:
2029
Explanation:
Kurzweil claims that a machine will pass the Turing test by 2029.
The answer is prism, The atmosphere can produce the same effects<span> as a </span>prism<span> when the </span>Sun is low in the sky<span>. </span>
1. The reason for a photograph being a favorite is the creativity to capture nature in one single frame.
2. Photographs present the aesthetics and ability to view the world from a new perspective. Photographs' main benefit is they associate with the good memories the last for a lifetime