Because the previous arithmetic is written in C, this time the knot to do interface, so in order to make the interface convenient, pushed to the previous code to re-do the Java version of the arithmetic, in this Java version of the idea of absorbing the previous version of the C language, still let the user choose addition or subtraction or other. Because of the better modularity, logic is clearer.
Task:
- The program can be a positive integer arithmetic with parentheses, support fractions, divide to retain two decimal places, such as: (1/3+1) * = 2.67, special note: Here is 2.67 instead of 2.66, or maintain fractional form: 8/3
- The expression contains a negative integer (negative integer minimum 100) of the topic, and negative numbers need to be parenthesized, the user input results without parentheses. such as: (-4) = 8
- After the user's answer is completed, the program can display the user's answer time
- Users can choose the number of questions (up to 5 topics), the end of the answer can show the number of questions answered by the user and the number of correct questions
- Users in the first answer, users need to enter the user name, the next time the user starts, the program needs to remember the user's previous input user name
- The program can issue a single integer factorial: for example: 4!=24
- The program can set the answer time, the time is set to an integer, in seconds, the maximum can not exceed 120 seconds, if the answer time is not answered, the prompt: Time has arrived, can not answer questions.
- The program can set the skin function, can change the color of the interface.
*9. On the basis of the arrangement of tasks if time allows the initial idea is to increase the ranking function that different users can display ranking situation.
Estimated time: one weeks.
Number of people: two 29 Luo triumphal and 32 Ma Zhilei
20130407 "pair" arithmetic estimated time and analysis