Answer:
im pretty sure the answer is B Hope this helps :)
Answer:
The program in Python is as follows:
total = 0
count = 0
for i in range(8):
num = float(input())
if num < 10.5:
total+=num
count+=1
print("Average: ",total/count)
Explanation:
This initializes the total to 0
total = 0
This initializes the count to 0
count = 0
This loop is executed 8 times
for i in range(8):
This request for float number
num = float(input())
If input is less than 10.5
if num < 10.5:
The sum is taken
total+=num
And count is incremented by 1
count+=1
The loop ends here
This calculates and prints the average
print("Average: ",total/count)
Answer:
x = (-b + sqr(b * b - 4 * a * c)) / (2 * a)
x2 = (-b - sqr(b * b - 4 * a * c)) / (2 * a)
Usually when squaring a number I just use multiply it by itself like above. If you actually want to use the exponent 2, then it would instead be:
x = (-b + sqr(b ^ 2 - 4 * a * c)) / (2 * a)
x2 = (-b - sqr(b ^ 2 - 4 * a * c)) / (2 * a)