Ending program – small primary math solution with UI

》》》Function requirements

< ul>

  • 1. User registration function. The user provides a mobile phone number and clicks to register to receive a registration code. The user can use the registration code to complete the registration;
  • 2. After the user completes the registration, the interface prompts to set the password. After the user enters the password twice, the password is set successfully. The password is 6-10 digits and must contain uppercase and lowercase letters and numbers. The user can modify the password in the login state, enter the correct original password, and then enter the same new password twice to modify the password successfully;
  • 3. After the password is set successfully, jump to the selection interface. The interface displays three options for elementary school, junior high school and high school. After the user clicks on one of them, the user is prompted to enter the number of questions to be generated;
  • 4. After the user enters the number of questions, a test paper is generated (the same paper cannot have the same questions. All multiple-choice questions), the interface displays the stem of the first question and four options, the user chooses one of the four options and submits it, the interface displays the second question, …, until the last question;< /li>
  • 5. After the last question is submitted, the interface displays the score, and the score is calculated based on the percentage of correct answers; li>
  • 6. The user can choose to quit or continue to do the question in the score interface;
  • < span style="font-family: 宋体; font-size: 14px;">7. Please refer to the personal project for the mathematics questions for elementary, middle school and high school.
  • 》》implementation ideas

    share picture

    》》》Personal project reuse

    This pair programming reflects the reusability of my teammates’ personal projects. I use java for personal projects, so it is more convenient to add UI and build the project when pairing, so I am mainly responsible for the SMS verification code function and UI interface for pair programming. As well as the implementation of each part of the interface, the teammate used C++ to write in her personal project, so she decided to reuse her part of the question and change it to java to realize the calculation function. In this process, we found that the switching between the two languages ​​was The problem-producing algorithm is relatively weak in portability, but after repeated deliberations and revisions, it finally reached the “successful shore”.

    “” “My gains

    • Through this pairing project, I have learned more than once to learn how to encapsulate the code, as well as the variables and functions Standardized naming is extremely necessary in actual development, and these will directly affect the efficiency of reading code.
    • When using eclipse to write the UI of a java project, you can directly select “Help”> “Eclipse Marketplace”> search for “WindowBuilder” plug-in installation in the eclipse toolbar, and use the .java file with the interface as WindowBuilder In this way, you can quickly adjust the position and size of the basic elements of the interface in the design window. Although the corresponding code is generated according to the default specification after adding new elements, it is also inconvenient for the actual design, but it is very helpful to complete the development task in a short time. From not knowing this plug-in to being more proficient and using it, it brings great convenience to the later interface adjustment of our pair programming and saves time.
    • Although the database is not used to store user registration information, the .json file was touched during the writing process and used its feature of storing data in tuple format, which is more convenient for the selection and use of data when writing. To its convenience in processing data.

    share picture

    • Because there is no previous experience in implementing the SMS verification code function, it is necessary to know more about it and try more. If you encounter a problem, you will solve it. You will also gain unexpected experience and give yourself more thoughts.

    WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
    SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5302 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

    Leave a Comment

    Your email address will not be published.