188k views
2 votes
Help is always very appreciated

Help is always very appreciated-example-1
User Pearman
by
8.3k points

1 Answer

3 votes

16.

num = float(input("Enter a number: "))

if num >= 0:

print(num**0.5)

17.

num1 = float(input("Enter the first number: "))

num2 = float(input("Enter the second number: "))

operation = input("Which operation would you like to perform (a/s/m/d): ")

if operation == "a":

print("{} + {} = {}".format(num1, num2, num1+num2))

elif operation == "s":

print("{} - {} = {}".format(num1, num2, num1-num2))

elif operation == "m":

print("{} * {} = {}".format(num1, num2, num1*num2))

elif operation == "d":

print("{} / {} = {}".format(num1, num2, num1/num2))

18.

The answer is algorithm

19.

The correct answer is C

20.

We analyze algorithms to see which algorithm is the best fit for the job.

I hope this helps!

User Max Oriola
by
8.6k points