Date post: | 31-Mar-2015 |
Category: |
Documents |
Upload: | kristen-wynn |
View: | 215 times |
Download: | 0 times |
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; f1.spin();}
Software is the name given to a single program or a set of programs.
Application software is the name given to useful programs that a user might need.
System software is the name given to special programs that help the computer to do its job.
public class Game{ Car f1; f1.spin();}
Programming is the task of writing instructions for the computer
public class Game{ Car f1; f1.spin();}
These instructions have to be written in a special programming language.
public class Game{ Car f1; f1.spin();}
Examples include: C++, Visual Basic, Pascal, Java. Examples include: C++, Visual Basic, Pascal, Java.
public class Game{ Car f1; f1.spin();}
Examples include: C++, Visual Basic, Pascal, Java.
Compiling Programs
COMPILERif (words > MAX){ System.out.print();}
program (source) code
00111110 11010010 11110010 01010110
machine code
Programmer
Program user
PC COMPILERif (words > MAX){ System.out.print();}
program (source) code
00111110 11010010 11110010 01010110
machine code
Programmer
PC user
MAC COMPILERif (words > MAX){ System.out.print();}
program (source) code
11001110 00110000 00100101 11100100
machine code
Programmer
MAC user
Java Programming
JAVA COMPILERif (words > MAX){System.out.print();}
program code
JVM
Java byte code
11110011000011010101011110000101
Java Programmer
00111110 11010010 11110010 01010110
10011001000111110101011111100000
01100011111110001010110010001001
The TIOBE Programming Index
(http://www.tiobe.com)
Your first program
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");
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");
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");
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");
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");
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");
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");
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");
Integrated development
environment (IDE)
Type your programs here
Use these icons to compile and run you program
Compiler errors reported here
Your files shown here