Lecture 2 Programming life cycle. computer piano analogy Piano + player - computer hardware Musical score/notes - software or program Composer - programmer.

Slides:



Advertisements
Similar presentations
Designing a Program & the Java Programming Language
Advertisements

compilers and interpreters
Dr. Ken Hoganson, © August 2014 Programming in R COURSE NOTES 2 Hoganson Language Translation.
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
Copyright © 2002 W. A. Tucker1 Chapter 1 Lecture Notes Bill Tucker Austin Community College COSC 1315.
Programming Types of Testing.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
LECTURE 1 CMSC 201. Overview Goal: Problem solving and algorithm development. Learn to program in Python. Algorithm - a set of unambiguous and ordered.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
1 Programming & Programming Languages Overview l Machine operations and machine language. l Example of machine language. l Different types of processor.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
1 I.Introduction to Algorithm and Programming Algoritma dan Pemrograman – Teknik Informatika UK Petra 2009.
CS102 Introduction to Computer Programming
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Systems Software & Operating systems
Slide 1 Standard Grade Computing Studies Systems Software.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Programming Lifecycle
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
Robert Crawford, MBA West Middle School.  Explain how the binary system is used by computers.  Describe how software is written and translated  Summarize.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
COMPUTER PROGRAMMING. Computer programming the objective of the module to gain the necessary skills to develop a computer program using one of the high.
CHAPTER 1 INTRODUCTION 1 st Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
CHAPTER 1 INTRODUCTION 1 st semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
C o n f i d e n t i a l 1 Course: BCA Semester: III Subject Code : BC 0042 Subject Name: Operating Systems Unit number : 1 Unit Title: Overview of Operating.
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
1 3. Computing System Fundamentals 3.1 Language Translators.
Intro to Programming Web Design ½ Shade Adetoro. Programming Slangs IDE - Integrated Development Environment – the software in which you develop an application.
CSE:141 Introduction to Programming Faculty of Computer Science, IBA BS-I (Spring 2010) Lecture 2.
CS2301:Computer Programming 2
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
The Hashemite University Computer Engineering Department
Ch 1 - Introduction to Computers and Programming Hardware Terminology Main Memory Auxiliary Memory Drives Writing Algorithms Using Pseudocode Programming.
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
Compilers and Interpreters
1 Types of Programming Language (1) Three types of programming languages 1.Machine languages Strings of numbers giving machine specific instructions Example:
Representation of Data - Instructions Start of the lesson: Open this PowerPoint from the A451 page – Representation of Data/ Instructions How confident.
Chapter 1: Introduction to Computers and Programming.
Intro. to Computer Programming Eng. Nehal A. Mohamed Spring Semester-2016.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Software Engineering Algorithms, Compilers, & Lifecycle.
How does a computer works Hyoungshick Kim Department of Computer Science and Engineering College of Information and Communication Engineering Sungkyunkwan.
Computer Basics.
Chapter 1 Introduction 2nd Semester H
Computer Applications in Business
Programming Languages
Hardware and Software Hardware refers to the physical devices of the computer system e.g. monitor, keyboard, printer, RAM etc. Software is a set of programs,
CSCI-235 Micro-Computer Applications
Computer Programming.
Programming Mehdi Bukhari.
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Compiler Construction
Mobile Development Workshop
Computers: Hardware and Software
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
CS105 Introduction to Computer Concepts Intro to programming
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Chapter 1 Introduction to Programming
1.3.7 High- and low-level languages and their translators
ICS103 Programming in C 1: Overview of Computers And Programming
Programming Logic and Design Eighth Edition
Presentation transcript:

Lecture 2 Programming life cycle

computer piano analogy Piano + player - computer hardware Musical score/notes - software or program Composer - programmer A music box is set with one melody – similar to a microwave's preset computer chip

Algorithm An algorithm is a set of steps to accomplish a task High level language and source code are synonyms. Examples include C, C++, Pascal, Java, COBOL, Fortran, Python … All these languages have very specific syntax. This allows a compiler program to read them and translate them into machine code. Machine code-the final executable file that can be run as an application.

HLL, pseudocode, syntax All High level Languages (HLL) have similar constructs such as a "while" loop, "if then" statements and others. Therefore a programmer often first writes code in Pseudocode. Pseudocode- code that almost source code but cannot be run through a compiler since it does not have the correct syntax. Syntax- the exact proper way a HLL must be written in for a compiler program to work.

Compiler source code machine code Source code is stored in a simple text file machine code is stored in an executable file or an application file. Compiler

Sample pseudocode 2 Registration system in BC. First we will keep all information in two tables (on the hard disk but copied to RAM when the program runs: – The first is a students table that has students � addresses, courses taken or registered for and grades. � – The second is a course database that has the course number, hours, number enrolled and enrollment limit. Enter all courses that will be offered this semester If a new student comes to register enter name into student database For each course a student wants to take – i. If the course is not full, in the course table increment the number enrolled and in the student table enter the course number for that student. – ii. If the course is full inform the student that they would need an overtally.

Sample pseudocode 1 average entered grades prepare the following three variables (a spot in memory to store things): – nstudents- number of grades entered so far, sum-sum of grades so far, avg-average of grades while entered grade from user is still not negative – nstudents = nstudents+1 – read another grade from user – add grade to sum avg=sum/nstudents print avg to the screen