What is programming? Steps to solve a problem. Repeatable by executing or “doing” the steps again. UWP - Landgraf Some slides are from Dr. Qi Yang's notes.

Slides:



Advertisements
Similar presentations
Lecture 1: Overview of Computers & Programming
Advertisements

Overview of Programming and Problem Solving ROBERT REAVES.
Overview of Computers & Programming Languages Chapter 1.
ENGR2216 FORTRAN PROGRAMMING FOR ENGINEERS. Chapter 1 The computer CPU MEMORY INPUT/OUTPUT DEVICES DATA REPRESENTATION BINARY SYSTEM OCTAL & HEXADECIMAL.
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.
This set of slides is provided by the author of the textbook1 Introductory Topics (Continued) l Computer Components l Basic Control Structures l Problem.
Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
1 Chapter 1 Introduction to Object-Oriented Programming.
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.
Introduction to Computers and Programming. Some definitions Algorithm: –A procedure for solving a problem –A sequence of discrete steps that defines such.
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:
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
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: Introduction To Computer | SCP1103 Programming Technique C | Jumail, FSKSM, UTM, 2005 | Last Updated: July 2005 Slide 1 Introduction To Computers.
CHAPTER 1 AN OVERVIEW OF COMPUTERS AND PROGRAMMING LANGUAGES.
CS1430: Programming in C++ Section 2 Instructor: Qi Yang 213 Ullrich
1 Chapter 1 Overview of Programming and Problem Solving Dale/Weems Slides based on work by Sylvia Sorkin, Community College of Baltimore County - Essex.
Elements of a C++ program 1. Review Algorithms describe how to solve a problem Structured English (pseudo-code) Programs form that can be translated into.
General Computer Science for Engineers CISC 106 Lecture 02 Dr. John Cavazos Computer and Information Sciences 09/03/2010.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
Computer Terminology Chapter 2 CIT History of Computers First known device used to compute was the Abacus 3000 BC 1617 John Napier created a crude.
Lesson 1b: Computer Systems and Program Development CPS118.
Copyright © 2003 by Prentice Hall Module 5 Central Processing Unit 1. Binary representation of data 2. The components of the CPU 3. CPU and Instruction.
Computer Programming I. Today’s Lecture  Components of a computer  Program  Programming language  Binary representation.
1 Overview of Programming and Problem Solving Chapter 1.
What is a computer? A computer is a device that:
Introduction to Computer Systems and the Java Programming Language.
Chapter 1: An Overview of Computers and Programming Languages
1 Problem Solving with C++ The Object of Programming Walter Savitch Chapter 1 Introduction to Computers and C++ Programming Slides by David B. Teague,
Problem Solving using the Science of Computing MSE 2400 EaLiCaRA Spring 2015 Dr. Tom Way.
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.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
1 Chapter 1 Overview of Programming and Problem Solving Dale/Weems/Headington.
CHAPTER 1 INTRODUCTION 1 st Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
Computer Science Binary. Binary Code Remember the power supply that is inside your computer and how it sends electricity to all of the components? That.
General Computer Stuff Hardware: physical parts of a computer: CPU, drives, etc. Software: Programs and Data A computer needs both to be useful.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
1 CS1430: Programming in C++ Section 2 Instructor: Qi Yang 213 Ullrich
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.
Chapter 1 : Overview of Computer and Programming By Suraya Alias
An Example Architecture. A Paper Computer - Woody Woody's characteristics Word size – 8 bits One word.
Computer Science I CSCI Summer 2009 David E. Goldschmidt, Ph.D.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
Chapter 1 Introduction. Components of a Computer CPU (central processing unit) Executing instructions –Carrying out arithmetic and logical operations.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Know what a computer is used for Understand the difference between hardware and software Be able to describe the way that data is stored in a computer.
Chapter 1 An Overview of Computers and Programming Languages.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
Introduction to Programming By: Prof. Muhammad Abu Baker Siddique 2 nd Lecture 1.
 Human language : commonly used to express feeling and understand what other people expression.  Computer language : are a languages by which a user.
