Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Let S be an Integer (0 ≤ S ≤ 100)
- Let N be an Integer (0 ≤ N ≤ 10)
- Let I be an Integer (0 ≤ N ≤ 10)
- Let Answer be an Array of 10 × Yes|No
- Take Test
- Answer All Yes
- Store Score into S
- Store 1 into N
- Store 10×Yes into Answer
- Until N > 10 or S = 100
- Retake Test
- For I from 1 to N-1 (inclusive)
- Mark Option I as Answer[I]
- End For
- Mark Option N as No
- Mark Option N+1 as No
- For I from N+2 to 10 (inclusive)
- Mark Option I as Yes
- End For
- If Score Is S + 20
- Store No into Answer[N]
- Store No into Answer[N+1]
- Store S+20 into S
- Else If Score Is S
- Retake Test
- For I from 1 to N-1 (inclusive)
- Mark Option I as Answer[I]
- End For
- Mark Option N as No
- For I from 1 to N+1 (inclusive)
- Mark Option I as Yes
- End For
- If Score Is S + 10
- Store No into Answer[N]
- Else
- Store No into Answer[N+1]
- End If
- Store S+10 into S
- Else If Score Is S - 20
- // Do Nothing (clarifying clause)
- End If
- Store N+2 into N
- End Until
- If S < 100
- Retake Test
- For I in 1 to 10
- Mark Option I as Answer[I]
- End For
- End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement