1. Design ideas:
This task uses PHP embedded JavaScript to implement the main functions.
First, create a index.php file, create a form in an HTML statement, and include, among other things, the number of questions, the maximum minimum, and other options. Here mainly to provide users with the choice of content and scope;
Main: 1.1 Please enter the number of the question (positive integer)
1.2 Select the number of participating operations
1.3 Choose whether to add multiplication
1.4 Choose whether to join the division
index.php file
index.php
Then, create the rubric.php file, submit the form information to this file, and call the value passed when the arithmetic method is implemented. Put the questions and answers into the question.txt and Answer.txt files separately for later use.
2.1rubric.php
rubric.php
2.2question.txt
2.3answer.txt
Third, create submitanswer.php, acceptanswer.php, deleteanswer.php, and judgeanswer.php files, respectively, for submitting answers online, receiving answers, deleting answers, and judging answers. The submitted answer is placed in the Answer1.txt file, and the answer is judged by comparing the contents of the Answer.txt and answer1.txt files.
3.1submitanswer.php
submitanswer.php
3.2acceptanswer.php
acceptanswer.php
3.3deleteanswer.php
Deleteanswer
3.4judgeanswer.php
Judgeanswere
Software engineering knot pair Job 02