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.

Slides:



Advertisements
Similar presentations
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Advertisements

Lecture 1: Overview of Computers & Programming
Overview of Programming and Problem Solving ROBERT REAVES.
Chapter 1: An Overview of Computers and Programming Languages
Overview. What is Computer Programming? It is the process of planning a sequence of steps (called instructions) for a computer to follow. 2 STEP 1 STEP.
Computer Science-I (CSIT121) Dr. Junaid Ahmed Zubairi SUNY at Fredonia Room 210, Fenton ,
1 Chapter 1 Introduction to Object-Oriented Programming.
1 Chapter 1 Overview of Programming and Problem Solving Dale/Weems Slides based on work by Sylvia Sorkin, Community College of Baltimore County - Essex.
Chapter 1 Introduction to Object- Oriented Programming and Problem Solving.
Chapter 16 Programming and Languages: Telling the Computer What to Do.
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
1 Chapter 1 Overview of Programming and Problem Solving Dale/Weems/Headington Slides by Sylvia Sorkin, Community College of Baltimore County - Essex Campus.
CHAPTER 1: AN OVERVIEW OF PROGRAMMING INSTRUCTOR: MOHAMMAD MOJADDAM How to Program in C++
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages Updated by: Dr\Ali-Alnajjar.
CS 115 Chapter 1 Overview of Programming and Problem Solving.
CHAPTER 1 AN OVERVIEW OF COMPUTERS AND PROGRAMMING LANGUAGES.
1 Chapter 1 Overview of Programming and Problem Solving Slides based on work by Sylvia Sorkin, Community College of Baltimore County - Essex Campus.
1 Author: Nell Dale Chip Weems Mark Headington Published By Higher Education Press Jones and Bartlett Publishers.
1 Chapter-01 Introduction to Computers and C++ Programming.
1 Chapter 1 Overview of Programming and Problem Solving Dale/Weems Slides based on work by Sylvia Sorkin, Community College of Baltimore County - Essex.
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
CHAPTER 1 Overview of Programming and Problem Solving.
Programming Lifecycle
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
1 Overview of Programming and Problem Solving Chapter 1.
Overview of Programming and Problem Solving. Objectives In this chapter you will: Learn about different types of computers Explore the hardware and software.
Introduction to C++ Programming Language
Chapter 1: An Overview of Computers and Programming Languages
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 1- 1 October 20, October 20, 2015October 20, 2015October 20,
Overview of Programming and Problem Solving Textbook Chapter 1 1.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
1 Chapter 1 Overview of Programming and Problem Solving Dale/Weems/Headington.
Chapter 1 Overview of Programming and Problem Solving Slides based on work by Sylvia Sorkin, Community College of Baltimore County - Essex Campus.
Lecture 11: 10/1/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.
Chapter 1 Overview of Programming and Problem Solving 1.
1 Chapter 1 Overview of Programming and Problem Solving Dale/Weems Slides based on work by Sylvia Sorkin, Community College of Baltimore County - Essex.
1 Chapter 1 Overview of Programming and Problem Solving Slides based on work by Sylvia Sorkin, Community College of Baltimore County - Essex Campus.
CSE:141 Introduction to Programming Faculty of Computer Science, IBA BS-I (Spring 2010) Lecture 2.
Programming in C++ Dale/Weems/Headington Chapter 1 Overview of Programming and Problem Solving.
Chapter 1 Overview of Programming and Problem Solving CS185/09 - Introduction to Programming Caldwell College.
Introduction to programming Carl Smith National Certificate Year 2 – Unit 4.
1 Chapter 1 Programming Languages Evolution of Programming Languages To run a Java program: Java instructions need to be translated into an intermediate.
1 Overview of Programming Principles of Computers.
Chapter 1 An Overview of Computers and Programming Languages.
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
INTRODUCTION TO COMPUTER PROGRAMMING(IT-303) Basics.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
1 Structured Programming Arab Academy for Science and Technology CC112 Dr. Sherif Mohamed Tawfik The Course.
Software Engineering Algorithms, Compilers, & Lifecycle.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
1 Chapter 1 Overview of Programming and Problem Solving Slides based on work by Sylvia Sorkin, Community College of Baltimore County - Essex Campus.
Chapter 1: An Overview of Computers and Programming Languages
Sections Basic Concepts of Programming
CSCI-235 Micro-Computer Applications
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1 Overview of Programming and Problem Solving
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design
SOFTWARE DESIGN & DEVELOPMENT
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1 Overview of Programming and Problem Solving
Chapter 1 Introduction(1.1)
What is Computer Programming?
Chapter 1: An Overview of Computers and Programming Languages
Presentation transcript:

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 Algorithm l Machine Language vs. High Level Languages l Compilation and Execution Processes l C++ History l Computer Components l Problem-Solving Techniques

