meljun programming languages lecture

Upload: meljun-cortes-mbampa

Post on 30-May-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/9/2019 MELJUN Programming Languages Lecture

    1/14

    Programming Languages in SDD

    Software Design and Development

    MELJUN CORTES,BSCS,ACS

  • 8/9/2019 MELJUN Programming Languages Lecture

    2/14

    Contents

    2. Language requirements

    1.Language Specifications

    3. Event-driven languages

    Course Specifications

    NSW BOS Course Specifications

    4. Prototyping & RAD

    5. CPU simulation

    6. Evolution - LOGIC

    7. Developers view of Hardware

  • 8/9/2019 MELJUN Programming Languages Lecture

    3/14

    Language Specifications

    The syllabus does not prescribe a single coding language for

    implementation of programs but advocates a range of high level languages.

    Students are required to be proficient in using at least one of the currently

    approved languages but will not be asked to interpret or produce code as

    part of the external assessment.

    The languages chosen for inclusion in the approved list are ones which are

    generally available and support structured programming concepts.

    Contents

  • 8/9/2019 MELJUN Programming Languages Lecture

    4/14

    General language requirements

    The programming language chosen must allow the students to:

    use the following data types:

    numeric (integer and real)

    character string data

    use record and array data types including multi-dimensional arrays

    and arrays of records;

    use simple variables of type:

    CHARACTER

    R

    EAL

    INTEGER

    STRING

    use meaningful identifiers;

    use parentheses in creating expressions

    Contents

  • 8/9/2019 MELJUN Programming Languages Lecture

    5/14

    General language requirementscontinued

    The programming language chosen must allow the students to:

    use the arithmetic operators of

    ADDITION

    SUBTRAC

    TION MULTIPLICATION

    DIVISION

    use string handling operations to extract characters from a string

    use the logical operators of AND

    OR

    NOT

    Contents

  • 8/9/2019 MELJUN Programming Languages Lecture

    6/14

    General language requirementscontinued

    The programming language chosen must allow the students to:

    use relational operators which provide the equivalents of the following

    functions:

    use and create procedures which may require parameters: subprograms

    subroutines

    input data from the keyboard and/or a data file

    write output to the screen and/or a data file

    EQUAL TO NOT EQUAL TO

    GREATER THAN GREATER THAN OR EQUAL TO

    LESS THAN LESS LESS THAN OR EQUAL TO

    Contents

  • 8/9/2019 MELJUN Programming Languages Lecture

    7/14

    General language requirementscontinued

    The programming language chosen must allow the students to:

    use selection statements equivalent to:

    (i) IF-ELSE-ENDIF

    IF TH

    EN

    ELSE

    ENDIF

    ii) CASE-ENDCASE

    CASE OF

    ENDCASE

    Contents

  • 8/9/2019 MELJUN Programming Languages Lecture

    8/14

    General language requirementscontinued

    The programming language chosen must allow the students to:

    use repetition statements equivalent to:

    (iii) REPEAT-UNTIL

    REPEAT

    UNTIL

    (iv) WHILE-ENDWHILE

    WHILE DO

    ENDWHILE

    (v) FOR-ENDFOR

    FOR taking TO BY steps of 1 DO

    ENDFOR

    Contents

  • 8/9/2019 MELJUN Programming Languages Lecture

    9/14

    General language requirementscontinued

    The programming language chosen must allow the students to:

    include COMMENTS (REMARKS) in the code to document the program;

    include the use of a debugging facility such as: single instruction stepping

    trace

    breakpoints

    allow the reading and writing of sequential and random files

    experience the use of both a compilerand an interpreter.

    Appropriate Languages:

    Pascal

    a structured version of BASIC.

    Contents

  • 8/9/2019 MELJUN Programming Languages Lecture

    10/14

    Event-driven Languages

    The programming language chosen must allow the students to:

    create scripts which respond to

    button presses mouse actions

    and make use ofstandard control structures

    should not be limited to simple linking of screens.

    Appropriate Languages:

    Visual Basic

    Hypercard

    Delphi (limited functions only)

    REALBasic.

    Contents

  • 8/9/2019 MELJUN Programming Languages Lecture

    11/14

    Prototyping and Rapid Applications Development

    The programming language chosen must allow the students to:

    create several linked pages, cards or screens;

    create graphic and text elements on the: pages

    cards

    screens

    accept input from the keyboard;

    store and access data;

    perform mathematical operations on the data;

    perform the following operations on the data

    sorting searching

    reporting

    use a scripting language which permits the handling of system events such as mouse button presses

    keystrokes

    Appropriate languages: Visual Basic

    Hypercard

    Delphi (limited functions only)

    Access

    Filemaker-Pro

    REALBasic

    Contents

  • 8/9/2019 MELJUN Programming Languages Lecture

    12/14

    Software used to simulate CPU

    processing of instructions

    The programming language chosen should allow the students to:

    simulate the processing of machine code instructions.

    Appropriate languages:

    TIM

    Under the Hood including a CPU simulation.

    Contents

  • 8/9/2019 MELJUN Programming Languages Lecture

    13/14

    Evolution of Programming Languages

    Logic paradigm

    Students should design and create a simple expert system using an expert

    system shell, as an example of the logic paradigm.

    The programming language chosen must allow the students to:

    enter simple IF-THEN rules

    manipulate rules:

    add

    remove

    edit

    query the expert system

    display the rules that the system used to reach a conclusion.

    Appropriate software:

    Eshell

    ESIE

    Clixpert

    Prolog

    Contents

  • 8/9/2019 MELJUN Programming Languages Lecture

    14/14

    The Software Developers

    view of the hardware

    The software package(s) chosen must allow the students to:

    Drag and drop logic gate symbols to create a circuit

    Edit existing designs Print circuit designs

    Simulate the working of designed circuits to show outputs for

    selected input values.

    Appropriate software:

    LogicSim

    LogicCircuits

    Crocodile Clips

    Contents