Computers and Programming - F

Ano letivo: 2017-2018
Specification sheet

Specific details
course codecycle os studiesacademic semestercredits ECTSteaching language

Learning goals
Objectives of major importance:
- Acquire a general knowledge about the operation of a digital computer and about data representation.
- Learn to develop simple algorithms to solve given problems.
- Acquire a generic knowledge about the imperative, functional and object-oriented programming paradigms.
- Learn to use a very high level programming language (Python).

Objectives of secondary importance:
- Learn to search the internet for required bibliography and appropriate software tools.
- Acquire an operational knowledge about basic numerical analysis algorithms applied to typical physical systems and engineering problems.
- Learn to develop, within a team, small modular software projects.
The architecture (von Neumann model) of a digital computer. Operating systems.
Binary representation of integer and real numbers, text, images and sound.
Introduction to Python programming language.
The attribution instruction. The concept of pointer and aliasing.
Numeric types: integers, long integers, floating point, and complex.
Sequences (lists, tuples and strings) and sets. Iteration and slicing. List comprehension.
Flow control instructions.
Functions. Namespaces and scope. Argument passing and return values mechanism.
Imperative and functional programming.
Modules. Files. Formatting. Input and output redirection.
Exceptions and handling instructions.
Object-oriented programming. Class and instantiation. Attributes and methods. Inheritance, encapsulation, and polymorphism. Operator overload. Introspection and metaprogramming.
Recursion. Iterators and generators.

Basic numerical methods applied to physics problems.
Generic skills to reach
. Computer Skills for the scope of the study;
. Competence to solve problems;
. Using the internet as a communication medium and information source;
. Critical thinking;
. Competence in applying theoretical knowledge in practice;
. Competence in analysis and synthesis;
. Competence in organization and planning;
. Knowledge of a foreign language;
. Competence in information management;
. Competence for working in group;
. Creativity;
(by decreasing order of importance)
Teaching hours per semester
laboratory classes60
total of teaching hours60

Sseminar or study visit- %
Laboratory or field work- %
Problem solving30 %
Synthesis work thesis- %
Project- %
Research work- %
Mini tests- %
Assessment Tests70 %
Exam- %
Other- %
- %
- %

Bibliography of reference
1. Documentação online do Python:
- Homepage:
- Tutorial:
- Tutorial em português:
2. Learning Python, M. Lutz, D. Ascher, O'Reilly
3. How to think like a computer scientist, A. Downey, J. Elkner & C. Mayers, Green Tee Press
4. Numerical methods in engineering with Python, J Kiusalaas, Cambridge University Press
5. Python for dummies, S. Maruch, A. Maruch, Wiley
6. Computadores e Programação ? Apontamentos da disciplina, Helmut Wolters
Teaching method
This course is taught with a theoretical-practical approach with a great emphasis on the understanding and development of algorithms for real problems, including a first approach to some numerical analysis methods applied to simple physical and engineering problems.
Each class may start with a short presentation of some formal aspects of the language after which the students are asked to solve a set of problems using Python interactively.
Resources used
Laboratório de computação