This set of slides is provided by the author of the textbook2 What is Computer Programming? It is the process of planning a sequence of steps (called instructions) for a computer to follow. STEP 1 STEP 2 STEP 3...

This set of slides is provided by the author of the textbook3 Programming Life Cycle Phases 1 Problem-Solving 2 Implementation 3 Maintenance

This set of slides is provided by the author of the textbook4 Problem-Solving Phase ANALYZE the problem and SPECIFY what the solution must do develop a GENERAL SOLUTION (ALGORITHM) to solve the problem VERIFY that your solution really solves the problem

This set of slides is provided by the author of the textbook5 Sample Problem A programmer needs an algorithm to determine an employee’s weekly wages. How would the calculations be done by hand?

This set of slides is provided by the author of the textbook6 One Employee’s Wages In one week an employee works 52 hours at the hourly pay rate of $ Assume a 40.0 hour normal work week and an overtime pay rate factor of 1.5 What are the employee’s wages? 40 x $ = $ x 1.5 x $ = $ ___________ $

This set of slides is provided by the author of the textbook7 If hours are more than 40.0, then wages = (40.0 * payRate) + (hours ) * 1.5 *payRate otherwise, wages = hours * payRate Weekly Wages, in General RECALL EXAMPLE ( 40 x $ ) + ( 12 x 1.5 x $ ) = $

This set of slides is provided by the author of the textbook8 An Algorithm is... a step-by-step procedure for solving a problem in a finite amount of time.

This set of slides is provided by the author of the textbook9 Algorithm to Determine an Employee’s Weekly Wages 1. Get the employee’s hourly payRate 2. Get the hours worked this week 3. Calculate this week’s regular wages 4. Calculate this week’s overtime wages (if any) 5. Add the regular wages to overtime wages (if any) to determine total wages for the week

This set of slides is provided by the author of the textbook10 What is a Programming Language? It is a language with strict grammar rules, symbols, and special words used to construct a computer program.

This set of slides is provided by the author of the textbook11 Implementation Phase: Program translating your algorithm into a programming language is called CODING with C++, you use Documentation -- your written comments Compiler -- translates your program into machine language Main Program -- may call subalgorithms

This set of slides is provided by the author of the textbook12 Implementation Phase: Test TESTING your program means running (executing) your program on the computer, to see if it produces correct results if it does not, then you must find out what is wrong with your program or algorithm and fix it--this is called debugging

This set of slides is provided by the author of the textbook13 Maintenance Phase USE and MODIFY the program to meet changing requirements or correct errors that show up in using it maintenance begins when your program is put into use and accounts for the majority of effort on most programs

This set of slides is provided by the author of the textbook14 Programming Life Cycle 1 Problem-Solving Phase Analysis and Specification General Solution ( Algorithm ) Verify 2 Implementation Phase Concrete Solution ( Program ) Test 3 Maintenance Phase Use Maintain

This set of slides is provided by the author of the textbook15 A Tempting Shortcut? GOAL THINKING CODE REVISE DEBUG TEST CODE Shortcut?

This set of slides is provided by the author of the textbook16 Memory Organization l two circuit states correspond to 0 and 1 l bit (short for binary digit) refers to a single 0 or 1. Bit patterns represent both the computer instructions and computer data l 1 byte = 8 bits l 1 KB = 1024 bytes l 1 MB = 1024 x 1024 = 1,048,576 bytes

This set of slides is provided by the author of the textbook17 How Many Possible Digits? l binary (base 2) numbers use 2 digits: JUST 0 and 1 l decimal (base 10) numbers use 10 digits: 0 THROUGH 9

This set of slides is provided by the author of the textbook18 Machine Language l is not portable l runs only on specific type of computer l is made up of binary-coded instructions (strings of 0s and 1s) is the language that can be directly used by the computer

This set of slides is provided by the author of the textbook19 High Level Languages l are portable l user writes program in language similar to natural language examples -- FORTRAN, COBOL, Pascal, Ada, Modula-2, C++, Java l most are standardized by ISO/ANSI to provide an official description of the language

This set of slides is provided by the author of the textbook20 Three C++ Program Stages other code from libraries, etc. other code from libraries, etc. written in machine language written in machine language written in machine language written in machine language written in C++ written in C++ via compilervia linker SOURCEOBJECT EXECUTABLE myprog.cppmyprog.objmyprog.exe