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

Slides:



Advertisements
Similar presentations
Agenda Definitions Evolution of Programming Languages and Personal Computers The C Language.
Advertisements

Introduction to Information and Computer Science Computer Programming Lecture a This material (Comp4_Unit5a) was developed by Oregon Health and Science.
CS105 INTRODUCTION TO COMPUTER CONCEPTS INTRO TO PROGRAMMING Instructor: Cuong (Charlie) Pham.
Software. What Is Software? software –Also called Computer programs –Are a list of instructions –Instructions are called code –CPU performs the instructions.
Programming Creating programs that run on your PC
Programming Languages Language Design Issues Why study programming languages Language development Software architectures Design goals Attributes of a good.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Overview of Programming Paradigms
Computers: Tools for an Information Age
Program Flow Charting How to tackle the beginning stage a program design.
Program Flow Charting How to tackle the beginning stage a program design.
Programming Languages Structure
An Introduction to Programming with C++ Fifth Edition Chapter 1 An Introduction to Programming.
1414 CHAPTER PROGRAMMING AND LANGUAGES. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved Competencies Describe the six steps of programming.
Programming Concepts and Languages Chapter 12 – Computers: Understanding Technology, 3 rd edition 1November
Introduction to Programming Prof. Rommel Anthony Palomino Department of Computer Science and Information Technology Spring 2011.
History of Programming Languages
Programming Languages – Coding schemes used to write both systems and application software A programming language is an abstraction mechanism. It enables.
Program development & programming languages Chapter 13.
Programming Languages CPS120: Introduction to Computer Science Lecture 5.
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
Alexandria University Faculty of Science Computer Science Department Introduction to Programming (CS 102) C++ Programminhg.
UNIVERSITI TENAGA NASIONAL “Generates Professionals” CHAPTER 4 : Part 2 INTRODUCTION TO SOFTWARE DEVELOPMENT: PROGRAMMING & LANGUAGES.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
COMPUTER PROGRAMS AND LANGUAGES Chapter 4. Developing a computer program Programs are a set (series) of instructions Programmers determine The instructions.
CHAPTER 1: INTRODUCTION TO COMPUTER SCIENCE Introduction to Computer Science Using Ruby (c) 2012 Ophir Frieder et al.
Introduction to Information and Computer Science Computer Programming Lecture b This material (Comp4_Unit5b), was developed by Oregon Health and Science.
Computer Programs and Programming Languages What are low-level languages and high-level languages? High-level language Low-level language Machine-dependent.
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.
Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 2.
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 5.
Component 4: Introduction to Information and Computer Science Overview of Programming Languages, Including Basic Programming Concepts.
Programming Languages
Chapter 14 Programming and Languages McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved.
Alexandria University Faculty of Science Computer Science Department Introduction to Programming C++
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
Chapter 1: Introduction to Computers and Programming.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Software Engineering Algorithms, Compilers, & Lifecycle.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
Programming Languages and Data Organization
The language focusses on ease of use
CMIT100 Chapter 14 - Programming.
Basic 1960s It was designed to emphasize ease of use. Became widespread on microcomputers It is relatively simple. Will make it easier for people with.
Programming Languages
Computer Programming (BCT 1113)
Lecture 1 Introduction Richard Gesick.
Introduction to Computer Science
CSCI-235 Micro-Computer Applications
Computer Programming.
Principles of Programming I (CIE 105)
Programming Concepts and Languages
Chapter 4 Computer Software.
Developing Applications
TRANSLATORS AND IDEs Key Revision Points.
Software Programming J. Holvikivi 2014.
Chapter 1 Introduction(1.1)
CS105 Introduction to Computer Concepts Intro to programming
ICT Programming Lesson 1:
An Introduction to Programming with C++ Fifth Edition
Compilers Principles, Techniques, & Tools Taught by Jing Zhang
CS105 Introduction to Computer Concepts Intro to programming
Presentation transcript:

Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 1 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. Health IT Workforce Curriculum Version 2.0/Spring Component 4/Unit 5-1

Programming Languages Specify commands for a computer to perform –Syntax –Keywords –Punctuation Create programs Pre-date computers –Jacquard looms –Player pianos 3 Component 4/Unit 5-1 Health IT Workforce Curriculum Version 2.0/Spring 2011

Software All software that runs on a computer is a program Written using a programming language Many different languages available Software can be small programs or large, complex ones Operating system Word processing program Simple utility Health IT Workforce Curriculum Version 2.0/Spring Component 4/Unit 5-1

