Answer:
The output is 28
Explanation:
Required
Determine the output of the code segment
The first line initializes "answer" to 0
The next two lines iterate through lists [2,4] and [3,5
Each of these lists have two elements; So, the number of iterations is 2 * 2 i.e. 4.
In the first iteration
numA = 2, numB = 3, answer = 0
So:

In the second iteration
numA = 2, numB = 5, answer = 5
So:

In the third iteration
numA = 4, numB = 3, answer = 12
So:

In the fourth iteration
numA = 4, numB = 5, answer = 19
So:

Lastly, the value of "answer" is printed
<em>Hence, the output is 28</em>
Answer:
Hi, I'm going to put the code answer here and you put in the corresponding line to not copy all the code in the answer.
replace the following line or adjust to the following code
/*
* CODE HERE
while(personSelect <= 0 || personSelect > 5) {
System.out.println("Wrong number, try to input the number in range 1 to 5" );
personSelect = scan.nextInt();
}
if(personSelect == 1){
person1.setGpa(newGPA);
printInfo()
}
else if(personSelect == 2){
person2.setGpa(newGPA);
printInfo()
}
else if(personSelect == 3){
person3.setGpa(newGPA);
printInfo()
}
else if(personSelect == 4){
person4.setGpa(newGPA);
printInfo()
}
else {
person5.setGpa(newGPA);
printInfo()
}
*/
Explanation:
According to the description of code, we have to add some lines to resolve the questions.
a):
In base on the input, we have to modify the <em>attribute GPA</em> with the method <em>setGpa</em> depending on the person chosing. We call the person chosen before and also call the method setGpa( ) and pass as <em>parameter</em> the GPA value obtained in tha last input
b)
In this case we have to <em>create a loop</em> for iterate the times that is necesary to get a value of person that is permit in <em>range 1 to 5</em>, and hence that we create and individual if condition to assign the GPA to the person chosen.
I hope it's help you.
We are in the modern era and the information era
Answer:
The web browser sends an HTTP request to the IP address, the IP address then sends the content that are displayed by the browser
Explanation:
The process of converting the typed in URL to a displayed page is as follows;
1) The typed in URL is sent to a DNS recursor by the browser
2) The recursor gets the DNS record for the domain from the cache if the record is cached or when the DNS record for the domain is not cached, the recursor makes a requests to the DNS root from which the name of the TLD nameserver is received
3) The TLD nameserver is contacted by the resolver to obtain the authoritative nameserver's IP address
4) With the information, the resolver contacts the authoritative nameserver and obtains the domain's IP address for the domain the resolver contacts
5) The obtained IP address for the URL's domain is then sent to the browser by the resolver
6) An HTTP request is sent by the browser to the IP address and the data received by the browser from that IP address is rendered and seen as the page content.
Answer:
because producer can make their own food