James Tam Creating Actual Computer Programs This section of notes describes how a computer program written by a person is translated to a form that can.

Slides:



Advertisements
Similar presentations
An Introduction to Programming By :- Vishal Hirani B.Tech II year (CSE)
Advertisements

Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
CS105 INTRODUCTION TO COMPUTER CONCEPTS INTRO TO PROGRAMMING Instructor: Cuong (Charlie) Pham.
Introduction to Programming CSCE 110 Drawn from James Tam’s material.
Chapter 1: Introduction
James Tam Introduction to CPSC 233 CPSC 233: Introduction to Computers II Object-oriented programming The "nuts and bolts" of programming Object-oriented.
James Tam Getting Started With Pascal Programming How are computer programs created What is the basic structure of a Pascal Program Variables in Pascal.
James Tam A High-Level Model For Software Development What is involved in the process of designing, writing and maintaining computer programs?
James Tam Getting Started With Pascal Programming How are computer programs created What is the basic structure of a Pascal Program Variables and constants.
James Tam Getting Started With Pascal Programming How are computer programs created What is the basic structure of a Pascal Program Variables and constants.
Getting Started With Pascal Programming
James Tam Getting Started With Pascal Programming How are computer programs created What is the basic structure of a Pascal Program Variables and constants.
Introduction to Programming
James Tam Getting Started With Pascal Programming How are computer programs created What is the basic structure of a Pascal Program Variables and constants.
Programming Concepts and Languages Chapter 12 – Computers: Understanding Technology, 3 rd edition 1November
CH07: Writing the Programs Does not teach you how to program, but point out some software engineering practices that you should should keep in mind as.
Welcome In The World Of ‘C’.  TEXT BOOK: Programming in ANCI ‘C By: E Balagurusamy. TMH  Reference Books: 1) The ‘C Programming Language By: Kernighan.
Chapter 1 Introduction. Goal to learn about computers and programming to compile and run your first Java program to recognize compile-time and run-time.
UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable.
Introduction to Programming David Goldschmidt, Ph.D. Computer Science The College of Saint Rose Java Fundamentals (Comments, Variables, etc.)
Programming With C.
Documentation and Comments. What’s a comment? A comment is a simple form of documentation. Documentation is text that you the programmer write to explain.
/* Documentations */ Pre process / Linking statements Global declarations; main( ) { Local Declarations; Program statements / Executable statements; }
Sharda University P. K. Mishra (Asst.Prof) Department of Computer Science & Technology Subject Name: Programming Using C Sub Code: CSE-106 Programming.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
Object-Oriented Program Development Using Java: A Class-Centered Approach, Enhanced Edition.
The Programming Process Define the problem* Make or buy software? Design the program * Code (write) the program Test (debug) the program Document the.
Algorithms  Problem: Write pseudocode for a program that keeps asking the user to input integers until the user enters zero, and then determines and outputs.
DOCUMENTATION SECTION GLOBAL DECLARATION SECTION
Introduction to programming Carl Smith National Certificate Year 2 – Unit 4.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
IBM-Mainframes COBOL Class-1. Background and History  COBOL is an acronym for: Common Business Oriented Language  COBOL was developed in 1959 by the.
 Computer Languages Computer Languages  Machine Language Machine Language  Assembly Language Assembly Language  High Level Language High Level Language.
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.
Introducing Java Chapter 3 Review. Why Program in Java? Java, is an object-oriented programming language. OOP languages evolved out of the need to better.
Compilers and Interpreters
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
Introduction to Computer Programming using Fortran 77.
INTRODUCTION TO COMPUTER PROGRAMMING(IT-303) Basics.
Introduction to Problem Solving Programming is a problem solving activity. When you write a program, you are actually writing an instruction for the computer.
Programming Languages Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
C++ Programming Chapter 1 Programming & Programs.
Computer Programming - Key Concepts and Terms Computer Program – A computer program is a set of instructions for computer, arranged in logical order, using.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
What Do Computers Do? A computer system is
Why don’t programmers have to program in machine code?
Assembler, Compiler, MIPS simulator
Component 1.6.
Computational Thinking, Problem-solving and Programming: General Principals IB Computer Science.
CSCI-235 Micro-Computer Applications
C Programming Hardik H. Maheta.
Algorithms Problem: Write pseudocode for a program that keeps asking the user to input integers until the user enters zero, and then determines and outputs.
History of ‘C’ Root of the morden language is ALGOL It’s first
Programming Concepts and Languages
An Introduction to Visual Basic .NET and Program Design
Welcome In The World Of ‘C’.  TEXT BOOK: Programming in ANSI ‘C By: E Balagurusamy. TMH  Reference Books: 1) The ‘C Programming Language By: Kernighan.
Translators & Facilities of Languages
Assembler, Compiler, Interpreter
Hands-On Ethical Hacking and Network Defense
Introduction CSC 111.
Creating your first C program
CS105 Introduction to Computer Concepts Intro to programming
The Programming Process
Assembler, Compiler, Interpreter
A programming language
CS 1111 Introduction to Programming Spring 2019
CS105 Introduction to Computer Concepts Intro to programming
SPL – PS1 Introduction to C++.
Presentation transcript:

James Tam Creating Actual Computer Programs This section of notes describes how a computer program written by a person is translated to a form that can be understood by a computer. Also you learn about the basic structure of Pascal programs.

James Tam Creating Computer Programs: What You Know Specify the algorithm (pseudo-code and Flowcharts)

James Tam Creating Computer Programs: What You Will Learn Specify the algorithm (e.g., pseudo-code And Flowcharts) Write the program in a programming language e.g., Pascal, Basic, C++, Java etc. Translated by programmer

James Tam Creating Computer Programs: What You Will Learn (2) Specify the algorithm (e.g., pseudo-code And Flowcharts) Write the program in a programming language e.g., Pascal, Basic, C++, Java etc. Translated by a computer program (translator) Produce a Machine-understandable Program i.e., machine language

James Tam Translators Convert computer programs to machine language Types 1)Interpreters 2)Compilers

James Tam Compiling Programs On The CPSC Network: Basic View anything.p Pascal program a.out Machine language program gpc Pascal compiler

James Tam Compiling Programs On Different Operating Systems Pascal program Solaris compiler a.out (Solaris) Windows compiler a.out (Windows) AmigaDOS compiler a.out (AmigaDOS)

James Tam Components Of Computer Programs Headers Program name, version number, date last modified, what program does One form of documentation – comments for the reader of the program (not the computer): (*Marks the beginning of the documentation *)Marks the end of the documentation Declarations List of variables Statements The instructions in the program that actually gets stuff done Each statement is separated by a semicolon ";" Reminder: The filename for Pascal program must end with dot-p, ".p".

James Tam The Smallest Pascal Program (* The smallest compilable Pascal program written by James Tam *) program smallest begin end. Note: The name "smallest" should match the filename "smallest.p". You can find an online version of this program in the Unix file system under /home/231/examples/intro/smallest.p

James Tam Summary How is a computer program translated into a machine- understandable form What is the basic structure of a Pascal program What are the fundamental parts of Pascal programs