Answer:
see explaination
Explanation:
import random
def number_guess(num):
n = random.randint(1, 100)
if num < n:
print(num, "is too low. Random number was " + str(n) + ".")
elif num > n:
print(num, "is too high. Random number was " + str(n) + ".")
else:
print(num, "is correct!")
if __name__ == '__main__':
# Use the seed 900 to get the same pseudo random numbers every time
random.seed(900)
# Convert the string tokens into integers
user_input = input()
tokens = user_input.split()
for token in tokens:
num = int(token)
number_guess(num)
Answer:
Explanation:
The following code was written in Java. The code contains the Employee class which contains the two variables (name, salary), the constructor, getter and setter methods for both variables, and an overwritten toString method. It also contains a tester class with the main method inside and creates a Employee object and initializes it. Then it calls the toString method. The output can be seen in the attached image below. Due to technical difficulties I have added the code as a txt file below.
The answer is NO.
Thats what makes UDP connectionless. Aclient that is going to
send a UDP message to the server just sends it.The server does not know it is
coming untill it arrives .When a server recieves a UDP message it gets the
source address/port and the data.
The tropical rain forest is a forest of tall trees in a region of year-round warmth. An average of 50 to 260 inches of rain falls yearly. Rain forests belong to the tropical wet climate group.
Explanation:
- The temperature in a rain forest rarely gets higher than 93 °F or drops below 68 °F. The average humidity is between 77 and 88%, rainfall is often more than 100 inches a year. In monsoonal areas, there is a real dry season.
- Rainforests now cover less than 6% of Earth's land surface. Tropical rainforests produce 40% of Earth's oxygen.
- About 1/4 of all the medicines we use come from rainforest plants. Curare comes from a tropical vine, is used as an anesthetic and to relax muscles during surgery. Quinineis used to treat malaria.
- There are four very distinct layers of trees in a tropical rain forest. They are the emergent, upper canopy, understory, and forest floor.
- The soil of the tropical rainforests is shallow, poor in nutrients and without soluble minerals. Years of rainfall have washed away the nutrients in the soil obtained from weathered rocks.
- The tropical rain forest can be found in three major geographical areas around the world.
-
Central America in the the Amazon river basin. Africa - Zaire basin, with a small area in West Africa. Indo-Malaysia - west coast of India, Assam, Southeast Asia, New Guinea and Queensland, Australia.