1 2. Program Construction in Java. 2.00 Programming Fundamentals.

Slides:



Advertisements
Similar presentations
Programming Creating programs that run on your PC
Advertisements

Slides prepared by Rose Williams, Binghamton University Chapter 1 Getting Started 1.1 Introduction to Java.
B-1 Appendix B Information System Software Robert Riordan, Carleton University.
Copyright © 2006 Addison-Wesley. All rights reserved.1-1 ICS 410: Programming Languages Chapter 3 : Describing Syntax and Semantics Operational Semantics.
©2004 Brooks/Cole Chapter 1: Getting Started Sections Covered: 1.1Introduction to Programming 1.2Constructing a Java Program 1.3The print() and println()
Computers: Tools for an Information Age
Chapter 16 Programming and Languages: Telling the Computer What to Do.
CMP 131 Introduction to Computer Programming Violetta Cavalli-Sforza Week 1, Lab.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
SOFTWARE SYSTEMS SOFTWARE APPLICATIONS SOFTWARE PROGRAMMING LANGUAGES.
Copyright © 2001 by Wiley. All rights reserved. Chapter 1: Introduction to Programming and Visual Basic Computer Operations What is Programming? OOED Programming.
9-Aug-15 Vocabulary. Programming Vocabulary Watch closely, you might even want to take some notes. There’s a short quiz at the end of this presentation!
1 CS101 Introduction to Computing Lecture 19 Programming Languages.
C++ Crash Course Class 1 What is programming?. What’s this course about? Goal: Be able to design, write and run simple programs in C++ on a UNIX machine.
Computers: Software Patrice Koehl Computer Science UC Davis.
Lesson 4 Computer Software
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Chapter 1 Coding Introduction.
Programming Languages: Telling the Computers What to Do Chapter 16.
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
Learning Objectives Data and Information Six Basic Operations Computer Operations Programs and Programming What is Programming? Types of Languages Levels.
High-level Languages.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
Higher Grade Computing Studies 2. Languages and Environments Higher Computing Software Development S. McCrossan 1 Classification of Languages 1. Procedural.
1 Computing Software. Programming Style Programs that are not documented internally, while they may do what is requested, can be difficult to understand.
Python Mini-Course University of Oklahoma Department of Psychology Day 2 – Lesson 6 Program Design 4/18/09 Python Mini-Course: Day 2 - Lesson 6 1.
DEPARTMENT OF COMPUTER SCIENCE & TECHNOLOGY FACULTY OF SCIENCE & TECHNOLOGY UNIVERSITY OF UWA WELLASSA 1 CST 221 OBJECT ORIENTED PROGRAMMING(OOP) ( 2 CREDITS.
CS101 Introduction to Computing Lecture Programming Languages.
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
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.
Lecture :2 1.  DEFENTION : Java is a programming language expressly designed for use in the distributed environment of the Internet. It was designed.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
1 Programming Fundamentals AITI-GP. 2 Introduction to Programming.
CPRG 215 Introduction to Object-Oriented Programming with Java Module 1-Introduction to Java Topic 1.1 Basics of Java Produced by Harvey Peters, 2008 Copyright.
The Teacher Computing Computer Languages [Computing]
Chapter 1 Section 1.1 Introduction to Java Slides prepared by Rose Williams, Binghamton University Kenrick Mock, University of Alaska Anchorage.
What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable,
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 4 Computer Software.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
Computer Programming 2 Why do we study Java….. Java is Simple It has none of the following: operator overloading, header files, pre- processor, pointer.
I Power Higher Computing Software Development Development Languages and Environments.
Computing System Fundamentals 3.1 Language Translators.
1 3. Computing System Fundamentals 3.1 Language Translators.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
Web Programming Overview. Introduction HTML is limited - it cannot manipulate data How Web pages are extended (include): –Java: an object-oriented programming.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
Program Design. Simple Program Design, Fourth Edition Chapter 1 2 Objectives In this chapter you will be able to: Describe the steps in the program development.
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
OCR A Level F453: The function and purpose of translators Translators a. describe the need for, and use of, translators to convert source code.
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 15: Java Basics Fundamentals of Web Programming.
Programming Languages Concepts Chapter 1: Programming Languages Concepts Lecture # 4.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Java Programming Fifth Edition Chapter 1 Creating Your First Java Classes.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
Chapter 1 Coding Introduction.
Applications Active Web Documents Active Web Documents.
Topic 2: Hardware and Software
Component 1.6.
CSCI-235 Micro-Computer Applications
Key Ideas from day 1 slides
Java programming lecture one
Chapter 1 Coding Introduction.
CMP 131 Introduction to Computer Programming
A programming language
Lecture 8 Programming Paradigm & Languages. Programming Languages The process of telling the computer what to do Also known as coding.
WJEC GCSE Computer Science
Presentation transcript:

1 2. Program Construction in Java

2.00 Programming Fundamentals

3 Topic 2 Part 0??????? Get used to it. Computer scientists start counting at zero.

4 What is a program? A list of instructions telling the computer what to do. It must be precise and its semantics and syntax, (logic and grammar/spelling) must be correct if translation into machine code is to succeed.

5 Why Java? Java has these advantages over other languages: ‣ it is a high-level programming language (closer to human language than machine code); ‣ it is event-driven (it can respond to user mouse clicks and key presses);

6 Why Java? ‣ programs can come as two types: applications (run on their own) and applets (run in a web browser, making Java very web user-friendly); ‣ executables in other languages have too much access to the system and can't be trusted - the sandboxing in Java means it is difficult to write a virus or crash the whole system;

7 Why Java? ‣ it is effectively a platform in itself and so is platform-independent (programs will run on Windows, Macs, Linux, etc.) - the Java compiler actually creates byte code which is standard and will be converted to the machine's native machine code at run time;

8 Why Java? ‣ it is simpler than other languages, so easier to learn, so fewer bugs and bugs are easier to spot; ‣ it is object-oriented which makes it easier to conceive and work with GUI (window- based) interfaces;

9 Why Java? ‣ it is multithreaded, meaning programs can run several tasks simultaneously, (as can Windows of course), unlike older style procedural programs; ‣ the different files (classes) of a Java project are independent but dynamically linked so they can use each other automatically when required;

10 Why Java? ‣ memory allocation is more efficient than in other languages (Java uses what is called garbage collection to liberate memory that is no longer needed); and ‣ the IBO says we must!

11 Java’s reserved words Some words, called keywords, e.g. class, true are reserved by Java. This means you cannot use them for your own purposes e.g as a variable name.

12 Pseudocode An artificial simplified programming ‘language’ used to describe algorithms without using the rules of any particular programming language. During the development of an algorithm, pseudocode often contains sections of natural language that will be replaced later.