HI1900 Computer Programming, Basic Course 7.5 credits

Programmering, grundkurs

  • Educational level

    First cycle
  • Academic level (A-D)

    A
  • Subject area

    Information Technology
    Techonology
  • Grade scale

    A, B, C, D, E, FX, F

At present this course is not scheduled to be offered.

Learning outcomes

The course provides an introduction to programming and a review of an imperative programming language. The course will give a solid ground for coming courses that contain programming.

In order to pass, the student should be able to write structured programs in a given language, with particular focus on the following:

  • formulate simple algorithms for given problems and realise these algorithms in program code
  • use an IDE to write, execute and debug a program
  • introduce and choose data types and variables, including compound, for data storage
  • explain the difference between variable value and address/reference, and differences in memory use when storing different data types
  • write functions for well delimited assignments
  • divide problems in parts, implement and test step-by-step, by selecting appropriate test data
  • divide a program in several modules/files to promote abstraction, reusing and maintenance
  • write executable programs from a simple program design (e. g. top-down design diagram, pseudo code or flow-chart)
  • use external files for data storage

For higher marks, the student shall be able to

  • analyse larger programming assignments and structure solutions on several levels, containing problem analysis, comprehensive design, well designed user interface, separation of a problem into parts, modules and functions, and implementation

Course main content

  • Background, introduction to programming languages
  • Problem analysis, structuring
  • Modular programming, debugging, testing
  • Data types, variables, compound data types
  • Memory managing
  • Sequence, selection, repetition
  • Operators, arithmetics
  • Functions
  • File handling

Eligibility

Knowledge corresponding to admission requirements for Bachelor of Science in Engineering.
Basic experience of computers.

Literature

C programming: a modern approach, K. N. King, 1996 ISBN 0-393-9645-2

Examination

  • TEN1 - Examination, 3.0 credits, grade scale: A, B, C, D, E, FX, F
  • ÖVN1 - Computer Exercises, 4.5 credits, grade scale: A, B, C, D, E, FX, F

Requirements for final grade

Passed written exam.
Passed lab assignments and practical exam.

The final grade is based on all parts of the examination.

Offered by

STH/Computer and Electrical Engineering

Contact

Håkan Strömberg, hakan.stromberg@sth.kth.se. För medicinsk teknik: Johnny Panrike, jsd@sth.kth.se

Examiner

Håkan Strömberg, hakan.stromberg@sth.kth.se

Version

Course plan valid from: Autumn 07.
Examination information valid from: Autumn 07.