Results team-mate Yu God programmed using the JAVA programming individual project, the project consists of five parts:
1.main: main entrance
2.menu: carried out the command line interaction with the user process
3.Teacher: stores can visit a teacher of user information
4.Question_generation: generating equation
5.Check_Question: Check the resulting expression is legitimate
Program Structure Analysis
Mathematical_Questions_Generation.java:
Menu.java:
Menu execution class, comprising four functions:
initial_menu():
The initial interface, realized enter and exit the program prompts
log_in():
Login screen, log on to achieve the function (account login password are correct; the correct password wrong account by mistake put the show under heavy new password; re-enter the account password prompt under the account does not exist)
function_menu():
Operation function interface, achieve generate a math problem, change the difficulty of the subject, switch the current account function
change_level():
Change the difficulty of the subject interface, realize the difficulty of replacing the current account function
Question_Generation:
Generating a mathematical formula based, contains five functions:
txt_generation():
Generate real-time named txt file
primary_question_generation():
The difficulty of the task generating primary school mathematics
junior_question_generation():
Junior high school math topics generate difficulty
senior_question_generation():
The difficulty of generating high school math topics
generate_parentheses():
To generate a variety of difficult math problem parentheses
Reading this part of the code, I found that one of his teammates was a generation expression and symbol, and then after generation equation, random add in brackets in the equation
Check_Question:
Check the generated class formula, the topic has been generated to detect, delete the brackets expression of problems
This part, his teammates use double pointer to traverse the formula, check the legality of parentheses, if legitimate, then added the title equation, invalid, are not subject to this formula is added
Code advantage
1. The program meets the needs of the project
2. Code naming convention, clear structure, beautiful, people Iranian society
3. The program structure clear
4. Interaction with the user-friendly special section
Code shortcomings
The only drawback is the lack of code required notices