Answer:
Please, see the attachment.
Explanation:
First, we have to create two input boxes that allows the user to write the current year in one of them and his/her birth year in the another one. Also, we have to create a label that will show the result of the desired variable. We can write a message "Your age is:" and it will be attached to the result.
For the algorithm, let's call the variables as follows:
CY = Current Year
BY = Birth Year
X = Age of user
When the user inserts the current year and his/her birth year, the program will do the following operation:
X = CY - BY; this operation will give us the age of the user
After this the user will see something like "Your age is:" X.
Answer:
def output_ints_less_than_or_equal_to_threshold(user_values, upper_threshold):
for value in user_values:
if value < upper_threshold:
print(value)
def get_user_values():
n = int(input())
lst = []
for i in range(n):
lst.append(int(input()))
return lst
if __name__ == '__main__':
userValues = get_user_values()
upperThreshold = int(input())
output_ints_less_than_or_equal_to_threshold(userValues, upperThreshold)
Answer:
A flood happens when water overflows or soaks land that is normally dry. flooding, happens when a large storm or tsunami causes the sea to They soon fell ill and died from cholera, which is spread by Rice, wheat, and corn crops were destroyed. Excess water overflows and runs on top of the land.
Explanation:
hope this helps