Hello my fellow programmers, I am in need of assistance. I have mostly completed my code in regards to the program I have to make, called "Math Tutor". I pretty much done most of it, but my main problem is that I need the amount of "correct" and "incorrect" is my main issue. I tried everything and I am still having trouble on it. Any help is appreciated. For example:
I try to punch in numbers in the calculator, and let's see I did 7 attempts. After I put "5" which is the message "Quit" it will tell me:
7 Attempts
4 Correct
3 Incorrect
Something like this, I did the Attempt part correct, but the Correct and Incorrect is my main issue. Thank you so much for helping.
Similar to how you are counting 'tries', you need to declare and initialize to 0 'correct' and 'incorrect' count variables. Increment them within the appropriate if and else clauses.