CS 100 Introduction to Computing Seminar September 21, 2015.

Slides:



Advertisements
Similar presentations
Chapter 1 - An Introduction to Computers and Problem Solving
Advertisements

Chapter 2 - Problem Solving
Chapter 2- Visual Basic Schneider
CIS105 Chapter 1 Theory Review. Page 2 Hardware and Software are the two major components o any computer system Hardware is the set of physical devices.
Chapter 2: Input, Processing, and Output
Chapter 2: Developing a Program Extended and Concise Prelude to Programming Concepts and Design Copyright © 2003 Scott/Jones, Inc.. All rights reserved.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Introduction Algorithms and Programming. Computer Programming  A form of problem solving  Or, more accurately, a way to solve problems  What we will.
The Program Design Phases
PRE-PROGRAMMING PHASE
Programming Logic and System Analysis
Computer Programming Basics. Computer programs are a detailed set of instructions given to the computer They tell the computer: 1. What actions you want.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and.
1 I.Introduction to Algorithm and Programming Algoritma dan Pemrograman – Teknik Informatika UK Petra 2009.
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
Introduction to Programming Lecture Number:. What is Programming Programming is to instruct the computer on what it has to do in a language that the computer.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Developing a Program.
Unit B065 – Coding a solution PREP WORK 1)Make sure you keep a work log / diary. Use the table on page 16 of the hand book as a template 2)Keep a bibliography.
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
The Software Development Life Cycle. Software Development SDLC The Software Development Life-Cycle Sometimes called the program development lifecycle.
Input, Output, and Processing
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake Developing a Program.
Software Life Cycle What Requirements Gathering, Problem definition
Problem Solving Techniques. Compiler n Is a computer program whose purpose is to take a description of a desired program coded in a programming language.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
Chapter 1 Program design Objectives To describe the steps in the program development process To introduce the current program design methodology To introduce.
ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
CS 108 Computing Fundamentals January 22, GHP #1 Looks like I’m missing just a couple submissions  If you need help, please see me ASAP I have.
CS221 Algorithm Basics. What is an algorithm? An algorithm is a list of instructions that transform input information into a desired output. Each instruction.
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
1 Program Planning and Design Important stages before actual program is written.
Software Development. Software Development Loop Design  Programmers need a solid foundation before they start coding anything  Understand the task.
CSC 1010 Programming for All Lecture 3 Useful Python Elements for Designing Programs Some material based on material from Marty Stepp, Instructor, University.
The Art of Programming. The process of breaking problems down into smaller, manageable parts By breaking the problem down, each part becomes more specific.
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.
Algorithms and Pseudocode
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
Introduction to Computer Programming using Fortran 77.
Problem Solving.  Similar to Solving Math Word Problem  Read the Problem  Decide how to go about Solving the Problem  Solve the Problem  Test the.
Progression in KS3/4 Algorithms MONDAY 30 TH NOVEMBER SUE SENTANCE.
Introduction to Problem Solving Programming is a problem solving activity. When you write a program, you are actually writing an instruction for the computer.
| MSC 8102:PROGRAMMING CONCEPTS By Vincent Omwenga, PhD. 1.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
 Problem Analysis  Coding  Debugging  Testing.
Programming Logic and Design Seventh Edition Chapter 1 An Overview of Computers and Programming.
Algorithms and Flowcharts
ICS 3UI - Introduction to Computer Science
Topics Designing a Program Input, Processing, and Output
Computer Programming.
Chapter 2: Input, Processing, and Output
Chapter 2- Visual Basic Schneider
Algorithm and Ambiguity
Lecture 2 Introduction to 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.
Algorithm and Ambiguity
An Introduction to Visual Basic .NET and Program Design
Chapter 2- Visual Basic Schneider
Introduction to Algorithms and Programming
Chapter 2- Visual Basic Schneider
Algorithm and Ambiguity
Topics Designing a Program Input, Processing, and Output
Topics Designing a Program Input, Processing, and Output
ICT Gaming Lesson 2.
Topics Designing a Program Input, Processing, and Output
Chapter 2: Input, Processing, and Output
Basic Concepts of Algorithm
Quiz: Computational Thinking
Programming Logic and Design Eighth Edition
Presentation transcript:

CS 100 Introduction to Computing Seminar September 21, 2015

Let's Review the Homework

What Can a Computer Do? 1.A computer can receive or accept data (input) 2.A computer can store data in a memory device 3.A computer can perform arithmetic operations/instruction and data manipulation operations/instructions 4.A computer can select one of some number of alternatives based upon some decision criteria 5.A computer can repeat a group of operations/instructions 6.A computer can output information

What Are The Steps In Developing a Program? 1.Determine the desired output(s) 2.Determine the necessary input(s) 3.Develop an algorithm A.Select the ordered, atomic steps necessary to transform the necessary input(s) into the desired outputs B.Check the algorithm by hand for correctness 4.Use the algorithm to guide development of source-code using a programming language (we will use C) A.Test and troubleshoot every algorithmic step B.Document (comment) as source-code is being developed 5.Test and troubleshoot the entire program

Designing a Program Programs must be designed before they are written Program development cycle:  Design the program  Write the code  Correct syntax errors  Test the program  Correct logic errors

Designing a Program (cont’d.) Design is the most important part of the program development cycle Understand the task that the program is to perform  Work with customer to get a sense what the program is supposed to do  Ask questions about program details  Create one or more software requirements

Designing a Program (cont’d.) Determine the steps that must be taken to perform the task  Break down required task into a series of steps  Create an algorithm, listing logical steps that must be taken Algorithm: set of well-defined logical steps that must be taken to perform a task

Pseudocode Pseudocode: fake code  Informal language that has no syntax rule  Not meant to be compiled or executed  Used to create model program No need to worry about syntax errors, can focus on program’s design Can be translated directly into actual code in any programming language

Flowcharts Flowchart: diagram that graphically depicts the steps in a program  Ovals are terminal symbols  Parallelograms are input and output symbols  Rectangles are processing symbols  Symbols are connected by arrows that represent the flow of the program

Problem Solving Acording to George Polya 1.Understand the problem (and the audience) Are you building a chair? Need directions to a location? Making popcorn? Trying to solve a puzzle? 2.Devise a plan Is this similar to something else? Who is the audience for the solution? What are the required steps (need gruesome detail)?

Problem Solving According to George Polya 3.Carry out the plan (implement) Does it work? Is each step correct? Necessary? 4.Is the solution accurate? (Correct?) Will it always lead to a solution?

Let's Talk About Algorithms An algorithm is an ordered set of unambiguous, atomic, executable steps, defining a terminating process. –[1] an ordered set? –[2] unambiguous? –[3] atomic? –[4] executable steps? –[5] defining a terminating process?

Why Are Algorithms Important? Easier to understand what is to be accomplished Easier to find errors and fix them Algorithms are independent of H/W and S/W Algorithms guide our "program development" because they act as a detailed guide or blueprint or GPS guided roadmap hms.htm

Let's Develop Some Algorithms

Pseudocode Pseudocode: code.htm /chap05/slides/pseudo.htm orithms.htm