Need Help With Pascal Assignment.. - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Need Help With Pascal Assignment..

PaintBrushDoomPaintBrushDoom Posts: 4Member
I'm very new to Pascal and I'm a bit lost. I have to write the code required to display/enter student details and marks.

I'm not sure as to how to put the code into a text so it can be read here but I can tell you that the error line is 14,9, it's an illegal expression and it reads expected ";" but WRITELN found.

Comments

  • _Atex__Atex_ Posts: 163Member

    : I'm not sure as to how to put the code into a text so it can be read
    : here but I can tell you that the error line is 14,9, it's an illegal
    : expression and it reads expected ";" but WRITELN found.
    :

    You probably missing an [b];[/b] at 14,9. It must be present at the end of each line or statement except in a few instances like: it cannot precede the [b]else[/b] and it is optional before the [b]end[/b] statement. If you can't find the problem feel free to post your code here.
  • PaintBrushDoomPaintBrushDoom Posts: 4Member
    I'm very new to Pascal.. how do I copy the material and paste it here?
  • _Atex__Atex_ Posts: 163Member
    : I'm very new to Pascal.. how do I copy the material and paste it
    : here?
    :

    Read this: http://www.programmersheaven.com/2/PH-Rendering-Guide
  • PaintBrushDoomPaintBrushDoom Posts: 4Member
    Program Student_Data;


    Uses crt;


    Begin
    Clrscr;

    Writeln; '***************************************************'

    Writeln; 'School For Beginners'

    Writeln; 'Oklahoma City'

    Writeln; 'Oklahoma'

    Writeln; 'Subject' 'Marks' 'Subject' 'Marks'

    Writeln; 'English' 'Math'

    Writeln; 'History' 'Science'

    'Geography'
    'Total Points Earned:'
    'Total Points: '



    Writeln; 'Do you wish to view more (Y/N)?


    ' ***********************************************************'

    End.

    Okay. I finally got it. Now the error apparently is at line 12,9. which is the line that reads

    WRITELN;'School For Beginners'

    The error at 12,9 is apparently an illegal expression.



  • quikcarlquikcarl Posts: 59Member
    You should use parentheses around the quoted strings. You can use Writeln by itself, but to get some information on the screen, it needs to be put together, thusly:
    [code]: Writeln; 'School For Beginners'

    Writeln( 'School For Beginners' );
    [/code]
  • PaintBrushDoomPaintBrushDoom Posts: 4Member
    Another error message.

    Writeln ('Oklahoma City');

    Illegal Expression

    Syntax error, ";" expected but identifier WRITELN found


  • _Atex__Atex_ Posts: 163Member
    : Another error message.
    :
    : Writeln ('Oklahoma City');
    :
    : Illegal Expression
    :
    : Syntax error, ";" expected but identifier WRITELN found
    :
    :
    :

    You got to do some studying your own, this site has the answers to your problem: http://www.astahost.com/info.php/Pascal-Beginners-Part_t15281.html
  • lanxianglanxiang Posts: 11Member
    This post has been deleted.
Sign In or Register to comment.