fbpx

Programming

FST10014

Duration
Nil

Prerequisites
Nil

Corequisites
Nil

Contact hours
Nil

Credit Points
Nil

Aims and learning outcomes

The purpose of the module is to introduce learners to the general principles of software development process, basic syntax of a suitable programming language, control structures (sequential, selection, and repetition), and programming concepts such as variables, functions, modules, and file processing.

Students who successfully complete this unit should be able to:

  1. Explain the basic conceptual elements of the chosen program development environment
  2. Use the basic syntax features of the chosen language to write simple instructions
  3. Create, debug and test software applications written in the chosen language
  4. Implement the concepts of sequence, selection, and repetition control structures in the chosen language
  5. Use complex logical structures in developing algorithms to solve problems
  6. Acquire a broad knowledge in the chosen programming language
  7. Apply theoretic concepts, in a chosen stream, to a range of situations

Unit information

Content

Lecture

  1. Introduction to Computing, Overview of Software
  2. Development Process and Diagrams
  3. Introduction to Python Programming
  4. Python Types, Variable, Simple I/O, Strings and Collections
  5. Planning a Procedure Using Pseudocode
  6. Selection: If-elif-else
  7. Repetition: While Loop, For Loop
  8. Python: User defined functions
  9. Python Module
  10. Python Files I/O
  11. Overview of Other Programming Languages

Tutorial/Lab

  1. Pseudocode, algorithms and diagrams
  2. Features of Python, Python IDE: Interactive Mode, Python IDE: Development Mode, Creating simple code for displaying a sentence
  3. Variables, Input() Function, Useful Mathematical Operators, Python Assignment Statement, Swap Variables, Numbers, Strings, Tuples, Lists, Sets, Dictionaries
  4. If-statement, If-else statement, If-elif-else statement, Nested if-else statement, Generate random numbers
  5. While Loop, Infinite Loop, While-else statement, While loop with if-else and break statement, For Loop, For Loop and range() function, Random access with len() function, Iterating over type, list, dictionary
  6. Call a function, Function without arguments, Function with arguments, The return statement in function, Default argument values, Arbitrary Argument Lists
  7. Creating a module, Importing a module, From..import statement, Executing modules as scripts, Modules Path, Standard Module
  8. Raw input Function, Input Function, Opening and Closing Files, The file Object Attributes, Reading and Writing Files, Renaming and Deleting Files, Directories in Python
  9. Overview of Other Programming Languages