Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Do not touch this code.
- // By Ruen Khan, Shiloh Reyes and Valentina Arrubla
- // Questions by Shiloh Reyes and Valentina Arrubla
- // Code by Ruen Khan
- // Do not touch this code.
- var pts = 0
- var q1 = askForDecimal("79.5 ÷ 1 =")
- if q1 == 79.5 {
- show("Correct! +1")
- pts = pts + 1
- } else {
- show("Incorrect")
- }
- q1 = askForDecimal("79.5 ÷ 10 =")
- if q1 == 7.95 {
- show("Correct! +1")
- pts = pts + 1
- } else {
- show("Incorrect")
- }
- q1 = askForDecimal("79.5 ÷ 100 =")
- if q1 == 0.795 {
- show("Correct! +1")
- pts = pts + 1
- } else {
- show("Incorrect")
- }
- q1 = askForDecimal("2.4 ÷ 3 =")
- if q1 == 0.8 {
- show("Correct! +1")
- pts = pts + 1
- } else {
- show("Incorrect")
- }
- q1 = askForDecimal("6.0 ÷ 5 =")
- if q1 == 1.2 {
- show("Correct! +1")
- pts = pts + 1
- } else {
- show("Incorrect")
- }
- q1 = askForDecimal("17.9 ÷ 9 (estimate) =")
- if q1 == 2 {
- show("Correct! +1")
- pts = pts + 1
- } else {
- show("Incorrect")
- }
- q1 = askForDecimal("150 ÷ 10¹ =")
- if q1 == 15 {
- show("Correct! +1")
- pts = pts + 1
- } else {
- show("Incorrect")
- }
- q1 = askForDecimal("150 ÷ 10² =")
- if q1 == 1.5 {
- show("Correct! +1")
- pts = pts + 1
- } else {
- show("Incorrect")
- }
- q1 = askForDecimal("150 ÷ 10³ =")
- if q1 == 0.15 {
- show("Correct! +1")
- pts = pts + 1
- } else {
- show("Incorrect")
- }
- q1 = askForDecimal("0.40 ÷ 0.05 =")
- if q1 == 8 {
- show("Correct! +1")
- pts = pts + 1
- } else {
- show("Incorrect")
- }
- q1 = askForDecimal("261 ÷ 6 =")
- if q1 == 43.5 {
- show("Correct! +1")
- pts = pts + 1
- } else {
- show("Incorrect")
- }
- q1 = askForDecimal("6.51 ÷ 3 =")
- if q1 == 2.17 {
- show("Correct! +1")
- pts = pts + 1
- } else {
- show("Incorrect")
- }
- q1 = askForDecimal("38.5 ÷ 7 =")
- if q1 == 5.5 {
- show("Correct! +1")
- pts = pts + 1
- } else {
- show("Incorrect")
- }
- q1 = askForDecimal("12.16 ÷ 4 =")
- if q1 == 3.04 {
- show("Correct! +1")
- pts = pts + 1
- } else {
- show("Incorrect")
- }
- q1 = askForDecimal("8.64 ÷ 4 =")
- if q1 == 2.16 {
- show("Correct! +1")
- pts = pts + 1
- } else {
- show("Incorrect")
- }
- q1 = askForDecimal("34 ÷ 4 =")
- if q1 == 8.5 {
- show("Correct! +1")
- pts = pts + 1
- } else {
- show("Incorrect")
- }
- // Estimate Questions
- q1 = askForDecimal("2.8 ÷ 6 (Estimate) =")
- if q1 == 4 {
- show("Correct! +1")
- pts = pts + 1
- } else {
- show("Incorrect")
- }
- q1 = askForDecimal("19.7 ÷ 3 (Estimate) =")
- if q1 == 6 {
- show("Correct! +1")
- pts = pts + 1
- } else {
- show("Incorrect")
- }
- show("Completed Game!")
- show(pts)
- show("out of 18")
- //#end-hidden-code
- // No.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement