|
Module Availability |
Autumn semester .
|
|
|
Assessment Pattern |
Unit(s) of Assessment
|
Weighting Towards Module Mark( %)
|
Coursework: 2 assignments
|
50%
|
Class Test:
|
50%
|
Qualifying Condition(s)
|
|
|
|
Module Overview |
Introduction to procedural programming using Java. |
|
|
Prerequisites/Co-requisites |
None. |
|
|
Module Aims |
To develop file handling skills using the University’s computing facilities. To develop basic programming skills. To teach the basic procedural aspects of the Java programming language. To initiate the development of problem solving skills .
|
|
|
Learning Outcomes |
At the end of the module you should be able to:
- Perform basic operations on University computing facilities.
- Plan a simple program.
- Write and run a simple program in the language Java.
- Perform basic input and output in Java.
- Handle primitive Java types.
- Handle constructs to vary the flow through a Java program.
- Handle constructs which repeat sections of Java program code.
|
|
|
Module Content |
Programming Languages fall into different paradigms (families). A modern approach to programming is the object-oriented (OO) paradigm which includes the language Java. Many first-time programmers find OO concepts difficult to grasp but are comfortable with a more traditional approach offered by the procedural paradigm. Since Java includes procedural as well as OO concepts, this module introduces Java by concentrating on the procedural aspects of the language, deferring OO concepts to a later stage. However some OO terms will be used.
A program specifies a computer’s performance of some process. Each instruction has a precise meaning which the machine interprets according to a convention we think of as a programming language. The sequence of steps of a process is known as an algorithm. The progression through some of the steps of an algorithm is referred to as flow. Except for trivial programs, the planning of a new program usually involves developing an algorithm on paper before any coding begins: this is usually done by listing the tasks and subtasks in a structured manner (we call such listing pseudocode) or by drawing a flowchart.
The topics covered during the module include:
- The ideas of compilation, running a program on the Java Virtual Machine, compile-time and run-time errors. Debugging programs.
- Identifiers and Java keywords. Expressions and statements. Constants, variables and assignments.
- Primitive data types (integer, floating point, boolean and character). Arithmetic operators. The accuracy of computations.
- The layout and structure of Java source code.
- Input and output of data in Java.
- Conditionals: Java if statements, relations. Relational and logical operators. Compound statements. Nested control constructs.
- The concept of iteration. Loop constructs. Using these in Java based upon the while, for and do-while statements.
- Mixed-type expressions and precedence rules. The need for more general constructs and the switch statement.
- Type conversions, casts.
- The use of characters.
- Methods, method parameters, return statement.
- Problem solving.
|
|
|
Methods of Teaching/Learning |
Lectures and supervised laboratory sessions. Supervised practical is a vital part of the course and students will be given many non-assessed exercises as well as the formal coursework assignment
|
|
|
Selected Texts/Journals |
An introductory text supporting this module only is ‘Fundamentals of Programming using Java’ by Edward Currie published by Thomson in its Fasttrack series. ISBN-13: 987-184480-451-1 or ISBN-10: 184480-451-8.
The recommended text supporting this module and the module Programming Languages 2 is ‘Head First Java’ by Kathy Sierra and Bert Bates, published by O’Reilly. ISBN 0596009208.
|
|
|
Last Updated |
Updated 23rd September 08 |
|