Design ideas:
First, because the topic is randomly generated, so there will be repeated phenomenon, in order to avoid duplication of the topic, to
Adding a condition to a topic is that each generation of a topic needs to be stored in each subsequent
A topic should be compared with the previous topic, if it is not the same as the previous topic, meet the requirements,
If you repeat the previous topic, you will be re-created.
Second, the topic requirements can be customized, you need to enter a hint in the program, when you enter the program will see the prompt "need
Number of topics to generate "when the topic is finished, please select the" How to print "Quantity customization
Requires that you set a variable in your program to be customized for the number of questions.
This one requirement.
Third, the first topic to have the hint "whether need multiplication method" then the user chooses, wants to satisfy the user's
requirements, then the program needs to have the option to control the transfer variable when satisfying the condition A is the randomly generated topic
There is the appearance of the multiplication method if the condition B is satisfied does not produce a problem with the multiplication method.
Four, the topic requires whether there are brackets, the topic also must first output the message for the user to choose, and then according to the
The user's choice to meet the needs of users, so that the same need to control the transfer of variables to the operation has no
The parentheses are controlled.
Arithmetic Programming Ideas