Answer:
First: work out the difference (increase) between the two numbers you are comparing.
Increase = New Number - Original Number.
Then: divide the increase by the original number and multiply the answer by 100.
% increase = Increase ÷ Original Number × 100.
Explanation:
Answer:
Hub is the correct answer for the above question.
Explanation:
- The hub is a network hardware device which can connect more computer with the network.
- It has a multi-point which is used to connect multiple systems with the network or internet to share the information among them.
- When any computer which is connected through this needs to communicate with the other computers on a network then it needs to send the signals to this device first then this device sends the signal to the other device.
- The above question ask about that device which is used to connect the computer and send the signals to communicate which is a HUB which is described above.
Answer:
Answered below
Explanation:
public class BoxSet extends Album{
private boolean isCompleteWork;
private int numDiscs;
public void setIsCompleteWorks( boolean cw){isCompleteWorks = cw;
}
public boolean getCompleteWorks(){
return isCompleteWorks;
}
public void setNumDiscs(int discs){
numDiscs = discs;
}
public int getNumDiscs(){
return numDiscs;
}
public void printInfo(){
super.printInfo();
System.out.print(isCompleteWorks);
System.out.print(numDiscs);
}
}
Answer:
e) Code segment II produces correct output for all values of str, but code segment I produces correct output only for values of str that contain "pea" but not "pear".
Explanation:
<em>if - elseif - else statements work in sequence in which they are written. </em>
- <em> </em>In case <em>if() statement is true, </em>else if() and else statements will not get executed.
- In case <em>else if() statement is true</em>, conditions in if() and else if() will be checked and else statement will not be executed.
- In case <em>if() and else if() both are false</em>, else statement will be executed<em>.</em>
First, let us consider code segment I.
In this, first of all "pea" is checked in if() statement which will look for "pea" only in the String str. So, even if "pearl" or "pear" or "pea" is present in 'str' the result will be true and "pea" will get printed always.
After that there are else if() and else statements which will not get executed because if() statement was already true. As a result else if() and else statements will be skipped.
Now, let us consider code segment II.
In this, "pearl" is checked in if() condition, so it will result in desired output.
Executable code is attached hereby.
Correct option is (e).
<span class="sg-text sg-text--link sg-text--bold sg-text--link-disabled sg-text--blue-dark">
java
</span>
<span class="sg-text sg-text--link sg-text--bold sg-text--link-disabled sg-text--blue-dark">
java
</span>