1 / 37

Programming Methodology (1)

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;

mattox
Download Presentation

Programming Methodology (1)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Programming Methodology (1)

  2. MODULE TEAM

  3. Dr Aaron Kans Dr Sin Wee Lee

  4. Recommended Text

  5. Software and Programming

  6. public class Game { Car f1; f1.spin(); } The set of instructions that tells a computer what to do is called a program

  7. public class Game { Car f1; f1.spin(); } Software is the name given to a single program or a set of programs.

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

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

  10. public class Game { Car f1; f1.spin(); } Programming is the task of writing instructions for the computer

  11. public class Game { Car f1; f1.spin(); } These instructions have to be written in a special programming language.

  12. public class Game { Car f1; f1.spin(); } Examples include: C++, Visual Basic, Pascal, Java. Examples include: C++, Visual Basic, Pascal, Java.

  13. public class Game { Car f1; f1.spin(); } Examples include: C++, Visual Basic, Pascal, Java.

  14. Compiling Programs

  15. Programmer machine code COMPILER program (source) code Program user 00111110 11010010 11110010 01010110 if (words > MAX) { System.out.print(); }

  16. Programmer machine code PC COMPILER program (source) code PC user 00111110 11010010 11110010 01010110 if (words > MAX) { System.out.print(); }

  17. Programmer machine code MAC COMPILER program (source) code MAC user 11001110 00110000 00100101 11100100 if (words > MAX) { System.out.print(); }

  18. Java Programming

  19. Java Programmer Java byte code 11110011 00001101 01010111 10000101 JAVA COMPILER program code JVM 00111110 11010010 11110010 01010110 10011001 00011111 01010111 11100000 01100011 11111000 10101100 10001001 if (words > MAX) {System.out.print(); }

  20. The TIOBE Programming Index (http://www.tiobe.com)

  21. Your first program

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

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

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

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

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

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

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

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

  30. Integrated development environment (IDE)

  31. Type your programs here

  32. Use these icons to compile and run you program

  33. Compiler errors reported here

  34. Your files shown here

More Related