Im having problems with my if else/ switch statements.
Im working on a code that is a math tutoring program, and it has to ask a multiplication problem if the answer is wrong, it needs to ask the question ten times, and if its correct another ten questions.
1. Please use code tags
2. Just pick one of your mains not two
3. I think I understand your problem and I'd suggest you put pen to paper and write down the pseudocode which, if I understand you correctly, goes something like this:
a) there are 10 types of question overall
b) try a particular type of question
c) if the answer to that question is correct go on to the next type
d) otherwise try out the type of question selected in b) up to 10 times ( who knows what happens if you fail 10 times?)
e) ... keep going until 10 types have been successfully completed
You will need a bit more detail and more simple steps whatever the target idea is.
Code tags are what exactly?
What i need to do is make a multiplication program if a person answers it correctly it goes up to ten questions if the user keeps answering the question correctly.
If the person answers it wrong it will show that same question until the person gets it right up to ten times repeating the same question. Has to loop exactly 10 times.
Code tags are wrap around tags that put you code into the line-numbered listings you see everywhere here Use the <> tool in the format box on the right hand side.
What i need to do is make a multiplication program if a person answers it correctly it goes up to ten questions if the user keeps answering the question correctly.
That's great so what's the problem with writing a bit of pseudocode by breaking that down to some simple steps and then after that writing the code or amending what u have so far?. You aren't very far off getting it right.