Module MAU11601: Introduction to programming
Credit weighting (ECTS) 5 credits
Semester/term taught Michaelmas term 2021-22
Contact Hours (Covid-19 arrangements) 11 weeks with equivalent of 3 hours'
lectures per week, plus tutorials.
Course web page, including lecture notes:
Prof. Colm Ó Dúnlaing
On successful completion of this module students will have;
Ability to write simple C programs quickly.
Familiarity with computer representation of data.
Ability to simulate simple routines, recursive or otherwise.
Ability to formalise and verify the correctness of some
Module Content (where time permits)
Hexadecimal numbers, machine code
Basic data types char, short, int, long, float, double, pointer, arrays.
Arrays and initialisation.
For-loops and output.
Input through scanf() and fgets() and >>.
Functions and subroutines.
Simulating functions and subroutines.
Formal verification using loop invariants.
Type conversion, unsigned types, sign extension.
C string library.
Pointers, Malloc() and Calloc()
Assessment Detail Under Covid-19 arrangments, this module will be
examined in a 3-hour take-home exam, plus coursework: each counts
for 50% of the overall mark. Re-assessments (second attempt),
if required, will be 100% exam.