Introduction to Information and Computer Science Computer Programming Lecture b This material (Comp4_Unit5b), was developed by Oregon Health and Science.

Slides:



Advertisements
Similar presentations
Dr. Ken Hoganson, © August 2014 Programming in R COURSE NOTES 2 Hoganson Language Translation.
Advertisements

Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 1.
Introduction to Information and Computer Science Computer Programming Lecture a This material (Comp4_Unit5a) was developed by Oregon Health and Science.
Introduction to Information and Computer Science Computer Programming Lecture e This material (Comp4_Unit5e) was developed by Oregon Health and Science.
Computers: Tools for an Information Age
Programming Languages Structure
1 Programming Languages Translation  Lecture Objectives:  Be able to list and explain five features of the Java programming language.  Be able to explain.
Lecture 2: Do you speak Java?. From Problem to Program Last Lecture we looked at modeling with objects! Steps to solving a business problem –Investigate.
CS 153: Concepts of Compiler Design August 25 Class Meeting Department of Computer Science San Jose State University Fall 2014 Instructor: Ron Mak
Introduction to Information and Computer Science Databases and SQL Lecture b This material (Comp4_Unit6b) was developed by Oregon Health & Science University,
CSE 1301 J Lecture 2 Intro to Java Programming Richard Gesick.
CS190/295 Programming in Python for Life Sciences: Lecture 1 Instructor: Xiaohui Xie University of California, Irvine.
CCSA 221 Programming in C CHAPTER 2 SOME FUNDAMENTALS 1 ALHANOUF ALAMR.
Programming Languages: Telling the Computers What to Do Chapter 16.
Introduction to Information and Computer Science Computer Programming Lecture c This material (Comp4_Unit5c), was developed by Oregon Health and Science.
Introduction to Information and Computer Science Computer Software Lecture c This material (Comp4_Unit4c) was developed by OHSU, funded by the Department.
Introduction to Information and Computer Science Basic Computing Concepts Including History Lecture b This material (Comp4_Unit1b) was developed by Oregon.
Introduction to Information and Computer Science Security Lecture b This material (Comp4_Unit8b) was developed by Oregon Health and Science University,
Introduction to Information and Computer Science Networks Lecture b This material (Comp4_Unit7b) was developed by Oregon Health and Science University,
Introduction to Information and Computer Science Computer Software Lecture b This material (Comp4_Unit4b) was developed by OHSU, funded by the Department.
UNIVERSITI TENAGA NASIONAL “Generates Professionals” CHAPTER 4 : Part 2 INTRODUCTION TO SOFTWARE DEVELOPMENT: PROGRAMMING & LANGUAGES.
General Computer Science for Engineers CISC 106 Lecture 02 Dr. John Cavazos Computer and Information Sciences 09/03/2010.
Introduction to Information and Computer Science Information Systems Lecture b This material (Comp4_Unit9b) was developed by OHSU, funded by the Department.
Introduction to Information and Computer Science Computer Programming Lecture d This material (Comp4_Unit5d) was developed by Oregon Health and Science.
Chapter 1 Introduction Dr. Frank Lee. 1.1 Why Study Compiler? To write more efficient code in a high-level language To provide solid foundation in parsing.
Introduction to Information and Computer Science Information Systems Lecture c This material (Comp4_Unit9c) was developed by OHSU, funded by the Department.
Java Programming Introduction & Concepts. Introduction to Java Developed at Sun Microsystems by James Gosling in 1991 Object Oriented Free Compiled and.
Component 4: Introduction to Information and Computer Science Unit 4: Application and System Software Lecture 3 This material was developed by Oregon Health.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
Copyright © 2007 Addison-Wesley. All rights reserved.1-1 Reasons for Studying Concepts of Programming Languages Increased ability to express ideas Improved.
Lecture 1 Introduction Figures from Lewis, “C# Software Solutions”, Addison Wesley Richard Gesick.
Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 3 This material was developed by Oregon Health & Science.
Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 4.
Component 4: Introduction to Information and Computer Science Unit 9: Components and Development of Large Scale Systems Lecture 3 This material was developed.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
Introduction to Information and Computer Science Information Systems Lecture d This material (Comp4_Unit9d) was developed by OHSU, funded by the Department.
Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 2.
Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 5.
A compiler is a computer program that translate written code (source code) into another computer language Associated with high level languages A well.
Chapter 4 Software. Chapter 4: Software Generations of Languages Each computer is wired to perform certain operations in response to an instruction. An.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
Introduction to Information and Computer Science
Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 3.
Overview Object oriented programming How to run a simple program.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
Introduction to OOP CPS235: Introduction.
Software Development Introduction
Introduction to Information and Computer Science Databases and SQL Lecture d This material (Comp4_Unit6d) was developed by Oregon Health & Science University,
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.
Starting Out With Java 5 Control Structures to Objects By Tony Gaddis Copyright © 2005 Pearson Addison- Wesley. All rights reserved. Chapter 1 Slide #1.
Basic Concepts: computer, program, programming …
Lecture 1b- Introduction
CMIT100 Chapter 14 - Programming.
Introduction to Computer Science
Computational Thinking, Problem-solving and Programming: General Principals IB Computer Science.
Lecture 1 Introduction Richard Gesick.
PROGRAMMING LANGUAGES
Introduction to Computer Science
Programming Language Hierarchy, Phases of a Java Program
CSCI-235 Micro-Computer Applications
Chapter 4 Computer Software.
CS190/295 Programming in Python for Life Sciences: Lecture 1
Mobile Development Workshop
High Level Programming Languages
ICT Programming Lesson 1:
Computer Programming (CS101) Lecture-02
Dasar-Dasar Pemrograman 2: Java Basics
Introduction to Computer Science
Presentation transcript:

