Roman Numeral Multiplication Quiz. When the user clicks Next Select a number at random between 1 and...
Transcript of Roman Numeral Multiplication Quiz. When the user clicks Next Select a number at random between 1 and...
![Page 1: Roman Numeral Multiplication Quiz. When the user clicks Next Select a number at random between 1 and 10. Display the corresponding image (Roman1_1.jpg,](https://reader036.fdocuments.us/reader036/viewer/2022083009/5697bf861a28abf838c88137/html5/thumbnails/1.jpg)
Roman Numeral Multiplication Quiz
![Page 2: Roman Numeral Multiplication Quiz. When the user clicks Next Select a number at random between 1 and 10. Display the corresponding image (Roman1_1.jpg,](https://reader036.fdocuments.us/reader036/viewer/2022083009/5697bf861a28abf838c88137/html5/thumbnails/2.jpg)
![Page 3: Roman Numeral Multiplication Quiz. When the user clicks Next Select a number at random between 1 and 10. Display the corresponding image (Roman1_1.jpg,](https://reader036.fdocuments.us/reader036/viewer/2022083009/5697bf861a28abf838c88137/html5/thumbnails/3.jpg)
When the user clicks Next
• Select a number at random between 1 and 10.
• Display the corresponding image (Roman1_1.jpg, or Roman1_2.jpg, etc.)
• Select a second number at random between 1 and 10.
• Display the corresponding image (Roman2_1.jpg, or Roman2_2.jpg, etc.)
• Set the image next to the buttons to the “thinking” image.
• Clear the textbox of any previous answer
![Page 4: Roman Numeral Multiplication Quiz. When the user clicks Next Select a number at random between 1 and 10. Display the corresponding image (Roman1_1.jpg,](https://reader036.fdocuments.us/reader036/viewer/2022083009/5697bf861a28abf838c88137/html5/thumbnails/4.jpg)
![Page 5: Roman Numeral Multiplication Quiz. When the user clicks Next Select a number at random between 1 and 10. Display the corresponding image (Roman1_1.jpg,](https://reader036.fdocuments.us/reader036/viewer/2022083009/5697bf861a28abf838c88137/html5/thumbnails/5.jpg)
![Page 6: Roman Numeral Multiplication Quiz. When the user clicks Next Select a number at random between 1 and 10. Display the corresponding image (Roman1_1.jpg,](https://reader036.fdocuments.us/reader036/viewer/2022083009/5697bf861a28abf838c88137/html5/thumbnails/6.jpg)
When the user clicks Check
• The user should enter a guess in the textbox and click Check.
• If the user’s answer is correct, then change the image next to the buttons to one of the happy faces (chosen at random).
• If the user’s answer is incorrect, then change the image next to the buttons to one of the sad faces (chosen at random).
![Page 7: Roman Numeral Multiplication Quiz. When the user clicks Next Select a number at random between 1 and 10. Display the corresponding image (Roman1_1.jpg,](https://reader036.fdocuments.us/reader036/viewer/2022083009/5697bf861a28abf838c88137/html5/thumbnails/7.jpg)
When starting
• Include in the body a call to the Next button’s method, so that a random problem is selected as soon as one navigates to the page.
![Page 8: Roman Numeral Multiplication Quiz. When the user clicks Next Select a number at random between 1 and 10. Display the corresponding image (Roman1_1.jpg,](https://reader036.fdocuments.us/reader036/viewer/2022083009/5697bf861a28abf838c88137/html5/thumbnails/8.jpg)
When in Rome
• Next declare, instantiate and initialize an array like:
• var RomanNumerals = new Array("0", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", "XIII", "XIV", "XV", "XVI", "XVII", "XVIII", "XIX", "XX", "XXI", "XXII", "XXIII", "XXIV", "XXV");
![Page 9: Roman Numeral Multiplication Quiz. When the user clicks Next Select a number at random between 1 and 10. Display the corresponding image (Roman1_1.jpg,](https://reader036.fdocuments.us/reader036/viewer/2022083009/5697bf861a28abf838c88137/html5/thumbnails/9.jpg)
When in Rome (Cont.)
• Use the array to modify your program so that now the user is expected to enter his or her answer in roman numerals.
• Note that the element with an index of 7 is VII which is the roman numeral for 7.
![Page 10: Roman Numeral Multiplication Quiz. When the user clicks Next Select a number at random between 1 and 10. Display the corresponding image (Roman1_1.jpg,](https://reader036.fdocuments.us/reader036/viewer/2022083009/5697bf861a28abf838c88137/html5/thumbnails/10.jpg)
![Page 11: Roman Numeral Multiplication Quiz. When the user clicks Next Select a number at random between 1 and 10. Display the corresponding image (Roman1_1.jpg,](https://reader036.fdocuments.us/reader036/viewer/2022083009/5697bf861a28abf838c88137/html5/thumbnails/11.jpg)