Wordpress Themes - Debt Consolidation - Debt Consolidation - Creative Electronics - Debt Consolidation

PDA

View Full Version : Help ME!!


ccastell
Nov 15th 2006, 4:18 am
I need to make A program that is required to accept a studen number between 0 to 100, name and raw score. The program is then to computer the studen grade and prinit it along with the input data. The program is to continue reading student scores until a student number 0f 000 is entered.

Raw Scroe Grade
>85 A
70-84 B
55-69 C
40-54 D
0-39 E

Can any help me? I cannot use forms, but only prompts plus only javascript coding

smallbuzz
Nov 15th 2006, 9:37 pm
is this your homework?

ccastell
Nov 15th 2006, 10:26 pm
<HTML>
<HEAD>
<script LANGUAGE="JavaScript">

var score,grade;
score=parseInt(prompt("Please enter the score of student",""));



if(score>85){grade="A";}
if(score>=70 && score<85){grade="B";}
if(score>=55 && score<70){grade="C";}
if(score>=40 && score<55){grade="D";}
if(score>=0 && score<40){grade="E";}




document.write(" Your grade is "+grade);

</script>
</HEAD>
<BODY>
</BODY>
</HTML>

ccastell
Nov 15th 2006, 10:27 pm
i have done that, but i cannot figure out how to do the rest of the question