Introduction to Information and Computer Science Computer Programming Lecture b This material (Comp4_Unit5b), was developed by Oregon Health and Science University, funded by the Department of Health and Human Services, Office of the National Coordinator for Health Information Technology under Award Number IU24OC000015

Computer Programming Learning Objectives Define the purpose of programming languages. (Lecture a) Differentiate between the different types of programming languages and list commonly used ones. (Lecture a) Explain the compiling and interpreting process for computer programs. (Lecture b) Learn basic programming concepts including variable declarations, assignment statements, expressions, conditional statements, and loops. (Lectures c, d) Describe advanced programming concepts including objects and modularity. (Lecture e) 2 Health IT Workforce Curriculum Version 3.0/Spring 2012 Introduction to Information and Computer Science Computer Programming Lecture b

Executing Programs Computers execute machine code Assemblers translate assembly language into machine code Higher-level languages must be transformed into machine code 3 Health IT Workforce Curriculum Version 3.0/Spring 2012 Introduction to Information and Computer Science Computer Programming Lecture b

Compiled Languages Program written and stored in a file(s) Compiler transforms the program into machine code Machine code is stored in a new file and can be executed 4 Health IT Workforce Curriculum Version 3.0/Spring 2012 Introduction to Information and Computer Science Computer Programming Lecture b (clker.com, nd.); Blueprint image: (R. Thomas, 2001, PD-US)

Compiled Languages, contd. Each type of computer must have its own compiler Every program must be compiled separately for each computer Examples: C, C++, FORTRAN 5 Health IT Workforce Curriculum Version 3.0/Spring 2012 Introduction to Information and Computer Science Computer Programming Lecture b (clker.com, nd., PD-US); Apple logo: (EdibleKarma, 2008, PD-US); Blueprint image: (R. Thomas, 2001, PD-US) Microsoft windows logo: (clker.com, nd., PD-US)

