Algoritmos e Programação

Base Knowledge

n. a.

Teaching Methodologies

In the theoretical lectures is made a presentation of theoretical concepts and their apllication,  well as the resolution of complementary exercises.

Laboratory classes with problem solving, which include discussion, analysis and development of the respective algorithm and its implementation in C language. All phases are monitored by the teacher.

 

Learning Results

The aim is encourage students to solve problems through the development of the respective algorithms.
It is intended to teach students how to develop a program in a structured way.

Provide students with the basics of the C language, which allow them the possibility to develop small programs.

Program

Algorithmic and modelling issues

Main programming paradigms

Introduction to C language

Structure of a C program

-Declaration of variables and constants

-Reserved words

– Identifiers – rules and conventions

-Predefined data types

-Ranges of variation of variables

-Operations and defined functions

– Modifiers type

– Expressions

-Interaction with the user

-Control Structures

–Sequence.

– Selection: if-statement, else clause, if-statement chaining, switch statement

– Repeat: while statement, do-while statement, for statement, Chain of repeat statements, break and continue statements

-Functions

– Defining functions: header and body

– Function Declaration

– Side effects

– Communication between functions: return, arguments and parameters, Passing parameters of pre-defined data types

Vectors

– Declaration and Initialization

– Multi-Dimensional Vectors

– Manipulation of Vectors,

Strings

– Declaration and Initialization

– Reading and writing Strings

– String Manipulation

– Defined Functions for Strings

– Conversion between Numeric Types and Strings

Curricular Unit Teachers

Verónica Maria Marques do Carreiro Silva Vasconcelos

Grading Methods

Assessment:

- Final written exam, marked out of 14, with a minimum required mark of 6 out of 14.
- Three individual performance tests, worth a total of 6 marks. Each test is marked out of 2. The student must obtain at least 2.5 out of 6 across the three tests.

If the professor deems it necessary, the final grade may be validated through an additional written or oral examination.

Grades above 17 must be defended through a written or oral examination. If the student does not undertake this defence, the final grade will be capped at 17.

Conditions for Admission to the Exam, valid for all examination periods:

- No more than two absences from laboratory classes.
- A minimum of 2.5 marks out of 6 across the individual performance tests.


    Internship(s)

    NAO

    Bibliography

    Vasconcelos, V.,  Marques, L, (2012). Linguagem C – Textos de apoio., ISEC (disponível na secção de texto e site da Unidade Curricular)

     King, K. N. (2008). C Programming – A Modern Approach”, Norton & Company, 2nd Ed. (disponível no ISEC: 1A -1-374)

     Damas, L. (1999). Linguagem C. FCA – Editora de Informática. (disponível no ISEC: 1A -1- 458)

    Kochan, S. G. (2005). Programming in C. 3rd Ed. (disponível no ISEC: 1A-1- 165)

     Guerreiro P. (2006). Elementos de Programação com C. FCA – Editora de Informática, 3ª Ed (disponível no ISEC: 1A -1- 458)

     S., Herbert. (1998).  Teach Yourself C.  McGraw-Hill, 3rd Ed. (disponível no ISEC: 1A – 1 – 257 )