PROGRAMMING IN C - 2021/2
Module code: EEE1035
Module Overview
Module purpose: Programming is a key part of electronic engineering and the C programming language is at the heart of many embedded software systems. This module will provide the students with a solid practical knowledge of the C programming language, its relationship to the underlying hardware and aspects of both high level programming and low level manipulation of memory.
Module provider
Computer Science and Electronic Eng
Module Leader
BOWDEN Richard (Elec Elec En)
Number of Credits: 15
ECTS Credits: 7.5
Framework: FHEQ Level 4
Module cap (Maximum number of students): N/A
Overall student workload
Independent Learning Hours: 68
Lecture Hours: 11
Tutorial Hours: 11
Laboratory Hours: 40
Guided Learning: 10
Captured Content: 10
Module Availability
Semester 2
Prerequisites / Co-requisites
None.
Module content
LECTURES: 19 hrs: 4 hrs per week Spring 1-4 inclusive and 1 hrs lectures in weeks 6,8 & 10
LABORATORIES: 44 hrs: 4 hrs per week Spring 1-11
Programming in C Spring wk 1-4, four hrs per week
[1] Introduction, origins of C, Advantages and Disadvantages of C, general course overview, introduction to labs etc.
[2] Binary Representation, decimal, binary, octal and hexadecimal number system. Boolean operations, Binary arithmetic.
[3] Hardware and Software, Computer Hardware, Operating Systems, Memory Structures, Machine Code, High-low level languages, Compilers and linkers, Program Layout, Pre-processor, ANSI standard.
[4] Simple Data Types, Variables, Variable Definitions, Identifiers (data types), Constants, Characters and String Constants, Using #define.
[5] Standard IO, Data Types, printf and formatting, format sequences, scanf, problems with scanf, Reading Characters - getchar, Detecting Keystrokes, Keyboard Buffering, Detecting Invalid Input.
[6] Operators, Expressions and Statements, Integer Expressions, Floating Point Expressions, Assignment Statements, Arithmetic Operators, unary Operators, Precedence, Math Functions, Overflow and Underflow, Mixed Type Expressions, Type Casting, Increment and Decrement Operators.
[7] Making Decisions, Conditional statements, if…else, case statements.
[8] Looping, the for statement, while loops, do…while loops.
[9] Arrays, Array Concepts, Array Definitions, Array Subscripts, Passing Arrays.
[10,11] Basics of Pointers, Pointer concepts, Defining Pointers, The Operator, Assigning Pointers, Pointer Indirection, null Pointers, Pointers as Parameters, Arrays as Parameters, Pointers as Return Values, Absolute Addressing.
[12] Strings, String variables, I/O of Strings, String Assignments, String Comparison, Case Conversion, Library Functions, Value Conversions.
[13] Basics of Functions, Simple Procedural Functions, Parameterised Function, Function with Return Values, Local & Global Variables, the main function, Scope.
[14] More functions, pass by reference vs pass by value
[15] Files, File Structure, Opening and Closing Files, Writing to Files, Reading Files,W User Specified Files.
[16] Data Structures, Concept of Structure, Declaring New Data Types, Declaring a Structure, Defining Structured Variables, Accessing Structured Variables, Array of Structures, Passing Records to Functions, Returning Structures.
Assignment lectures, wks 6, 8 & 10, 1hr per week
[17] Introduction to programming Assignment 1
[18] Introduction to programming Assignment 2
[19] Introduction to programming Assignment 3
Assessment pattern
Assessment type | Unit of assessment | Weighting |
---|---|---|
Coursework | PROGRAMMING ASSIGNMENTS | 100 |
Alternative Assessment
Not applicable: students failing a unit of assessment resit the assessment in its original format.
Assessment Strategy
The assessment strategy for this module is designed to provide students with the opportunity to demonstrate the following.
Assessment of performance/understanding of laboratories during weeks 1-5 will form 40% of the module assessment. This assesses the students general understanding of the material as the course progresses. During weeks 6-11, 3 programming assignments will be performed by the students which will constitute the remaining 60% of the assessment, 20% per assignment. Each of these assignments will be presented to the students in lectures in weeks 6, 8 and 10 allowing design guidance to be provided and any questions answered. Assessment allows the students to demonstrate being able to break down and tackle more complex programming problems.
Thus, the summative assessment for this module consists of the following.
Four assessments during laboratories in weeks 1-5(10% each)
Three programming assignments set in weeks 6, 8 and 10, and due to be submitted by Tuesday 4pm in weeks 8, 10 and 12(20% each).
Any deadlines given here are indicative. For confirmation of exact date and time, please check the Departmental assessment calendar issued to you.
Formative assessment and feedback
For the module, students will receive formative assessment/feedback in the following ways.
During lectures, by question and answer sessions
During tutorials/tutorial classes
By means of unassessed tutorial problem sheets (with answers/model solutions)
During supervised computer laboratory sessions
Via assessed coursework
Module aims
- To familiarise students with the fundamentals of Computer Architecture
- To discuss the relationship between the underlying computer and the C language.
- To develop these concepts and show how the language can be used as a true high-level language
- To demonste the concepts of both procedural programming and data abstraction.
- To provide each student with practical experience of programming in a UNIX workstation environment to help build understanding and confidence in programming.
Learning outcomes
Attributes Developed | ||
001 | Demonstrate competency with a modern networked computing facility (the UNIX operating system, X windows and the world wide web) | P |
002 | Describe the relationship between computer architecture and programming | KC |
003 | Demonstrate understanding of the principles behind procedural and data abstraction | KCT |
004 | Apply abstraction to tackle large scale programming problems | PT |
005 | Independently design and code relatively complex programs in C | KCPT |
Attributes Developed
C - Cognitive/analytical
K - Subject knowledge
T - Transferable skills
P - Professional/Practical skills
Methods of Teaching / Learning
The learning and teaching strategy is designed to achieve the following aims.
The course consists of lectures and 4 supervised hours per week in a terminal or workstation room.
Over the course of the first 4 weeks, the fundamentals of the C programming language will be covered within lectures. These will be supported with a concurrent programme of laboratories (4 hours per week) where each aspect of the language covered in lectures is explored in a practical setting.
During weeks 6-11, 3 programming assignments will be performed by the students each of these assignments will be presented to the students in lectures in weeks 6, 8 and 10 allowing design guidance to be provided and any questions answered. For each assignment, 2 weeks of supported labs will be provided per assignment (4 hours per week).
Learning and teaching methods include the following.
Lectures: 19 hrs
Labs: 44 hrs
Week Number
Lectures
Labs
1
4 hrs
4 hrs
2
4 hrs
4 hrs
3
4 hrs
4 hrs
4
4 hrs
4 hrs
5
4 Hrs
6
1hr before labs
4 Hrs
7
4 Hrs
8
1hr before labs
4 Hrs
9
4 Hrs
10
1hr before labs
4 Hrs
11
4 Hrs
Indicated Lecture Hours (which may also include seminars, tutorials, workshops and other contact time) are approximate and may include in-class tests where one or more of these are an assessment on the module. In-class tests are scheduled/organised separately to taught content and will be published on to student personal timetables, where they apply to taken modules, as soon as they are finalised by central administration. This will usually be after the initial publication of the teaching timetable for the relevant semester.
Reading list
https://readinglists.surrey.ac.uk
Upon accessing the reading list, please search for the module using the module code: EEE1035
Programmes this module appears in
Programme | Semester | Classification | Qualifying conditions |
---|---|---|---|
Electronic Engineering with Computer Systems BEng (Hons) | 2 | Compulsory | A weighted aggregate mark of 40% is required to pass the module |
Electronic Engineering BEng (Hons) | 2 | Compulsory | A weighted aggregate mark of 40% is required to pass the module |
Electrical and Electronic Engineering BEng (Hons) | 2 | Compulsory | A weighted aggregate mark of 40% is required to pass the module |
Electronic Engineering with Nanotechnology BEng (Hons) | 2 | Compulsory | A weighted aggregate mark of 40% is required to pass the module |
Electronic Engineering with Nanotechnology MEng | 2 | Compulsory | A weighted aggregate mark of 40% is required to pass the module |
Electronic Engineering with Space Systems BEng (Hons) | 2 | Compulsory | A weighted aggregate mark of 40% is required to pass the module |
Electronic Engineering with Space Systems MEng | 2 | Compulsory | A weighted aggregate mark of 40% is required to pass the module |
Electronic Engineering with Computer Systems MEng | 2 | Compulsory | A weighted aggregate mark of 40% is required to pass the module |
Electronic Engineering MEng | 2 | Compulsory | A weighted aggregate mark of 40% is required to pass the module |
Computer and Internet Engineering BEng (Hons) | 2 | Compulsory | A weighted aggregate mark of 40% is required to pass the module |
Electrical and Electronic Engineering MEng | 2 | Compulsory | A weighted aggregate mark of 40% is required to pass the module |
Computer and Internet Engineering MEng | 2 | Compulsory | A weighted aggregate mark of 40% is required to pass the module |
Please note that the information detailed within this record is accurate at the time of publishing and may be subject to change. This record contains information for the most up to date version of the programme / module for the 2021/2 academic year.