Personal Item------Arithmetic 2
- The topic avoids repetition.
- Parameters can be controlled.
- can be customized.
My design ideas:
- is the implementation of the random number.
- The interface defines the range of random numbers.
- The interface definition has a variety of parameter definitions, and you can use case statements to know how many functions are required.
- In order to avoid repetition, I define in each set of questions, repetition is not possible, but different sets of questions can be repeated, so the idea is as follows: In the limited range, the number of random items from small to large assignment, has been assigned to the array of items, then skip, until the full assignment, you can get a randomly ordered array, Take the number that you need earlier. So although the first number in each set of questions will not be the same, but this is a test question, you can guarantee that the topic will not be the same.
- To be customizable, you can use the while loop to define how many times to print.
This is my design idea, hope can succeed.
Programming of two pillars arithmetic 2