CS 1044 Introduction to Programming in C/C++. Hi, My Name is… David McPherson David McPherson 625 McBryde Hall 625 McBryde Hall 231-9367 231-9367

Slides:



Advertisements
Similar presentations
Chapter 1 An Overview of Computers and Programming Languages.
Advertisements

Overview of Programming and Problem Solving ROBERT REAVES.
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.
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
1 Chapter 1 Introduction to Object-Oriented Programming.
Lecture 14 Go over midterm results Algorithms Efficiency More on prime numbers.
Chapter 1 Introduction to Object- Oriented Programming and Problem Solving.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Computer Science Fundamentals Intro to Computer Science & – part i1 – Ata Kaban School of Computer Science The University of Birmingham.
Introduction to C++ Programming CS 117 Section 2 and KNET Sections Spring 2001 MWF 1:40-2:30.
1 CS150 Introduction to Computer Science 1 Professor: Chadd Williams
CS 101 Problem Solving and Structured Programming in C Sami Rollins Spring 2003.
Chapter 1 Introduction to Programming. Computer Hardware CPU Memory –Main or primary –Secondary or auxiliary Input device(s) Output device(s)
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 Dale/Weems Slides based on work by Sylvia Sorkin, Community College of Baltimore County - Essex.
An Introduction Chapter Chapter 1 Introduction2 Computer Systems  Programmable machines  Hardware + Software (program) HardwareProgram.
Computer Architecture and Organization Introduction.
Introduction to Software Engineering. Programming versus Software Engineering Programming versus Software Engineering programming programming 1. The process.
Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose.
UniMAP Sem1-08/09EKT120: Computer Programming1 Week 1 – Lecture 1.
COP 3530 PROGRAM, FILE & DATA STRUCTURES Syllabus Syllabus Lab Information Lab Information Overrides Overrides Questions? Questions?
1 Overview of Programming and Problem Solving Chapter 1.
Introduction to Computers (L02) * Hardware * Software * Programming Languages * Three Phase of Program Development * Development and Design Steps * Algorithms.
Algorithms and Algorithm Analysis The “fun” stuff.
Chapter 1 Object Orientation: Objects and Classes.
Introduction to Algorithms By Mr. Venkatadri. M. Two Phases of Programming A typical programming task can be divided into two phases: Problem solving.
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.
The Development Process Problem Solving. Problem Solving - Dr. Struble 2 What Is Asked of Computer Programmers? Input Transformation Output Write a computer.
Problem Solving using the Science of Computing MSE 2400 EaLiCaRA Spring 2015 Dr. Tom Way.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Chapter 1 Introduction. Understand the concept of a black box, a data processor, and a programmable data processor. Define the von Neumann model and name.
B.Ramamurthy11/9/20151 Computers and Programming Bina Ramamurthy 127 Bell Hall
CS221 Algorithm Basics. What is an algorithm? An algorithm is a list of instructions that transform input information into a desired output. Each instruction.
J. Stover, CSD-HS.  A computer is an electronic device that is programmed to accept data (input), process it into useful information (output), and store.
CS 127 Introduction to Computer Science. What is a computer?  “A machine that stores and manipulates information under the control of a changeable program”
Copyright © 2003 Prentice Hall, IncSlides created by Bob Koziel.
CS 100 Introduction to Computing Seminar September 21, 2015.
1. Introduction Intro Programming in C++ Computer Science Dept Va Tech August, 2002 © Barnette ND & McQuain WD 1 Algorithm:a finite set of instructions.
Models of Computation. Computation: Computation is a general term for any type of information processing information processing CPU memory.
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.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
INTRODUCTION Data Structures. Why study data structures and algorithms? zPrograms solve problems zPrograms process information zInformation needs to be.
UniMAP Sem2-10/11 DKT121: Fundamental of Computer Programming1 Introduction to C – Part 1.
1 Overview of Programming Principles of Computers.
Flowcharts C++ Lab. Algorithm An informal definition of an algorithm is: a step-by-step method for solving a problem or doing a task. Input data A step-by-step.
Chapter 1 An Overview of Computers and Programming Languages.
©Brooks/Cole, 2003 Chapter 1 Introduction. ©Brooks/Cole, 2003 Figure 1-1 Data processor model This model represents a specific-purpose computer not a.
CS 101 – Oct. 7 Solving simple problems: create algorithm Structure of solution –Sequence of steps (1,2,3….) –Sometimes we need to make a choice –Sometimes.
Introduction to Computer Programming using Fortran 77.
Evolution of C and C++ n C was developed by Dennis Ritchie at Bell Labs (early 1970s) as a systems programming language n C later evolved into a general-purpose.
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.
Computer Systems Architecture Edited by Original lecture by Ian Sunley Areas: Computer users Basic topics What is a computer?
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.
Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose.
Introduction to Computers and C++ Programming
Chapter 1 Introduction.
Introduction to Software Engineering
Chapter 2 – Computer hardware
Chapter 1: An Overview of Computers and Programming Languages
Computer Science I CSC 135.
CSC Classes Required for TCC CS Degree
Computer Programming.
Computer Organization
Overview of Computer system
Presentation transcript:

CS 1044 Introduction to Programming in C/C++

Hi, My Name is… David McPherson David McPherson 625 McBryde Hall 625 McBryde Hall VTCS2002 VTCS2002

The TAs are… Ines Khelifi Ines Khelifi Carolyn Wine Carolyn Wine Amit Nithian Amit Nithian

Lab Information Do not switch times Do not switch times

Class Info /mcpherson /mcpherson /mcpherson /mcpherson

What is Programming? Phases of Programming Phases of Programming 1. Design 2. Implementation 3. Testing 4. Repeating

Polya’s Four Step Process Four steps to any problem solving activity Four steps to any problem solving activity 1. Understand the problem 2. Devise a solution 3. Test the solution 4. Rework the solution

Solving Computer Problems Need a tool to solve the problem Need a tool to solve the problem Use a computer language to do this Use a computer language to do this Different levels of languages * Different levels of languages * 1. Machine Language 2. Assembly Language 3. High Level Language * Some are talking about 4 th Level Languages

Algorithms What is an algorithm? What is an algorithm? A finite set of steps that specify a sequence of operations to be carried out in order to solve a specific problem. A finite set of steps that specify a sequence of operations to be carried out in order to solve a specific problem.

Properties of Algorithms 1. Finiteness 2. Absence of Ambiguity 3. Definition of Sequence 4. Feasibility 5. Input 6. Output

What is a Computer? Made up of many independent parts all working together Made up of many independent parts all working together Memory Unit Memory Unit Arithmetic/Logic Unit (ALU) Arithmetic/Logic Unit (ALU) Control Unit Control Unit Input Devices Input Devices Output Devices Output Devices Auxiliary Storage Devices Auxiliary Storage Devices Central Processing Unit (CPU)

Memory Unit Can be thought of to look like a giant grid Can be thought of to look like a giant grid Each square in the grid is a memory location Each square in the grid is a memory location We can access each location in the grid, if we choose to We can access each location in the grid, if we choose to

Ethics What are computer ethics? What are computer ethics? Piracy Piracy Types of Piracy Types of Piracy Software Software Data Data Resources Resources

Problem Solving Techniques Ask Questions Ask Questions Look for similarities Look for similarities Mean-Ends Analysis Mean-Ends Analysis Divide and Conquer Divide and Conquer Building-Block Approach Building-Block Approach Merging Solutions Merging Solutions

Quiz Time What are Polya’s Four Steps for problem solving? What are Polya’s Four Steps for problem solving? 1. Understand the problem 2. Devise a solution 3. Test the solution 4. Rework the solution