Answer: streams can send data in only one direction either input or output.
Explanation:
An application must have two network streams in order to send and receive data.
for example if we want to send data from A to B we must have one stream similarly in order to receive data from B to A we must have another network stream.
Answer:
Explanation:
ASIA includes 50 countries, and it is the most populated continent, the 60% of the total population of the Earth live here.
AFRICA comprises 54 countries. It is the hottest continent and home of the world's largest desert, the Sahara, occupying the 25% of the total area of Africa.
NORTH AMERICA includes 23 countries led by the USA as the largest economy in the world.
SOUTH AMERICA comprises 12 countries. Here is located the largest forest, the Amazon rainforest, which covers 30% of the South America total area.
ANTARCTICA is the coldest continent in the world, completely covered with ice. There are no permanent inhabitants, except of scientists maintaining research stations in Antarctica.
EUROPE comprises 51 countries. It is the most developed economically continent with the European Union as the biggest economic and political union in the world.
AUSTRALIA includes 14 countries. It is the least populated continent after Antarctica, only 0.2% of the total Earth population live here.
Answer:
a condition controlled loop
Explanation:
if a user get the password right he will not have to restart
Answer:
PYTHON CODE:
str = input("Enter the first 9 digits of an ISBN-10 as a string : ") # user input
i = 1
checksum = 0 # for total sum
while i < 10:
c = int(str[i - 1]) # getting every digit of the ISBN
c = c * i
checksum += c
i=i+1
checksum=checksum % 11 # getting the last digit of ISBN
ch=checksum
if checksum==10: # if the last digit is 10 then change it to X
ch="X"
print("The Complete 10-Digit ISBN is : ",end="")
print(str,end="") # displaying the 9 digit of ISBN
print(ch) # appending the last digit of ISBN
Explanation:
Answer:
System.out.println("i = " + i + " f = " + f);
Explanation:
The code above has been written using Java's syntax.
To print or display statements to the console, one of the methods to use is the System.out.println() method.
According to the question, the statement to output is i=value-of-i f=value-of-f which is a string of texts.
Note that value-of-i and value-of-f are already stored in variables i and f respectively. Therefore to print them as part of the string text statement, it is important to concatenate them using the "+" operator as follows:
"i = " + i + " f = " + f
If the value of i is 25 and the value of f is 12.34 then the above statement, after successful concatenation reads:
"i = 25 f = 12.34"
which can then be shown on the console using System.out.println() method as follows:
System.out.println("i = " + i + " f = " + f);
Hope this helps!