'; for (var i = 0; i < quiz.length; i++) { if (quiz[i].isCorrect()) correct++; } var score = Math.round((correct / quiz.length) * 100); correctPage += 'Score: ' + score + ' %'; if (correct < quiz.length) { correctPage += ifWrong; for (var i = 0; i < quiz.length; i++) { if (!quiz[i].isCorrect()) { correctPage += (i + 1) + '. ' + quiz[i].userChoices[quiz[i].correctAnswer] + '
'; } } } else correctPage += ifAced; correctPage += ''; correctwin = window.open ('', '', 'height=300,width=300,scrollbars=yes'); if (correctwin.opener == null) correctwin.opener = window; correctwin.location = 'javascript:opener.correctPage'; } // Message to display if quiz is aced. var ifAced = "

Well done, you aced it.

"; // Message to display if any are wrong. var ifWrong = "

Here are the correct answers to the questions you got wrong:

"; // Create four question objects... quiz = new makeArray(8); quiz[0] = new makeQuestion("Who was the president at the time of the Louisiana Purchase?", // 1st question 2, // correct answer "John Adams", // choice 0 "John Tyler", // choice 1 "Thomas Jefferson", // choice 2 "Abraham Lincoln"); // choice 3 quiz[1] = new makeQuestion("How much money was given from Congress for the expedition?", // 2nd question 1, // correct answer "$1,000,000", // choice 0 "$2,500", // choice 1 "$6,700", //choice 2 "$5,000"); quiz[2] = new makeQuestion("Who went on the expedition?", 3, "Batman and Robin", "George Rogers Clark and William Clark", "Dr. Livingston and Ben Franklin", "Merriwether Lewis and William Clark"); quiz[3] = new makeQuestion("Where did the expedition end and begin?", 2, "Chicago", "Wichita", "St. Louis", "Kansas City"); quiz[4] = new makeQuestion("What year did the expedition start?", 0, "1804", "1812", "1798", "1826"); quiz[5] = new makeQuestion("What was the name of the Shoshone Indian who helped them communicate with the Shoshone tribe?", 2, "Rockshet", "Little Win", "Sacajawea", "Swift Deer"); quiz[6] = new makeQuestion("When they thought they were at the Pacific Ocean where were they really?", 2, "Snake River", "Missouri River", "Columbia River", "Mississippi River"); quiz[7] = new makeQuestion("How long did it take for the expedition to arrive back in St. Louis?", 3, "32 months", "22 months", "44 months", "28 months"); quiz[8] = new makeQuestion("What fort was built on the Columbia River for their shelter in the winter?", 1, "Fort Osage", "Fort Clatsop", "Fort Mandan", "Fort Levanworth"); // -->

Lewis and Clark Quiz

Correct Quiz