I NTRODUCTION TO P ROGRAMMING ICS 3U 1. W HAT I S A P ROGRAM ? A program is a set of instructions that makes the computer do something. There are two.

Slides:



Advertisements
Similar presentations
What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word processor), it must be given the instructions.
Advertisements

compilers and interpreters
In Review JAVA C++ GUIs - Windows Webopedia.com.
CSCE 145: Algorithmic Design I Chapter 1 Intro to Computers and Java Muhammad Nazmus Sakib.
MC697 Object-Oriented Programming Using Java. In this class, we will cover: How the class will be structured Difference between object-oriented programming.
Java.  Java is an object-oriented programming language.  Java is important to us because Android programming uses Java.  However, Java is much more.
Programming Creating programs that run on your PC
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
The Analytical Engine Module 6 Program Translation.
Computers: Tools for an Information Age
Java Server Team 8. Overview What is a Java Server? History Architecture Advantages Disadvantages Current Technologies Conclusion.
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!
Course: Introduction to Computers
CSE 1301 J Lecture 2 Intro to Java Programming Richard Gesick.
L EC. 01: J AVA FUNDAMENTALS Fall Java Programming.
Types of software. Sonam Dema..
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.
Introduction to Programming G50PRO University of Nottingham Unit 1 : Introduction Paul Tennent
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
Chapter 1 Coding Introduction.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
High-level Languages.
UNIVERSITI TENAGA NASIONAL “Generates Professionals” CHAPTER 4 : Part 2 INTRODUCTION TO SOFTWARE DEVELOPMENT: PROGRAMMING & LANGUAGES.
CMSC 202 Computer Science II for Majors Object-Oriented Programming.
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
111 © 2002, Cisco Systems, Inc. All rights reserved.
Sadegh Aliakbary Sharif University of Technology Fall 2012.
Chapter 34 Java Technology for Active Web Documents methods used to provide continuous Web updates to browser – Server push – Active documents.
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
I NTRODUCTION TO P ROGRAMMING ICS 3U 1. W HAT I S A P ROGRAM ? A program is a set of instructions that makes the computer do something. There are two.
Fall 2006Slides adapted from Java Concepts companion slides1 Introduction Advanced Programming ICOM 4015 Lecture 1 Reading: Java Concepts Chapter 1.
Basic of Programming Language Skill Area Computer System Computer Program Programming Language Programmer Translators.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
10/8: Software What is software? –Types of software System software: Operating systems Applications Creating software –Evolution of software development.
CT1513 Introduction To java © A.AlOsaimi.
1 Text Reference: Warford. 2 Computer Architecture: The design of those aspects of a computer which are visible to the programmer. Architecture Organization.
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.
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
A compiler is a computer program that translate written code (source code) into another computer language Associated with high level languages A well.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
 Computer Languages Computer Languages  Machine Language Machine Language  Assembly Language Assembly Language  High Level Language High Level Language.
1 Chapter 1 Programming Languages Evolution of Programming Languages To run a Java program: Java instructions need to be translated into an intermediate.
By: Cheryl Mok & Sarah Tan. Java is partially interpreted. 1. Programmer writes a program in textual form 2. Runs the compiler, which converts the textual.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
Getting Started With Java September 22, Java Bytecode  Bytecode : is a highly optimized set of instructions designed to be executed by the Java.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
Installing Java on a Home machine For Windows Users: Download/Install: Go to downloads html.
Lesson 1 1 LESSON 1 l Background information l Introduction to Java Introduction and a Taste of Java.
1 Introduction Read D&D Sec 1.8; Sec 1.13 THE Java tutorial -
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
Chapter 1 Coding Introduction.
Software Development Environment
Installing Java on a Home machine
Lecture 1b- Introduction
Programming Language Hierarchy, Phases of a Java Program
CSCI-235 Micro-Computer Applications
Lecture 1: Introduction to JAVA
Assembler, Compiler, Interpreter
Installing Java on a Home machine
Chapter 1 Coding Introduction.
Introduction CSC 111.
Programming Languages
Assembler, Compiler, Interpreter
Java History, Editions, Version Features
Reasons To Study Programming Languages
Introduction to Computer Science
Presentation transcript:

I NTRODUCTION TO P ROGRAMMING ICS 3U 1

W HAT I S A P ROGRAM ? A program is a set of instructions that makes the computer do something. There are two ways to supply a program to a computer: 1) Buy a program written by somebody else (Future Shop, Google Play Store, etc.). 2) Write the program yourself! 2

H ISTORY OF P ROGRAMMING Computer circuits are in one of two binary states: on when a signal is present or off when there is no signal present. Accordingly, computer programs are represented in binary (1’s and 0’s) at the lowest level. Called machine code, these strings of 1’s and 0’s are long and difficult to understand! Not only are they difficult to read, but they’re just as tough to write! 3

A SSEMBLY L ANGUAGES As microprocessor development continued in the 1950s, symbolic machine languages called assembly languages came into the scene. Assembly languages allow the programmer to use symbolic commands rather than cryptic binary to accomplish tasks. A program called the assembler t ranslates the source program (written in assembly) into an object program (encoded in binary) which can then be executed by your computer. 4

H IGH -L EVEL L ANGUAGES Problem: Assembly languages are designed to work on certain microprocessors. A program written on one machine will not necessarily work on another. A high-level programming language provides easy-to-use shortcut commands to the programmer with minimal drawbacks. High-level source code needs to be compiled into machine code before execution. The program that does this translation is called a compiler. High- level languages can be compiled to run on the most common types of microprocessor. 5

E XAMPLE P ROGRAM 6

I NTERPRETED LANGUAGES Problem: If I want my software to run on both Windows and Mac, I have to program and compile for two separate platforms! Solution: Interpreted languages An interpreted language uses a program called an interpreter to translate the source code in machine language statement-by-statement – it is not compiled to run on any one particular platform. 7

T HE J AVA P ROGRAMMING L ANGUAGE Released in An interpreted language, Java source code is compiled into Java bytecode. The Java Virtual Machine (JVM) interprets and runs the Java bytecode regardless of the computer architecture. Supports Object-Oriented Programming (OOP), a programming concept that allows us to represent concepts as “objects” which we can instantiate and use. 8

J AVA F UN F ACTS Most Android smartphone apps are written using Java. A large amount of the Android operating system is also written in Java Javascript, commonly used in web-based settings, is nothing like Java. Kind of. The Java syntax is very similar to C/C++. Since Java is platform-independent, it does not permit as much communication with the computer hardware as C/C++. 9

J AVA F UN F ACTS Some argue that Java is not efficient in comparison to C/C++. In Java, you can free up memory by simply not using it anymore. In C/C++, memory must be cleared by the programmer. This allows for stronger control over resources. Java has several classes that programmers can override and manipulate for special uses: Applet - programs that are embedded in other applications (commonly in web pages) Servlets – allows programmers to handle web server requests in a custom manner JavaServer Pages (JSPs) – allow for dynamic webpage creation 10

Q UESTIONS ? 11