Programming Methodology (1). MODULE TEAM Dr Aaron Kans Dr Sin Wee Lee.

Slides:



Advertisements
Similar presentations
Designing a Program & the Java Programming Language
Advertisements

Foundations of Programming and Problem Solving Introduction.
1.A computer game is an example of A.system software; B.a compiler; C.application software; D.hardware; E.none of the above. 2.JVM stands for: A.Java Virtual.
Introduction to Programming G51PRG University of Nottingham Revision 1
METHOD OVERRIDING Sub class can override the methods defined by the super class. Overridden Methods in the sub classes should have same name, same signature.
INTRODUCTION Chapter 1 1. Java CPSC 1100 University of Tennessee at Chattanooga 2  Difference between Visual Logic & Java  Lots  Visual Logic Flowcharts.
JAVA Programming Environment © Juhani Välimäki 2003.
Programming Basic Concepts © Juhani Välimäki 2003.
CS0004: Introduction to Programming Introduction to Programming.
JAVA BASICS SYNTAX, ERRORS, AND DEBUGGING. OBJECTIVES FOR THIS UNIT Upon completion of this unit, you should be able to: Explain the Java virtual machine.
Your First Java Program: HelloWorld.java
Chapter 1: Introduction
Software. What Is Software? software –Also called Computer programs –Are a list of instructions –Instructions are called code –CPU performs the instructions.
Java Intro. A First Java Program //The Hello, World! program in Java public class Hello { public static void main(String[] args) { System.out.println("Hello,
1 Programming & Programming Languages Overview l Machine operations and machine language. l Example of machine language. l Different types of processor.
1 SD1042: Introduction to Software Development SD1042 Introduction to Software Development SCHOOL OF COMPUTING AND TECHNOLOGY Getting Started MODULE TEAM.
1 Building Java Programs Chapter 1: Introduction to Java Programming These lecture notes are copyright (C) Marty Stepp and Stuart Reges, They may.
public static void main (String[] args)
Concept of Computer Programming November 2, 2011.
Computer Programming 12 Mr. Jean March 3 rd, 2014.
Introduction to Java Tonga Institute of Higher Education.
Introducing Java.
Introduction to Python Dr. Bernard Chen Ph.D. University of Central Arkansas July 9 th 2012
© The McGraw-Hill Companies, 2006 Chapter 1 The first step.
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
Algorithm development. The invention of the computer  Programming language developments: 1. Machine code 2. Assembler  easier to write, debug, and update.
Introduction to Computers and Java Chapter 1.3. A Sip of Java: Outline History of the Java Language Applets A First Java Program Compiling a Java Program.
Session One Introduction. Personal Introduction Role of programmers Robot Examination HUD & HID Uploading Code.
Chapter 1 CSIS-120: Java Intro. What is Programming?  A: It is what makes computer so useful.  The flexibility of a computer is amazing  Write a term.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
Intro and Review Welcome to Java. Introduction Java application programming Use tools from the JDK to compile and run programs. Videos at
Board Activity Find your seat on the seating chart Login – Remember your login is your first initial your last name and the last three numbers of your.
Programming Concept Chapter I Introduction to Java Programming.
Week 1 - Friday.  What did we talk about last time?  Our first Java program.
Fall 2006Slides adapted from Java Concepts companion slides1 Introduction Advanced Programming ICOM 4015 Lecture 1 Reading: Java Concepts Chapter 1.
4-Nov-15 Air Force Institute of Technology Electrical and Computer Engineering Object-Oriented Programming Design Topic 1: The Java Environment Maj Joel.
+ Why program? Java I Fall 2015 Dr. Dwyer. + What do we use computers for? (desert island time – what computing application would you need to have on.
J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition Second Edition D.S. Malik D.S. Malik.
JAVA Practical Creating our first program 2. Source code file 3. Class file 4. Understanding the different parts of our program 5. Escape characters.
A Look at Java. Categorize Java Which paradigm? Which paradigm? Scripting? Scripting? Declarative or procedural? Declarative or procedural? Which generation?
Intro to Programming Web Design ½ Shade Adetoro. Programming Slangs IDE - Integrated Development Environment – the software in which you develop an application.
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
Anatomy of a Java Program. AnotherQuote.java 1 /** A basic java program 2 * 3 Nancy Harris, James Madison University 4 V1 6/2010.
Overview of Java CSCI 392 Day One. Running C code vs Java code C Source Code C Compiler Object File (machine code) Library Files Linker Executable File.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
Java FilesOops - Mistake Java lingoSyntax
Computer Programming A simple example /* HelloWorld: A simple C program */ #include int main (void) { printf (“Hello world!\n”); return.
Computer Science A 1. Course plan Introduction to programming Basic concepts of typical programming languages. Tools: compiler, editor, integrated editor,
ITP 109 Week 2 Trina Gregory Introduction to Java.
Execution ways of program References: www. en.wikipedia.org/wiki/Integrated_development_environment  You can execute or run a simple java program with.
Computer Science I Lab 1 ISMAIL ABUMUHFOUZ | CS 180.
Introduction to programming in java
Computer Programming Your First Java Program: HelloWorld.java.
Basic Concepts: computer, program, programming …
CS210 Intermediate Computing with Data Structures (Java)
Why don’t programmers have to program in machine code?
Lecture 1b- Introduction
The eclipse IDE IDE = “Integrated Development Environment”
Object-Oriented Programming Using Java
Intro to Java.
Java Intro III.1 (Fr Feb 23).
Writing Methods.
Hands-on Introduction to JAVA
Java Intro.
A Java Application public class Hello { public static void main(String [] args) { System.out.println("Hello, World!"); } } public class.
A Java Application public class Hello { public static void main(String [] args) { System.out.println("Hello, World!"); } } public class.
Presentation transcript:

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