1-1 Logic and Syntax A computer program is a solution to a problem.

Slides:



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

Chapter 2: Basic Elements of C++
Chapter 3 Program Design And Branching Structures.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 1 Welcome everyone to Visual Logic. We will use this book and the next couple of weeks to learn to solve problems, develop a visual representation.
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 2: Input, Processing, and Output
CS101- Lecture 11 CS101 Fall 2004 Course Introduction Professor Douglas Moody –Monday – 12:00-1:40 – – –Web Site: websupport1.citytech.cuny.edu.
CS 1400 Chapter 1 Introduction and Background
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Pseudocode.
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.
Pseudocode.
Chapter 3 Planning Your Solution
The Program Design Phases
Chapter 1: Introduction To Computer | SCP1103 Programming Technique C | Jumail, FSKSM, UTM, 2005 | Last Updated: July 2005 Slide 1 Introduction To Computers.
Chapter Introduction to Computers and Programming 1.
DCT 1123 Problem Solving & Algorithms
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Programming.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
COP1220/CGS2423 Introduction to C++/ C for Engineers Professor: Dr. Miguel Alonso Jr. Fall 2008.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Chapter 3: Completing the Problem- Solving Process and Getting Started with C++ Introduction to Programming with C++ Fourth Edition.
Introduction to Computer Programming Using C Session 23 - Review.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
An Object-Oriented Approach to Programming Logic and Design Chapter 1 An Overview of Computers and Logic.
Pseudocode. Simple Program Design, Fourth Edition Chapter 2 2 Objectives In this chapter you will be able to: Introduce common words, keywords, and meaningful.
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 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley STARTING OUT WITH Python Python First Edition by Tony Gaddis Chapter 2 Input,
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Chapter 1: Introduction to Computers and Programming.
CHAPTER 3 COMPLETING THE PROBLEM- SOLVING PROCESS AND GETTING STARTED WITH C++ An Introduction to Programming with C++ Fifth Edition.
CHAPTER 1 OVERVIEW OF COMPUTER AND PROGRAMMING 1.1 Electronic Computer Then and Now 1.2 Computer Hardware 1.3 Computer Software 1.4 The Software Development.
An Introduction to Programming with C++ Sixth Edition Chapter 8 More on the Repetition Structure.
CIS 115 ALL EXERCISES DEVRY UNIVERSITY (DEVRY)  CIS 115 All Exercises Devry University CIS 115 ALL ILABS DEVRY UNIVERSITY (DEVRY)  CIS 115 All iLabs.
CIS 115 AID Teaching Effectively/cis115aid.com FOR MORE CLASSES VISIT
Chapter 3 IFTHENELSE Control Structure © 2008 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. Marilyn Bohl/Maria Rynn Tools for Structured.
Chapter 1 Introduction 2nd Semester H
Lecture2.
Chapter 3 Program Design
Basics of Computer A Computer is Electronic device that can
Input and Output Upsorn Praphamontripong CS 1110
Introduction to Algorithms
Chapter 2: Input, Processing, and Output
DDC 1023 – Programming Technique
Chapter 2- Visual Basic Schneider
CHAPTER 5A Loop Structure
Chapter 1. Introduction to Computers and Programming
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Computer Organization
Microsoft Visual Basic 2005 BASICS
An Object-Oriented Approach to Programming Logic and Design Fourth Edition Chapter 2 Applications and Data.
Programming Right from the Start with Visual Basic .NET 1/e
Programming Funamental slides
Chapter 2- Visual Basic Schneider
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Chapter 2- Visual Basic Schneider
Lecture3.
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Understand the interaction between computer hardware and software
Chapter 2: Input, Processing, and Output
CHAPTER 6 Testing and Debugging.
Programming Logic and Design Eighth Edition
Computer System.
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

1-1 Logic and Syntax A computer program is a solution to a problem. An algorithm is the logical design used to accomplish a specific objective. The Visual Logic Development System combines the utility of flowcharts and pseudocode with computer simulation.

1-1 Logic and Syntax (cont.) Syntax refers to the specific rules of a programming language. An information system is a combination of people and technology that collect, organize, and process data to produce information.

1-1 Logic and Syntax (cont.) An information system must do at least three things: input data into the system process data within the system output resulting information from the system

1-2 “Hello World”

1-2 “Hello World” (cont.)

1-2 “Hello World” (cont.)

1-3 Input Statements An input statement accepts data from the user and stores that data into a variable. A variable is a storage location that can be accessed and changed by developer code.

1-3 Input Statements (cont.)

1-3 Input Statements (cont.)

Simple Programming Formats

1-4 Weekly Paycheck Program The weekly paycheck program has two input variables: Hours and Rate

1-5 Assignment Statements The assignment statement can be used to perform a calculation and store the result. An expression is a value-returning code element, such as a variable or mathematical formula.

How to Write Arithmetic Expressions

How to Write Arithmetic Expressions (cont.)

Types of output include 1-6 Output Statements Types of output include Screen output Printed output Sound output Saving to storage devices

1-6 Output Statements (cont.)

1-6 Output Statements (cont.)

Intrinsic Functions Intrinsic functions are predefined commands that provide developers with common, helpful functionality.

Intrinsic Functions (cont.)

1-7 Debugging with Visual Logic A programming mistake is often called a bug.

Chapter Summary Variables are storage locations used for holding input and processing information. Each variable has two components: its name and its value. Input statements are used to get data into variables. Expressions are value-returning code elements.

Chapter Summary (cont.) Assignment statements are used to perform calculations and store the result. Output statements are used to display information. Input, assignment, and output statements are sufficient to write small programs.