Write a JSP program that generates 5 math questions randomly, as shown below(JSP
ID: 653932 • Letter: W
Question
Write a JSP program that generates 5 math questions randomly, as shown below(JSP Page). The numbers must be two-digit numbers generated randomly. And the arithmetic operators (+, -, * and /) are also selected randomly for each question.. ??
JSP Page:
Name : ----------
13+17 = ---------
42/67=-----------
55-17=----------
47*89=------------
42+17=----------
After the user answers all questions and clicks Submit button, the JSP displays the result, as shown below(JSP Page). The user can also click Reset button to start over the quiz and new 5 questions will be regenerated. ?
JSP Page:
Name : ----John------
13+17 = ----32----- correct
42/67=-------55---- wrong
55-17=---38------- correct
47*89=----27-------- wrong
42+17=----99------ wrong
John got 2 correct answers
Explanation / Answer
<td>
Name : ----------
</td>
<td>
13+17 = ---------
</td>
<td>
42/67=-----------
</td>
<td>
55-17=----------
</td>
<td>
47*89=------------
</td>
<td>
42+17=----------
</td>
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.