Quote Originally Posted by JMRKER View Post
If this project is taking so much memory and printout, how about showing what you are using.
This is the code I got by modifying what James Alarie posted. Running the program with Internet Explorer and choosing the 1st answer for each question gives a = 2 with every other letter being 0. It seems that you can give the same letter's answer for all 13 questions and the results is 2 answers for that letter and 0 answers for all other letters. If you answer the questions a b c d e f a b c d e f a you get a = 1, b = 1 and 0 for every other letter.

I don't know yet how I will score the test but chances are the score will depend on how many questions are answered. The program will need a mechanism to account for when someone doesn't give an answer for a question- either make them give an answer or change the final calculation of the score.

I am using wordpad to write the code and saving the files as text with the .html.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>

<title>Calculate Forms</title>
<!--- http://www.webdeveloper.com/forum/sh...d.php?t=261564 --->

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en-US" />
<meta name="Author" content="James Alarie - jalarie@umich.edu" />
<meta name="description" content="How to Calculate Forms." />
<meta name="keywords" content="calculate,form" />

<link rel="icon" href="favicon.ico" />
<link rev="made" href="mailto:jalarie@umich.edu" />

<!--
Author: James Alarie
Company: -independent-
Address: 3391 N Genesee Rd
Flint MI 48506
Latitude: 42.9663 Longitude: -83.7769
Telephone: +1-810-736-8259
Fax: -none-
Web Site: http://spruce.flint.umich.edu/~jalarie/
E-Mail: jalarie@umich.edu
Comments: Having said that, I've probably told you more than I know.
-->

<link href="style1.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/*<![CDATA[*/
/*]]>*/
</style>

<script type="text/javascript" src="style1.js"></script>
<script type="text/javascript">
/*<![CDATA[*/

function CalcIt() {
f1=document.forms[0]; // abbreviation
R1V='';
R2V='';
R3V='';
R4V='';
R5V='';
R6V='';
R7V='';
R8V='';
R9V='';
R10V='';
R11V='';
R12V='';
R132V='';
// add R3V through R13V here
aCount=0;
bCount=0;
cCount=0;
dCount=0;
eCount=0;
fCount=0;
for (ix1=0; ix1< f1.R1.length; ix1++) {
if (f1.R1[ix1].checked) {
R1V=f1.R1[ix1].value;
}
}
for (ix1=0; ix1< f1.R2.length; ix1++) {
if (f1.R2[ix1].checked) {
R2V=f1.R2[ix1].value;
}
}

for (ix1=0; ix1< f1.R3.length; ix1++) {
if (f1.R3[ix1].checked) {
R3V=f1.R3[ix1].value;
}
}

for (ix1=0; ix1< f1.R4.length; ix1++) {
if (f1.R4[ix1].checked) {
R4V=f1.R4[ix1].value;
}
}

for (ix1=0; ix1< f1.R5.length; ix1++) {
if (f1.R5[ix1].checked) {
R5V=f1.R5[ix1].value;
}
}

for (ix1=0; ix1< f1.R6.length; ix1++) {
if (f1.R6[ix1].checked) {
R6V=f1.R6[ix1].value;
}
}

for (ix1=0; ix1< f1.R7.length; ix1++) {
if (f1.R7[ix1].checked) {
R7V=f1.R7[ix1].value;
}
}

for (ix1=0; ix1< f1.R8.length; ix1++) {
if (f1.R8[ix1].checked) {
R8V=f1.R8[ix1].value;
}
}

for (ix1=0; ix1< f1.R9.length; ix1++) {
if (f1.R9[ix1].checked) {
R9V=f1.R9[ix1].value;
}
}

for (ix1=0; ix1< f1.R10.length; ix1++) {
if (f1.R10[ix1].checked) {
R10V=f1.R10[ix1].value;
}
}

for (ix1=0; ix1< f1.R11.length; ix1++) {
if (f1.R11[ix1].checked) {
R11V=f1.R11[ix1].value;
}
}
for (ix1=0; ix1< f1.R12.length; ix1++) {
if (f1.R12[ix1].checked) {
R12V=f1.R12[ix1].value;
}
}

for (ix1=0; ix1< f1.R13.length; ix1++) {
if (f1.R13[ix1].checked) {
R13V=f1.R13[ix1].value;
}
}
// add 3 through 13 'for ...' sets of 5 lines each here