Bluetooth connection data on nonvolatile storage media such as a USB
y = choose whatever number you want.
if 5 < y < 11:
print("The value stored in y is between 6 and 10 inclusive")
else:
print("The value stored in y is not between 6 and 10 inclusive.")
I hope this helps!
Answer:
29
Explanation:
for n=28:
--------------
Algorithm 1 performs f(n) = n2 + n/2 = 28*28 + 28/2 = 798
Algorithm 2 performs f(n) = 12*28 + 500 = 836
for n=29
--------------
Algorithm 1 performs f(n) = n2 + n/2 = 29*29 + 29/2 = 855.5
Algorithm 2 performs f(n) = 12*29 + 500 = 848
so, for n=29, algorithm 2 will be faster than algorithm 1