Software Development Process by which applications are created Multiple step and iterative –Planning/exploratory phase –Analysis/requirements gathering –Design –Implementation –Deployment and maintenance 5 Component 4/Unit 5-1 Health IT Workforce Curriculum Version 2.0/Spring 2011

Programming Development Problem statement Determine algorithm Code/implement algorithm Test and debug Deploy 6 Component 4/Unit 5-1 Health IT Workforce Curriculum Version 2.0/Spring 2011

Algorithms Set of steps that defines how a task is performed The computer program implements an algorithm Algorithm development occurred long before computers! 7 Component 4/Unit 5-1 Health IT Workforce Curriculum Version 2.0/Spring 2011

Algorithm Example #1 Making a peanut butter and jelly sandwich –Get the ingredients & tools –Spread peanut butter on one slice –Spread jelly on other slice –Place two slices together 8 Component 4/Unit 5-1 Health IT Workforce Curriculum Version 2.0/Spring 2011

Algorithm Example #2 Making a peanut butter and jelly sandwich –Get the ingredients & tools Two slices of bread Peanut Butter Jelly Knife –Spread peanut butter on one slice Dip knife into peanut butter Remove knife, collecting peanut butter Place knife peanut butter side down on bread Swirl knife to spread peanut butter –Spread jelly on other slice –Place two slices together 9 Component 4/Unit 5-1 Health IT Workforce Curriculum Version 2.0/Spring 2011

Algorithm Uses Describes problem solution without the programming syntax –Pseudocode –Flow charts Plan solution BEFORE programming Can determine/prove –Correctness –Time –Storage 10 Component 4/Unit 5-1 Health IT Workforce Curriculum Version 2.0/Spring 2011

Coding Programs/programming statements are also called code Writing programs is called coding Choices for programming languages: –Functionality of program –Where it’s going to run –What’s available 11 Component 4/Unit 5-1 Health IT Workforce Curriculum Version 2.0/Spring 2011

Categories of Programming Languages First Generation Machine code (1s and 0s) Second Generation Assembly language Words describe commands Third Generation FORTRAN, BASIC, C, Java Adds symbols to commands Fourth Generation SQL Powerful, complex commands Fifth Generation Prolog, visual programming Health IT Workforce Curriculum Version 2.0/Spring Component 4/Unit 5-1 Low Level Languages High Level Languages

Machine Code Each computer has an instruction set –Set of tasks computer can do –Unique sequence of 0s and 1s Applications are groups of instructions Programmers used to program in 0s and 1s –Switches –Punched cards 13 Component 4/Unit 5-1 Health IT Workforce Curriculum Version 2.0/Spring 2011

Assembly Language Use words to represent instructions Translate assembly code into machine code Unique to each computer, just as machine code is specific to each computer.MODEL Small.STACK 100h.DATA db msg 'Hello, world!$'.CODE start: mov ah, 09h lea dx, msg ; or mov dx, offset msg int 21h mov ax,4C00h int 21h end start 14 Health IT Workforce Curriculum Version 2.0/Spring 2011 Component 4/Unit 5-1

Third Generation Languages The next generation of languages added operations –No longer unique to computer –Programs more portable Modern programming languages are third generation –FORTRAN, COBOL, C, C++, C#, Java, VB.Net 15 Component 4/Unit 5-1 Health IT Workforce Curriculum Version 2.0/Spring 2011

Programming Paradigms Procedural –BASIC, COBOL, FORTRAN, C Functional –LISP, Scheme Object Oriented –C++, C#, Java, Ruby Others 16 Component 4/Unit 5-1 Health IT Workforce Curriculum Version 2.0/Spring 2011

Scripting Languages Languages that control other applications –Batch control—shell scripts –Web browsers—javascript –Text processing—Perl Some have evolved for general application development –Perl, Python 17 Component 4/Unit 5-1 Health IT Workforce Curriculum Version 2.0/Spring 2011

Some Languages Specifically Designated for Health Care MUMPS (Massachusetts General Hospital Utility Multi-Programming System, Neil Pappalardo first developed in ‘60s, standardized in 1977) MIIS (Proprietary implementation of MUMPS, 1969) MAGIC (MEDITECH Corp – founder N. Pappalardo, 1982) 18 Component 4/Unit 5-1 Health IT Workforce Curriculum Version 2.0/Spring 2011

Programming Language Continuum 19 Component 4/Unit 5-1 Health IT Workforce Curriculum Version 2.0/Spring 2011 Machine Code Assembly C++C Java BASIC, MUMPS Python, Ruby Low Level LanguagesHigh Level Languages Difficult for humans to understandEasy for humans to understand