Interpreted Languages Interpreted languages are compiled and executed at the same time Each line is compiled to machine code –If no errors, executes and goes to next line –If errors, program ends 6 Health IT Workforce Curriculum Version 3.0/Spring 2012 Introduction to Information and Computer Science Computer Programming Lecture b (clker.com, nd., PD-US)

Interpreted Languages, contd. The interpreter is unique to each type of computer Any program can be interpreted and run on any computer with an interpreter Many scripting languages are interpreted Examples: –BASIC, Perl, MUMPS (early version) 7 Health IT Workforce Curriculum Version 3.0/Spring 2012 Introduction to Information and Computer Science Computer Programming Lecture b

Hybrid Approach Some languages are compiled to virtual machine code, then interpreted to machine code Combines speed of compiled language with portability of interpreted language Examples: –Java™, Python 8 Health IT Workforce Curriculum Version 3.0/Spring 2012 Introduction to Information and Computer Science Computer Programming Lecture b

Example: Java Java programs are compiled to byte code The Java Virtual Machine (JVM) runs the byte code –JVM unique to each type of computer –Byte code is portable 9 Health IT Workforce Curriculum Version 3.0/Spring 2012 Introduction to Information and Computer Science Computer Programming Lecture b JVM (clker.com, nd., PD-US); Apple logo: (EdibleKarma, 2008, PD-US); Blueprint image: (R. Thomas, 2001, PD-US) Microsoft windows logo: (clker.com, nd., PD-US)

Computer Programming Summary – Lecture b Compiling creates machine code from a program Compilers are unique to each computer architecture Interpreted programs are translated as they execute Java uses a hybrid approach of compiling and interpreting 10 Health IT Workforce Curriculum Version 3.0/Spring 2012 Introduction to Information and Computer Science Computer Programming Lecture b

Computer Programming References – Lecture b References Morley Deborah, Parker Charles S. (2010). Chapter 13: Program Development and Programming Languages. In: Understanding Computers Today and Tomorrow.12 th ed. Boston: Course Technology. Parsons JJ, Oja D. (2010). Chapter 12: Computer Programming. In: New Perspectives on Computer Concepts 2011: Comprehensive. 13th ed. Boston: Course Technology. Programming Languages. (2011). Retrieved 2011 Mar 17 from Wikipedia: Scripting Languages. (2011). Retrieved 2011 Mar 21 from Wikipedia: The Java Language: An Overview. [Webpage]. c [updated 2007 Dec 17; cited 21 March 2011]. Available from: 11 Health IT Workforce Curriculum Version 3.0/Spring 2012 Introduction to Information and Computer Science Computer Programming Lecture b

Computer Programming References – Lecture b Images Slide 4,5, 6, 9: Text document Image [image on the Internet]. c 2007 [Updated 11/13/2007; cited 11/12/2011]. Available from: Slide 4,5, 9: Blueprint Image [image on the Internet]. c 2008 [Updated 12/7/2008; cited 11/12/2011]. Available from: Slide 4, 5, 9: Binary File Image [image on the Internet]. c 2010 [Updated 8/13/2010; cited 11/12/2011]. Available from: Slide 4, 5, 6, 9: Computer Image [image on the Internet]. c 2010 [Updated 6/22/2010; cited 11/12/2011]. Available from: Slide 5, 9: Apple Logo Image [image on the Internet]. c 2008 [Updated 2/27/2008; cited 11/12/2011]. Available from: Slide 5, 9: Microsoft Windows Logo Image [image on the Internet]. c 2007 [Updated 11/13/2007; cited 11/12/2011]. Available from: Slide 9: Java cup Image [image on the Internet]. c 2007 [Updated 11/13/2007; cited 11/12/2011]. Available from: Slide 9: Plain document Image [image on the Internet]. c 2007 [Updated 11/13/2007; cited 11/12/2011]. Available from: 12 Health IT Workforce Curriculum Version 3.0/Spring 2012 Introduction to Information and Computer Science Computer Programming Lecture b