Answer:
numInsects = 16
while numInsects < 200:
print(str(numInsects) + " ", end="")
numInsects *= 2
Explanation:
*The code is in Python.
Set the numInsects as 16
Create a while loop that iterates while numInsects is smaller than 200. Inside the loop, print the value of numInsects followed by a space. Then, multiply the numInsects by 2.
Answer:
Answer is in the provided screenshot! This was a lot of fun to make!
Explanation:
We need to create a new Array which has to be the size of amount * original - as we now that we are going to have that many elements. Then we just iterate through all the values of the new array and set them equal to each of the elements in order.
Ignore the code in my main function, this was to print to the terminal the working code - as you can see from the output at the bottom!
Answer:
def leap_year_check(year):
return if int(year) % 4 == 0 and (int(year) % 100 != 0 or int(year) % 400 == 0)
Explanation:
The function is named leap_year_check and takes in an argument which is the year which we wish to determine if it's a new year or not.
int ensures the argument is read as an integer and not a float.
The % obtains the value of the remainder after a division exercise. A remainder of 0 means number is divisible by the quotient and a remainder other wise means it is not divisible by the quotient.
If the conditions is met, that is, (the first condition is true and either the second or Third condition is true)
the function leap_year_check returns a boolean ; true and false if otherwise.
Email client as port 25 is the default port for an email server.
Answer:
The correct option to the following question is b.) value-added networks.
Explanation:
A Van, or the value-added network, involves the use of the common carrier's that is phone line to allows the business to business network communications.
Network is the “value-added” because they have various services and the enhancements which improve the way of the business applications which communicate with each other.