//change 5 to the total number of questions
var total=5
var question=new Array()
for (i=1;i<=total+1;i++){
temp="choice"+i+"=new Array()"
eval(temp)
}
var solution=new Array()

/*Below lists the phrases that will be randomly displayed if the user correctly answers the question. You may extend or shorten this list as desired*/
var compliments=new Array()
compliments[0]="Excellent!"
compliments[1]="Wow, you're really rocking!"
compliments[2]="You must have studied hard. Good job!"
compliments[3]="Right on."
compliments[4]="Correct!"
compliments[5]="Great Job!"
compliments[6]="Good work!"


/*Below lists the questions, its choices, and finally, the solution to each question. Folow the exact format below when editing the questions. You may have as many questions as needed.*/

question[1]="An elimination golf tournament is held for 300 players. How many golf matches will transpire?"
choice1[1]="99"
choice1[2]="199"
choice1[3]="299"
choice1[4]="300"

question[2]="The numbers one through seven are drawn from a hat without replacement. What is the probability that all the odd numbers will be chosen first?"
choice2[1]="1/35"
choice2[2]="1/30"
choice2[3]="1/8"
choice2[4]="1/15"

question[3]="What is the largest amount of money can have in coins and still not be able to give change for a dollar?"
choice3[1]="$.99"
choice3[2]="$1.01"
choice3[3]="$1.19"
choice3[4]="$1.49"

question[4]="A man passed one-sixth of his life in childhood, one-twelfth in youth, and one-seventh more as bachelor. Five years after his marriage, a son was born who died four years before his father at half his father's final age. What was the man's final age?"
choice4[1]="83"
choice4[2]="84"
choice4[3]="85"
choice4[4]="86"

question[5]="A drawer contains an odd number of plain brown socks and an even number of plain black socks. What is the least number of least number of brown andblack socks such that the probability of obtaining two brown socks is 1/2 when two socks are chosen at random from the complete collection?"
choice5[1]="5 brown and 5 black socks"
choice5[2]="5 brown and 10 black socks"
choice5[3]="10 brown and 3 black socks"
choice5[4]="15 brown and 6 black socks"

solution[1]="c"
solution[2]="a"
solution[3]="c"
solution[4]="b"
solution[5]="d"

