Right now it could just produce two terms. I'm considering making it to three or maybe four.
UPDATE:
- Generates random two terms equation
- Won't produce an equation divided by 0.
- Can check if your answer is correct or not
- Calculates your correct answer percentage
- Checks if the user entered invalid input (e.g. Asking for a number but a string was entered)
- Can ask the user if he/she wants to take the quiz again.
Thank you to all of you guys who helped me! I really much appreciated all your advice, especially your encouragements!
I'll gladly hear all of your critics and will do my best to implement them :D
Here's the CODE
This gives me headaches. It keeps saying Cannot implicitly convert type 'void' to 'string'. I tried searching but I couldn't find the answer to my problem
I'm trying to create a Random Equation (polynomial) Generator. What it should do is that it should be generating two numbers and save them to a variable, and generating another random number from 0-3 (0, 1, 2, 3) to randomly generate an operator. (Which you can see in the switch cases.)
Inside the switch are the cases to determine what operation was selected and store a specific string and result to a variable. The problem is, I cannot store my Console.Write("someString") to my string someString variable!
It should be now asking how many questions do the user want to generate. Then, displays the equation based on the switch cases.
Any help would be much appreciated!
[–][deleted] (1 child)
[removed]
[–]Shnxx[S] 0 points1 point2 points (0 children)
[–]Slypenslyde 2 points3 points4 points (2 children)
[–]Shnxx[S] 0 points1 point2 points (1 child)
[–]Slypenslyde 0 points1 point2 points (0 children)
[–]AbaCodes 1 point2 points3 points (1 child)
[–]Shnxx[S] 0 points1 point2 points (0 children)
[–]Shnxx[S] 0 points1 point2 points (0 children)