HELLO WORLD program in COBOL - CIS12 Please use speaker notes for additional information!

Slides:



Advertisements
Similar presentations
compilers and interpreters
Advertisements

Write a program step by step. Step 1: Problem definition. Given the coordinate of two points in 2-D space, compute and print their straight distance.
Coding and Debugging. Requirements and Specification Recall the four steps of problem solving: Orient, Plan, Execute, Test Before you start the implementation.
This set of slides is provided by the author of the textbook1 Introductory Topics l Computer Programming l Programming Life-Cycle Phases l Creating an.
Program Flow Charting How to tackle the beginning stage a program design.
COBOL for the 21 st Century Stern, Stern, Ley Chapter 1 INTRODUCTION TO STRUCTURED PROGRAM DESIGN IN COBOL.
FIGURE 1-1 A Computer System
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
1 Chapter Two Introduction to the Programming Language C.
Marlene Galea.  The JDK (Java Development Kit)  An IDE (Integrated Development Environment) ◦ Different IDEs include:  JCreator  NetBeans  BlueJ.
Downloading a COBOL program from CIS12 site! Please use speaker notes for additional information!
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Intro. to Game Programming Want to program a game?
Structured COBOL Programming, Stern & Stern, 9th edition
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
Chapter To familiarize you with  Why COBOL is a popular business-oriented language.  Programming practices and techniques  History of COBOL.
Introduction to Python
Slide 1 Standard Grade Computing Studies Systems Software.
Hello World 2 What does all that mean?.
® Microsoft Access 2010 Tutorial 11 Using and Writing Visual Basic for Applications Code.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Modifications to program Addda.cbl Please use speaker notes for additional information!
What is a Computer? An, electrical machine, that can be programmed to accept data (input), process it into useful information (output) and store it away.
Chapter 5 Using Data and COBOL Operators. Initializing Variables When you define a variable in WORKING- STORAGE, you also can assign it an initial value.
Programming Examples to Accompany Structure Topic Please use speaker notes for additional information!
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
Visual C++ Programming: Concepts and Projects
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,
COP 3330 Notes 1/12. Today's topics Downloading Java and Eclipse Hello World Basic control structures Basic I/O Strings.
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
Array - adding to array at run time Please see speaker notes for additional information!
Programming Fundamentals. Today’s Lecture Why do we need Object Oriented Language C++ and C Basics of a typical C++ Environment Basic Program Construction.
Open a editor Write/Type the program Save the program with “.c” extension Compile the program (alt + F9) Run/Execute the program (ctrl + F9) Check the.
The LC-3 – Chapter 7 COMP 2620 Dr. James Money COMP
1 C++ Programming Basics Chapter 1 Lecture CSIS 10A.
I Power Higher Computing Software Development Development Languages and Environments.
Stored Procedures. Definition a stored procedure is a set of Structured Query Language (SQL) statements with an assigned name that's stored in the database.
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
1 3. Computing System Fundamentals 3.1 Language Translators.
Chapter 4 Software. Chapter 4: Software Generations of Languages Each computer is wired to perform certain operations in response to an instruction. An.
IBM-Mainframes COBOL Class-1. Background and History  COBOL is an acronym for: Common Business Oriented Language  COBOL was developed in 1959 by the.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Introduction to Python Dr. José M. Reyes Álamo. 2 Three Rules of Programming Rule 1: Think before you program Rule 2: A program is a human-readable set.
All sections to appear here Welcome to my pptPlex Slide Show, this can be executed in either two ways: 1.As a normal PowerPoint slide show: Example hit.
You will need Dev C++ to help you with this project. If you do not already have this programming tool on your device you can visit
How to Execute first program in Borland C++. Install Borland C++ Download Borland C++ from LMS – rland%20C++%20V3.1.ziphttp://vulms.vu.edu.pk/Courses/CS609/Downloads/Bo.
Myrtle Entertainment System Scanner How to work your way to installing a program via Myrtle Entertainment System Scanner.
The Functions and Purposes of Translators Translators, Interpreters and Compilers - High Level Languages.
The Functions and Purposes of Translators Translators, Interpreters and Compilers - High Level Languages.
General Introduction Algorithms. Let’s write a program  A program is a collection of statements written in a language the computer understands.  A computer.
Representation of Data - Instructions Start of the lesson: Open this PowerPoint from the A451 page – Representation of Data/ Instructions How confident.
Subroutines (PrArith, Math,projCP1, PrAdrProc, PrAdrProcFunc) Please use speaker notes for additional information!
Chapter 1: Introduction to Computers and Programming.
Chapter 6 Testing and running a solution. Errors X Three types Syntax Logic Run-time.
Software Engineering Algorithms, Compilers, & Lifecycle.
Introducing Python 3 Introduction to Python. Introduction to Python L1 Introducing Python 3 Learning Objectives Know what Python is and some of the applications.
Software Development Languages and Environments. Computer Languages Just as there are many human languages, there are many computer programming languages.
Computer Basics.
Problem Identification
Hello World 2 What does all that mean?.
Computer Programming Machine and Assembly.
An Introduction to Structured Program Design in COBOL
1. Open Visual Studio 2008.
Using screens and adding two numbers - addda.cbl
1.3.7 High- and low-level languages and their translators
Presentation transcript:

HELLO WORLD program in COBOL - CIS12 Please use speaker notes for additional information!

Hello World To load MicroFocus COBOL after it has been installed on your computer, go to Programs, Personal COBOL, Personal COBOL. COBOL will load.

Hello World I keyed in the lines of the program and saved it using File, Save As… The name I gave the file is hello.cbl. This slide talks about the IDENTIFICATION DIVISION & ENVIRONMENT DIVISION.

This slide talks about the DATA DIVISION. Hello World In memory, there will be a one character area called GET-ANS where the user response will be stored. GET-ANS

Hello World The code for the PROCEDURE DIVISION.

Hello World Select Compile Program to test the program and if it is correct turn it into machine language.

Hello World - after successful compile

ERROR: Command/verb DISPLAY written as DSPLAY. Hello World - compile error

This time I put a period after GET-ANS before the PIC X. This meant that the PIC made no sense and the GET-ANS field had a problem because it needed a PIC.

Hello World - compile error

Hello World - fix compile error Error has been corrected.

Hello World - execute Select Open for execution when you want to run your program.

Hello World - open for execution Click on hello.int to select it for execution and then click OK.

Hello World - executing Hello.int is now open and shown on the screen. Compile/Run followed by Run will execute the program.

Hello World - executing

Hello World - execute

Hello World - source program loaded