programming methodology (1)

37
Programming Methodology (1)

Upload: mattox

Post on 11-Jan-2016

36 views

Category:

Documents


0 download

DESCRIPTION

Programming Methodology (1). MODULE TEAM. Dr Aaron Kans. Dr Sin Wee Lee. Recommended Text. Software and Programming. public class Game { Car f1; f1.spin(); }. The set of instructions that tells a computer what to do is called a program. public class Game { Car f1; - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Programming Methodology (1)

Programming Methodology (1)

Page 2: Programming Methodology (1)

MODULE TEAM

Page 3: Programming Methodology (1)

Dr Aaron Kans Dr Sin Wee Lee

Page 4: Programming Methodology (1)

Recommended Text

Page 5: Programming Methodology (1)
Page 6: Programming Methodology (1)

Software and Programming

Page 7: Programming Methodology (1)

public class Game{ Car f1; f1.spin();}

The set of instructions that tells a computer what to do is called a program

Page 8: Programming Methodology (1)

public class Game{ Car f1; f1.spin();}

Software is the name given to a single program or a set of programs.

Page 9: Programming Methodology (1)

Application software is the name given to useful programs that a user might need.

Page 10: Programming Methodology (1)

System software is the name given to special programs that help the computer to do its job.

Page 11: Programming Methodology (1)

public class Game{ Car f1; f1.spin();}

Programming is the task of writing instructions for the computer

Page 12: Programming Methodology (1)

public class Game{ Car f1; f1.spin();}

These instructions have to be written in a special programming language.

Page 13: Programming Methodology (1)

public class Game{ Car f1; f1.spin();}

Examples include: C++, Visual Basic, Pascal, Java. Examples include: C++, Visual Basic, Pascal, Java.

Page 14: Programming Methodology (1)

public class Game{ Car f1; f1.spin();}

Examples include: C++, Visual Basic, Pascal, Java.

Page 15: Programming Methodology (1)

Compiling Programs

Page 16: Programming Methodology (1)

COMPILERif (words > MAX){ System.out.print();}

program (source) code

00111110 11010010 11110010 01010110

machine code

Programmer

Program user

Page 17: Programming Methodology (1)

PC COMPILERif (words > MAX){ System.out.print();}

program (source) code

00111110 11010010 11110010 01010110

machine code

Programmer

PC user

Page 18: Programming Methodology (1)

MAC COMPILERif (words > MAX){ System.out.print();}

program (source) code

11001110 00110000 00100101 11100100

machine code

Programmer

MAC user

Page 19: Programming Methodology (1)

Java Programming

Page 20: Programming Methodology (1)

JAVA COMPILERif (words > MAX){System.out.print();}

program code

JVM

Java byte code

11110011000011010101011110000101

Java Programmer

00111110 11010010 11110010 01010110

10011001000111110101011111100000

01100011111110001010110010001001

Page 21: Programming Methodology (1)

The TIOBE Programming Index

(http://www.tiobe.com)

Page 22: Programming Methodology (1)

Your first program

Page 23: Programming Methodology (1)

public class Hello{ public static void main(String[] args) { System.out.println("Hello world"); }}

Hello Worldpublic class Hello{

}

public static void main(String[] args) { }

System.out.println("Hello world");

Page 24: Programming Methodology (1)

public class Hello{ public static void main(String[] args) { System.out.println("Hello world"); }}

Hello Worldpublic class Hello{

}

public Static void main(String[] args) {

System.out.println("Hello world");

Page 25: Programming Methodology (1)

public class Hello{ public static void main(String[] args) { System.out.println("Hello world"); }}

Hello Worldpublic class Hello{

}

public Static void main(String[] args) {

System.out.println("Hello world");

Page 26: Programming Methodology (1)

public class Hello{ public static void main(String[] args) { System.out.println("Hello world"); }}

Hello Worldpublic class Hello{

}

public Static void main(String[] args) {

System.out.println("Hello world");

Page 27: Programming Methodology (1)

public class Hello{ public static void main(String[] args) { System.out.println("Hello world"); }}

Hello Worldpublic class Hello{

}

public static void main(String[] args) {

System.out.println("Hello world");

Page 28: Programming Methodology (1)

public class Hello{ public static void main(String[] args) { System.out.println("Hello world"); }}

Hello Worldpublic class Hello{

}

public static void main(String[] args) {

System.out.println("Hello world");

Page 29: Programming Methodology (1)

public class Hello{ public static void main(String[] args) { System.out.println("Hello world"); }}

Hello Worldpublic class Hello{

}

public static void main(String[] args) { }

System.out.println("Hello world");

Page 30: Programming Methodology (1)

public class Hello{ public static void main(String[] args) { System.out.println("Hello world"); }}

Hello Worldpublic class Hello{

}

public static void main(String[] args) { }

System.out.println("Hello world");

Page 31: Programming Methodology (1)

Integrated development

environment (IDE)

Page 32: Programming Methodology (1)
Page 33: Programming Methodology (1)

Type your programs here

Page 34: Programming Methodology (1)

Use these icons to compile and run you program

Page 35: Programming Methodology (1)

Compiler errors reported here

Page 36: Programming Methodology (1)

Your files shown here

Page 37: Programming Methodology (1)