HI1024 Computer Programming, Basic Course 8.0 credits

Programmering, grundkurs

  • Educational level

    First cycle
  • Academic level (A-D)

  • Subject area

  • Grade scale

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

Course offerings

Autumn 17 for programme students

Autumn 17 TIELA for programme students

Autumn 17 TIDAA for programme students

Autumn 16 for programme students

Autumn 16 for programme students

  • Periods

    Autumn 16 P2 (1.0 credits)

    Spring 17 P3 (6.0 credits), P4 (1.0 credits)

  • Application code


  • Start date

    2016 week: 44

  • End date

    2017 week: 23

  • Language of instruction


  • Campus

    KTH Flemingsberg

  • Number of lectures

  • Number of exercises

  • Tutoring time


  • Form of study


  • Number of places

    No limitation

  • Course responsible

    Jonas Wåhslén <jonas.wahslen@sth.kth.se>

  • Teacher

    Jonas Wåhslén <jonas.wahslen@sth.kth.se>

Intended learning outcomes

The course will be an introduction to programming in an imperative programming language. The course will give a solid ground in programming for coming courses in the program.

To obtain a pass, the student shall know how to write structured programs, where these things are specially important:

  • create easy algorithms for given problems and translate them to program code.
  • use an IDE to write, execute and debug programs.
  • choose and use simple and more complex data types and variables.
  • explain the difference between parameters passed by value and reference parameters. Know how different data types are stored in memory.
  • write functions for well defined problems.
  • break up a problem in sub problems, implement and test, step by step, choosing suitable test data.
  • divide a program in more source files to support abstraction, reuse and maintenance.
  • write programs with help of : top down design, pseudo-code and flowchart
  • use external files for data storage
  • analysis of more complex programming tasks. Structuring the solution in more levels including: problem analysis, overall design, well formed graphical user interface, divide the problem in sub problems, modules and functions and implementation.

Course main content

  • Introduction to programming languages
  • Problem analysis and structured programming
  • Module programmering, debugging and testing
  • Variables, basic and structured data types
  • Sequence, selection and repetition
  • Operators and arithmetics
  • Functions
  • Data files


Basic computer skills. General entrance requirements. - successful completion of upper secondary education, knowledge of Swedish and English


K N King, C Programming A Modern Approach, 2 ed, WW Norton & Co, ISBN: 9780393979503


  • LAB1 - Computer Exercises, 2.0, grade scale: P, F
  • TEN1 - Examination, 3.0, grade scale: A, B, C, D, E, FX, F
  • TEN2 - Examination, 3.0, grade scale: A, B, C, D, E, FX, F

Offered by

STH/Computer and Electrical Engineering


Nicklas Brandefelt (nicklas.brandefelt@sth.kth.se)


Nicklas Brandefelt <nicklas.brandefelt@sth.kth.se>


Course syllabus valid from: Autumn 2013.
Examination information valid from: Autumn 2010.