You'll earn bonus points if you
can modify the program so that the arithmetic practice is on the product
of two integers (instead of the sum of two integers), and the keyboard
input to quit the program is "stop". In order for this to work correctly, I took the source code and did the following: 1. I switched the "plus" to "times" in the window.prompt sections. 2. I then switched "num1 + num2" to "num1 * num2" and tested the code in the preview window to see if it would multiply the numbers correctly. 3. Next, I switched (inputValue!
= -1) to (inputText != "stop") this != allows the value to return
the stop window.prompt if they are not equal. I no longer
want this to be an 4. I then switched -1 in the window.prompt sections to stop. |