CE5140: C Programming

School Continuing and Professional Education
Department Code LEARN
Module Code CE5140
External Subject Code 100358
Number of Credits 10
Level L5
Language of Delivery English
Module Leader Dr Edward Evans
Semester Autumn Semester
Academic Year 2022/3

Outline Description of Module

This course will provide an introduction to the C programming language and its usage. After attending this course a student will have acquired the basic skills in programming in C.  Topics covered in this introductory course include data types, arithmetic operators, comparison operators, use of conditional and iterative control statements, formatting of output, use of functions from the C library, creation of user defined functions, introduction to pointers, introduction to arrays, accessing arrays using both subscripts and pointers, use of standard input/output library functions, use of text files and use of C pre-processor directives.  Assessed work will include the writing of C programs.  No programming experience required

On completion of the module a student should be able to

On successful completion of the module a student will be able to:

 

  • know the difference between signed and unsigned numeric variables
  • know the difference between an address and a pointer
  • know the difference between global and local variables
  • use basic programming constructs such as conditional statements and loops
  • create a C program which uses keyboard input
  • create  a C program which incorporates command line arguments
  • create a C program which reads from and writes to text files

 

 

How the module will be delivered

This module includes a mix of traditional lectures and laboratory sessions

 

11 meetings of 3 hrs.  Each meeting starts with a lecture and finishes with a laboratory session.

33 contact hours.

 

 

Skills that will be practised and developed

 

 Whilst studying this module, students will practise

 

  • the selection of  the appropriate program construct for the solution of a problem
  • analyse a programming problem and write a well-structured C program

 

 

 

How the module will be assessed

Formative assessment takes the form of assignments submitted to the tutor

Summative assessment is by means of a two hour written class test.

 

40% Coursework

60% Class test

The opportunity for reassessment in this module

Student may repeat the class test.

 

 

 

 

Assessment Breakdown

Type % Title Duration(hrs)
Written Assessment 100 C Programming N/A

Syllabus content

Sizes and names of different data types in the C programming language

Difference between signed and unsigned numeric variables

Arithmetic operators and evaluation of expressions using mixed numeric data types

Comparison operators and use of  if then else statement

Use of while, do and for loops

Use of standard library functions and creation of user defined functions

Use of  #include and  #define C pre-processor directives

Logical operators and bitwise operators

Creation of an array and accessing an array using both subscripts and pointers

Character and line input from the keyboard

Use of command line arguments and string functions

Reading and writing to a text file and the use of the perror function 


Copyright Cardiff University. Registered charity no. 1136855