Answer:
optical sensors
Explanation:
optical sensors measure the amount of gases like carbon dioxide and carbon monoxide in the air
Answer:
b. Binary tree
Explanation:
The time complexity of a binary tree is O(log n). As it scales up in size (n), the time taken is only log n. This is because it makes use of divide and conquer to split up the data which makes searching and inserting very simple. However, this only holds if the data is already sorted.
Answer:
def future_worth(p,i,n):
print("n \t F")
for num in range(1, n+1):
F = round(p * ((1 + i)** num), 2)
print(f"{num}\t{F}")
future_worth(100000, .05, 10)
Explanation:
The "future_worth" function of the python program accepts three arguments namely the P (amount invested), i (the interest rate), and n (the number of years). The program runs a loop to print the rate of increase of the amount invested in n number of years.