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.
public class Game { Car f1; f1.spin(); } Examples include: C++, Visual Basic, Pascal, Java.
Compiling Programs
COMPILER if (words > MAX) { System.out.print(); } program (source) code machine code Programmer Program user
PC COMPILER if (words > MAX) { System.out.print(); } program (source) code machine code Programmer PC user
MAC COMPILER if (words > MAX) { System.out.print(); } program (source) code machine code Programmer MAC user
Java Programming
JAVA COMPILER if (words > MAX) {System.out.print(); } program code JVM Java byte code Java Programmer
The TIOBE Programming Index (
Your first program
public class Hello { public static void main(String[] args) { System.out.println("Hello world"); } } Hello World public 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 World public 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 World public 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 World public 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 World public 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 World public 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 World public 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 World public 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