Thursday, June 11, 2026

Pseudocode Notes Part 2

- PROCEDURE <identifier> (<param1>:<datatype>, <param2>:<datatype>...)

    <statements>

ENDPROCEDURE

- FUNCTION <identifier> RETURNS <datatype>

    <statements>

ENDFUNCTION

- FUNCTION <identifier> (<param1>:<datatype>, <param2>:<datatype>...) RETURNS <datatype>

     <statements>

ENDFUNCTION

- OPENFILE <File identifier> FOR <File mode>

- READFILE <File identifier>, <variable>

- EOF (<File Identifier>)

- WRITEFILE <File identifier>, <string>

- CLOSEFILE <File identifier>

- OPENFILE <File identifier> FOR RANDOM

- SEEK <File identifier>, <address>

- GETRECORD <File identifier>, <variable>

- PUTRECORD <File identifier>, <variable>

- RANDOMBETWEEN(min, max): Generates random integer between the integers min and max.

- RND(): Generates a random real number between 0 and 1.

No comments:

Folk Arts of India

Madhubani Painting   - Region: Mithila, Bihar   - Period: Ancient (references from Ramayana)   - Artists: Traditionally, women   - Themes...