Chapter 1 Introduction 2nd Semester H
Chapter 1: An Overview of Computers and Programming Languages
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Memory Parts of a computer
Computer System and Programming
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design
Computer Hardware Introduction.
Overview of Computers & Programming Languages
Computer Electronic device Accepts data - input
Computers & Programming Languages
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
How Computers Work Part 1 6 February 2008.
ICS103 Programming in C 1: Overview of Computers And Programming
Presentation transcript:

What is programming? Steps to solve a problem. Repeatable by executing or “doing” the steps again. UWP - Landgraf Some slides are from Dr. Qi Yang's notes 1

Write a program 1.Problem solve phase 2.Implement phase (Maintenance phase) Program VCR to tape American Idol UWP - Landgraf Some slides are from Dr. Qi Yang's notes 2

Problem Solving Solve the problem before writing any program Pseudo Code If score is positive Add score to Total Else Display an error message UWP - Landgraf Some slides are from Dr. Qi Yang's notes 3

Algorithm Instructions on how to do something – Details – If you leave out steps… Can you write an algorithm to set an alarm clock? UWP - Landgraf Some slides are from Dr. Qi Yang's notes 4

What is a programming language? Set of instructions, rules, and symbols known by a computer that can be interpreted by the computer to solve a problem. UWP - Landgraf Some slides are from Dr. Qi Yang's notes 5

High Level Programming Languages C++Java BASICCOBOL English Like Easy to Read and Write (Compared with low level) C++ Code Example Total = Total + Score; UWP - Landgraf Some slides are from Dr. Qi Yang's notes 6

Low Level Programming Languages Total = Total + Score; Machine Code Assembly Code Add AX, Score UWP - Landgraf Some slides are from Dr. Qi Yang's notes 7

Programming Steps Create source code file: Lab0.cpp Compile to machine code: Lab0.obj Link to executable program: Lab0.exe Run Lab0.exe UWP - Landgraf Some slides are from Dr. Qi Yang's notes 8

What is a computer? UWP - Landgraf Some slides are from Dr. Qi Yang's notes 9 Input Output Storage Network CPU MEMORY

Hardware CPU Memory Keyboard Monitor Disk … UWP - Landgraf Some slides are from Dr. Qi Yang's notes 10

Problem-Solving Techniques ASK for HELP!!!! Look for things that are familiar – Given salary, compute a 10% salary increase. – Given the price of a product, compute a 10% price increase Solve by analogy – I know how to rollerblade. – This is similar to ice skating. Means/Ends Analysis – If I’m on one side of the river, how can I get to the other side? UWP - Landgraf Some slides are from Dr. Qi Yang's notes 11

Problem-Solving Techniques Divide and conquer – Build a house with electrician, carpenter, plumber etc. Building-block approach – Components of a sound system Merging solutions – What things can be done at the same time? UWP - Landgraf Some slides are from Dr. Qi Yang's notes 12

Mental Blocks Fear of starting – Just do it Algorithmic problem solving – Not always easy – May fail (it will make you stronger) UWP - Landgraf Some slides are from Dr. Qi Yang's notes 13

How to Store Data in Computer UWP - Landgraf Some slides are from Dr. Qi Yang's notes 14 Bit Byte Electronic Device On / Off Value: 1 / 0 8 bits Possible combinations

How to Store Data in Computer UWP - Landgraf Some slides are from Dr. Qi Yang's notes Decimal Number: Binary Number

How to Store Data in Computer UWP - Landgraf Some slides are from Dr. Qi Yang's notes Binary Number 65 Character ASCII (EBCDIC) ASCII Character is See Appendix D pp

How to Store Data in Computer UWP - Landgraf Some slides are from Dr. Qi Yang's notes 17 Word2 bytes (16 bits) Integers Binary Numbers Characters ASCII Unicode (p. 34 footnote) Float Numbers? Negative numbers? Double Word4 bytes (32 bits)

How to Store Data in Computer UWP - Landgraf Some slides are from Dr. Qi Yang's notes 18 KB 1024 Bytes 2 10 MB 1024 * 1024 Bytes 2 20 TB… GB 1024 * 1024 * 1024 Bytes 2 30