Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 2.

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.
Component 4: Introduction to Information and Computer Science Unit 9: Components and Development of Large Scale Systems Lecture 5 This material was developed.
Computer Concepts 5th Edition Parsons/Oja Page 546 CHAPTER 11 Software Engineering Section A PARSONS/OJA Computer Programming.
1 Programming Languages b Each type of CPU has its own specific machine language b But, writing programs in machine languages is cumbersome (too detailed)
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.
1 Chapter-01 Introduction to Computers and C++ Programming.
Introduction to Java CSIS 3701: Advanced Object Oriented Programming.
Introduction to Computer Programming itc-314
Introduction to Information and Computer Science Computer Programming Lecture c This material (Comp4_Unit5c), was developed by Oregon Health and Science.
Computer Hardware and Software Chapter 1. Overview Brief History of Computers Hardware of a Computer Binary and Hexadecimal Numbers Compiling vs. Interpreting.
High-level Languages.
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.
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 Computer Programming Lecture d This material (Comp4_Unit5d) was developed by Oregon Health and Science.
Component 4: Introduction to Information and Computer Science Unit 4: Application and System Software Lecture 3 This material was developed by Oregon Health.
Introduction to C++ Programming Language
1 COMP 3438 – Part II-Lecture 1: Overview of Compiler Design Dr. Zili Shao Department of Computing The Hong Kong Polytechnic Univ.
COP 3330 Notes 1/12. Today's topics Downloading Java and Eclipse Hello World Basic control structures Basic I/O Strings.
Introduction to Information and Computer Science Computer Programming Lecture b This material (Comp4_Unit5b), was developed by Oregon Health and Science.
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.
Tina Deol Anand Patel Ajit Thagad Yvonne Lee Alvin Lee Bill Maloney Kevin Pedra.
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.
CSC 1010 Programming for All Lecture 2 Introduction to Python Some material based on material from Marty Stepp, Instructor, University of Washington.
© 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
Lecture1 Instructor: Amal Hussain ALshardy. Introduce students to the basics of writing software programs including variables, types, arrays, control.
Compilers and Interpreters
Introduction to Information and Computer Science Databases and SQL Lecture d This material (Comp4_Unit6d) was developed by Oregon Health & Science University,
Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components.
Unit 1 Review By: Mr. Jacobs.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
Basic Concepts: computer, program, programming …
Why don’t programmers have to program in machine code?
Lecture 1b- Introduction
CMIT100 Chapter 14 - Programming.
Introduction to programming
Problem Identification
Computational Thinking, Problem-solving and Programming: General Principals IB Computer Science.
PROGRAMMING LANGUAGES
Introduction to Computer Science
Programming Language Hierarchy, Phases of a Java Program
Sections Basic Concepts of Programming
CSCI-235 Micro-Computer Applications
Installing and Using MARIE
and Executing Programs
Mobile Development Workshop
High Level Programming Languages
Installing and Using MARIE
Installing and Using MARIE
ICT Programming Lesson 1:
An Introduction to Programming with C++ Fifth Edition
Programming language translators
Computer Programming (CS101) Lecture-02
Introduction to Computer Science
Presentation transcript:

Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 2 This material was developed by Oregon Health & Science University, funded by the Department of Health and Human Services, Office of the National Coordinator for Health Information Technology under Award Number IU24OC

Unit 5 Objectives a)Define the purpose of programming languages. b)Define the different types of programming languages. c)Explain the continuum of programming languages from machine code and assembly languages through scripting languages and high level structured programming languages. d)Explain the compiling and interpreting process for computer programs. e)Use the following components of programming languages to build a simple program: variables, loops and conditional statements. f)Introduce additional programming concepts such as objects and modularity. Component 4/Unit 5-2 Health IT Workforce Curriculum Version 2.0/Spring

Executing Programs Computers execute machine code Assemblers translate assembly language into machine code How are the higher level languages transformed into machine code? Component 4/Unit 5-2 Health IT Workforce Curriculum Version 2.0/Spring

Compiled Languages Component 4/Unit 5-2 Health IT Workforce Curriculum Version 2.0/Spring 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

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 Component 4/Unit 5-2 Health IT Workforce Curriculum Version 2.0/Spring

Interpreted Languages Component 4/Unit 5-2 Health IT Workforce Curriculum Version 2.0/Spring 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

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) Component 4/Unit 5-2 Health IT Workforce Curriculum Version 2.0/Spring

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 Component 4/Unit 5-2 Health IT Workforce Curriculum Version 2.0/Spring

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 Component 4/Unit 5-2 Health IT Workforce Curriculum Version 2.0/Spring JVM