Help ME!!

Discussion in 'JavaScript' started by ccastell, Nov 15, 2006.

  1. #1
    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
     
    ccastell, Nov 15, 2006 IP
  2. smallbuzz

    smallbuzz Peon

    Messages:
    125
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    is this your homework?
     
    smallbuzz, Nov 15, 2006 IP
  3. ccastell

    ccastell Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    <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 15, 2006 IP
  4. ccastell

    ccastell Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i have done that, but i cannot figure out how to do the rest of the question
     
    ccastell, Nov 15, 2006 IP