ID120V Basic C-programming 7.5 credits

C-programmering, grundkurs

This course will provide students with basic knowledge of the various phases of software development as a basis for future programming courses.
This course provides an overview of the programming language C.

  • Educational level

    First cycle
  • Academic level (A-D)

  • Subject area

    Techonology
  • Grade scale

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

Course offerings

Autumn 12 for single courses students CANCELLED

  • Periods

    Autumn 12 P1 (3.5 credits), P2 (4.0 credits)
  • Application code

    10030
  • Start date

    20/08/2012
  • End date

    2013 week: 1
  • Language of instruction

    Swedish
  • Campus

    KTH Kista
  • Number of lectures

  • Number of exercises

  • Tutoring time

    Evenings
  • Form of study

    Normal
  • Number of places *

    30 - 50

    *) The Course date may be cancelled if number of admitted are less than minimum of places. If there are more applicants than number of places selection will be made.

  • Course responsible

    William Sandqvist
  • Teacher

    William Sandqvist

Spring 13 VU for single courses students

  • Periods

    Spring 13 P3 (3.5 credits), P4 (4.0 credits)
  • Application code

    20063
  • Start date

    11/01/2013
  • End date

    2013 week: 21
  • Language of instruction

    Swedish
  • Campus

    KTH Kista
  • Number of lectures

    12 (preliminary)
  • Number of exercises

  • Tutoring time

    Evenings
  • Form of study

    Normal
  • Number of places *

    20 - 20

    *) The Course date may be cancelled if number of admitted are less than minimum of places. If there are more applicants than number of places selection will be made.

  • Course responsible

    William Sandqvist <william@kth.se>
  • Teacher

    William Sandqvist <william@kth.se>
  • Target group

    Endast vidareutbildningsstudenterna får använda denna anmälningskod. Denna anmälningskod är inte för KTH:s programstudenter.

Spring 13 Gymnasieant. for programme students

  • Periods

    Spring 13 P3 (4.0 credits), P4 (3.5 credits)
  • Application code

    61117
  • Start date

    2013 week: 2
  • End date

    2013 week: 21
  • Language of instruction

    Swedish
  • Campus

    KTH Kista
  • Number of lectures

  • Number of exercises

  • Tutoring time

    Evenings
  • Form of study

    Normal
  • Number of places

    No limitation
  • Course responsible

    William Sandqvist <william@kth.se>
  • Teacher

    William Sandqvist <william@kth.se>

Spring 13 SFINX for programme students

  • Periods

    Spring 13 P3 (4.0 credits), P4 (3.5 credits)
  • Application code

    61116
  • Start date

    2013 week: 2
  • End date

    2013 week: 21
  • Language of instruction

    Swedish
  • Campus

    KTH Kista
  • Number of lectures

  • Number of exercises

  • Tutoring time

    Evenings
  • Form of study

    Normal
  • Number of places

    No limitation
  • Course responsible

    William Sandqvist <william@kth.se>
  • Teacher

    William Sandqvist <william@kth.se>

Learning outcomes

This course will provide students with basic knowledge of the various phases of software development as a basis for future programming courses. This course will provide an overview of the programming language C.
After completing the course the participants should be able

  • Analyze simple problems and describe them in terms of structural diagrams and translate them to C programs using sequence, selection and recurrent elements.
  • Edit, compile, link, execute and debug simple C program.
  • Use C-functions using variables, fields and data structures as parameters and return values.
  • Read and write data records to text and binary.
  • For higher grades the student must also be
  • Implement your own format or by a self-defined data type which is then processed through the input, stripping, sorting, calculating, file management, etc..
  • Dynamic memory management of data items
  • Put together programs using header files and C files

Course main content

The course consists of software development including problem analysis, structuring, editing the source code, compiling, linking, execution, debugging.
C programming with

  • Data types basic types, fields, pointers, structures.
  • Operators for arithmetic, assignment, bithantering
  • Preprocessor usage for soursecode such as inclusion of standard libraries and headers
  • File Management
  • Function calls

Disposition

Lectures, exercises, presentations and assignments are alternated on each other.

Eligibility

Completed upper secondary education including documented proficiency in Swedish corresponding to Swedish b and English corresponding to English A.

Prerequisites

Good computer skills.

Literature

Vägen till C  av Ulf Bilting och Jan Skansholm ISBN 91-44-01468-6

Required equipment

Preferably a laptop of your own.

Examination

  • INL1 - Hand in Theory 1, 1.0 credits, grade scale: P, F
  • INL2 - Hand in Theory 2, 1.0 credits, grade scale: P, F
  • LAB1 - Basic Programming, 1.5 credits, grade scale: P, F
  • LAB2 - Parameter - Passing, 2.0 credits, grade scale: P, F
  • LAB3 - Files, 2.0 credits, grade scale: P, F
  • PROJ - Programming Project, , grade scale: A, B, C, D, E, FX, F

Examination is carried out gradually in the form of theory questions and exercises and, if approved, leads to a basic grade.
For higher grades a certain amount of increased depth in theory needs to be shown in the form of a small individual project work.

Offered by

ICT/Electronic Systems

Examiner

William Sandqvist <william@kth.se>

Supplementary information

The course is based on the earlier courses ID135V, and  6B4020.
This new, ID120V, course has been expanded.

Version

Course plan valid from: Autumn 11.
Examination information valid from: Autumn 10.