Foundation Programming Introduction. Aims This course aims to give students a basic understanding of...

13
Foundation Programming Introduction

Transcript of Foundation Programming Introduction. Aims This course aims to give students a basic understanding of...

Page 1: Foundation Programming Introduction. Aims This course aims to give students a basic understanding of computer programming. On completing this course students.

Foundation Programming

Introduction

Page 2: Foundation Programming Introduction. Aims This course aims to give students a basic understanding of computer programming. On completing this course students.

Aims

• This course aims to give students a basic understanding of computer programming.

• On completing this course students should have the necessary skills to be able to design, build and test a small system in a high-level language (processing).

Page 3: Foundation Programming Introduction. Aims This course aims to give students a basic understanding of computer programming. On completing this course students.

Learning outcomesOn completion of this course, students should be able to: • To understand basic programming concepts and constructs such as

strings numbers, assignments, sequential and selective executions, loops and functions.

• Write short programs that use the fundamental program constructs

including standard conditional and iterative control structures. • Write simple graphics programs involving the drawing of basic shapes. • Write basic animation programs.

Page 4: Foundation Programming Introduction. Aims This course aims to give students a basic understanding of computer programming. On completing this course students.

Syllabus• Writing and running a program• Statements• Drawing programs• Variables• Fundamental data types• Animation in software• Interactive Programs• Callbacks• Functions• Conditionals• Loops• Arrays• Programs using images, audio and video media

Page 5: Foundation Programming Introduction. Aims This course aims to give students a basic understanding of computer programming. On completing this course students.

Teaching

• 2 hours lecture on Friday • 2 hours lab on Monday

Page 6: Foundation Programming Introduction. Aims This course aims to give students a basic understanding of computer programming. On completing this course students.

Assessment

• Term 1– 1 assignment 20 %– 5 small challenges worth 1% each

• Term 2– 1 assignment 20 %– 5 small challenges worth 1% each

• Examination (50%) written examination

Page 7: Foundation Programming Introduction. Aims This course aims to give students a basic understanding of computer programming. On completing this course students.

Language - Processing

• The Processing Language was designed to facilitate the creation of sophisticated visual structures.

• Processing reference page is on http://processing.org/reference/

Page 8: Foundation Programming Introduction. Aims This course aims to give students a basic understanding of computer programming. On completing this course students.

Download process 2

• Processing can be downloaded from http://processing.org/download

Page 9: Foundation Programming Introduction. Aims This course aims to give students a basic understanding of computer programming. On completing this course students.

Getting started with ProcessingTutorial

http://processing.org/tutorials/gettingstarted/

Page 10: Foundation Programming Introduction. Aims This course aims to give students a basic understanding of computer programming. On completing this course students.

Reading List

• Daniel Shiffman, Learning Processing: A Beginner's Guide to Programming Images, Animation, and Interaction.http://www.learningprocessing.com/

• Getting Started with Processing Casey Reas

and Ben Fry.Published June 2010, O'Reilly Media.

Page 11: Foundation Programming Introduction. Aims This course aims to give students a basic understanding of computer programming. On completing this course students.

Processing development Environment

Type your code here

Click here to run your programStop your program

Click here to saveNew sketch

Page 12: Foundation Programming Introduction. Aims This course aims to give students a basic understanding of computer programming. On completing this course students.

Exampleyour first program

• Type the following code on the text editor– ellipse(60, 60, 100, 100);– Click on

– The display window will display

Page 13: Foundation Programming Introduction. Aims This course aims to give students a basic understanding of computer programming. On completing this course students.

online material

• http://www.learningprocessing.com/

• Getting started with processing book