Answer:
This program is written in python;
Comments are used for explanatory purpose;
Take note of indentations (See picure attachment)
Program starts here
#Initialize Sum to 0
sum = 0
#Iterate from 99 to 1 using range function
#The iterating variable i starts from 99 and ends at 1 with a difference of -1
for i in range(99, 1, -1):
sum+=i
#Display Result
print("Expected Output: ",sum)
#End of Program
Go to your text and scroll until you find your preferred text
Software applications such as FTP or Telnet open a <u>socket</u> using a well-known port and listen for connection requests.
<h3>What is FTP?</h3>
FTP is an abbreviation for file transfer protocol and it can be defined as a type of server that's designed and developed to store and provide files for download, as well as sharing between two or more users on an active computer network.
<h3>What is a socket?</h3>
In Computer technology, a socket can be defined as one of the endpoint in a two-way communication link between two (2) software applications that are running on an active computer network. Also, a socket is always bound to a unique port number, so as to enable the transmission control protocol (TCP) layer in identifying the software application to receive a data.
Read more on FTP here: brainly.com/question/20602197
#SPJ1
Answer:
employees.get(0)
Explanation:
In the programming, the index of ArrayList start from zero.
So, the element start storing in the ArrayList from the zero index.
get() is the function which is used to retrieve or getting the value in the
ArrayList.
The function employees.get(0), it retrieve the element of zero index.
The function employees.get(1), it retrieve the element of first index.
The function employees.first(1), it is wrong calling.
The function employees.get(), it is wrong calling. you have to enter the index value inside the get().
Answer:
3 3
Explanation:
The operator modulus '%' is gives the reminder of the number.
for example:
7%2 it gives the result 1 because 1 is reminder after divided by 2.
Initially the value of funny is 7 and serious is 15.
then, 15 is modulus by 2 which gives 1 and it store in the funny.
After that, if else statement check for condition.
funny != 1 this condition is FALSE because Funny is equal to 1.
it moves to else if part Funny == 2 condition again FALSE it then move to else part and execute the statement Funny contain 3 and serious contain 3.
and then display.
Therefore, the answer 3 3.