Software engineering knot pair Job 02

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.