Answer:
Written in Python
import random
N = int(input("Enter number of questions I need to ask: "))
if N >2 and N < 11:
signs = ['+', '-', '*', '/']
correct = 0
for i in range(1,N+1):
num1 = random.randint(1,101)
num2 = random.randint(1,101)
sign = random.choice(signs)
print(str(i)+":) "+str(num1)+" "+sign+" "+str(num2)+" = ")
res = int(input(""))
if sign == '+':
result = num1 + num2
elif sign == '-':
result = num1 - num2
elif sign == '*':
result = num1 * num2
elif sign == '/':
result = num1 / num2
if result == res:
correct = correct + 1
print("Your success rate is "+str(round(correct * 100/N))+"%")
Explanation:
I've added the source program as an attachment where I used comments to explain difficult lines