A arithmetic expression is generated on the Web page, and the user can enter the value of the expression, and then the system prompts for the correct result. This web-based program is a bit easier than the native program, because it is easy to get an expression because the number of operators in the expression is no more than three. Also, JavaScript comes with a function that evaluates the value of an expression, and we can call this function to do a calculation of the value of an expression.
<%@ page language= "java" import= "java.util.*" pageencoding= "UTF-8"%><%string path = Request.getcontextpath () ; String basepath = request.getscheme () + "://" +request.getservername () + ":" +request.getserverport () +path+ "/";%> <! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >Answer
No input operation results
Enter non-numeric
Answer right
Answer the wrong
Software Engineering Personal Jobs 04-Arithmetic Web Edition