Answer:
See Explanation Below
Explanation:
The new code segment is
int feb = 28;
if ((year % 4) == 0 && (year % 100) != 0) // assume that year is an integer with a valid year value
{
System.out.println("This is a leap year");
feb = 29;
}
Assume year = 2020, the assigned value of feb is 29;
Reason below;
At line 2 of the new code segment, two conditions are tested both of which must be satisfied.
1. year % 4 == 0
2020 % 4 = 0
0 = 0 (True)
2. year % 100 != 0
2020 % 100 != 0
20 != 0 (True)
Since both conditions are true, the value assigned to feb will be 29 and
"This is a leap year" will be printed without the quotes
The correct explanation of why Gary is wrong is that Ports are where connectors attach to destinations, not where data enter the network.
<h3>What is a port?</h3>
A port is physical part of the computer system where the external devices are connected using cables.
Therefore, it serves as an interface between the motherboard and an external device of the computer.
From Gary statement about ports, he is wrong because, Ports are where connectors attach to destinations, not where data enter the network.
Learn more about ports here:
brainly.com/question/4804932
#SPJ1
The formula is to calculate the total admission fees collected is = F5*B14
1. Click on cell I5
2. Type equal sign =
3. Type F5 or click on F5 cell
3. Type multiplication sign *
4. Type B14 or click on B14 cell