Random Math

Click Here to Download this Answer Instantly

The Windows application opens with a text box where the user can enter the maximum number (integer) to use in the generation of numbers for use in the problem.

The Windows application opens with a text box where the user can enter the minimum number (integer) to use in the generation of numbers for use in the problem.

The Windows application opens with a combo box where the user can choose the operator for use in the problem.

The user clicks the Create Problem button.

The program displays the mathematics problem using two randomly generated integers and the operator selected by the user.

The focus is moved to the answer text box and the user types in the answer.

The user clicks the Submit Answer button.

The user is presented with a message box displaying correct/incorrect, the problem, the correct answer, and the submitted answer. The user must acknowledge the message box before returning to the program.

The problem, the correct answer, and the submitted answer are written to a txt file.

Problem and answer are cleared on acknowledgement of the message box and the focus is returned to the Create Problem button.

Purpose: The Math Lab program allows the user to have randomly created math problems presented to them with immediate feedback concerning their answer and results saved to a file.
Program Procedures: The user may choose the type of math problem to create (+, -, *, /) as well as a maximum and a minimum number to use in the development of the problems. A problem will be created and displayed. The user will answer the problem and feedback will be given concerning the answer. All problems, correct answers, and submitted answers will be saved to a txt file.
Algorithms, Processing, and Conditions: The user must be able to choose the maximum number to use in creation of the problem.

The user must be able to choose the minimum number to use in creation of the problem.

The user must be able to choose the type of operator to use in the problem.

The user must be provided with a button to produce a randomly generated math problem based on the previous conditions.

The user must be able to enter an answer to the problem.

The program must provide feedback for the user concerning the problem, submitted answer, and correct answer.

The program must save the problem, submitted answer, and correct answer to a file for tracking.

The user should be provided with a button to clear the answer and problem.

Notes and Restrictions: Any results (entered or actual from program) should be rounded to two decimal places (if needed).
Comments: A graphic depicting mathematics (mathpic.bmp) should be used in the program.