A preliminary analysis of the requirements of the topic:
1. Determine if two random numbers are the same
Save (cycle) The resulting topics and compare the results (loops).
2. Add more than one variable num to control the number of questions
3, in each switch select the statement, make a choice to judge
3.1 Choose whether there is a multiplication method,
3.2 Whether there are parentheses
Determine whether the subtraction is present, add or subtract the position in the calculation, and then choose whether to append parentheses
3.3 Range of values
Mainly control the size of the modulus remainder of the random number generator (e.g. A=rand ()%n,n can take any value)
3.4 plus minus with no negative numbers
Compare the size of meiosis and minuend
3.5 Division has no number
Modulo remainder operation by divisor (random number) and divisor (random number)
3.6 Support Score (true or false score)
Determine whether the division operation, if not the case, then choose whether to support the score, judge the divisor and the size of the divisor, to analyze whether it is true (false) score
3.7 Whether decimal is supported
Change the type of random number (int, flort) according to the user's choice
3.8 printing per line interval can be adjusted
To change the number of topics per row by modulo redundancy.
March 10 Tuesday Classroom Exercise: An extension of the program for automatically generating arithmetic topics