Program Development C# Programming January 30, 2007 Professor J. Sciame.

Slides:



Advertisements
Similar presentations
The Software Lifecycle. Example Problem: Update a Checkbook Write a program that allows the user to enter a starting balance, a transaction type, D or.
Advertisements

CMSC 104, Version 9/011 Arithmetic Operators Topics Arithmetic Operators Operator Precedence Evaluating Arithmetic Expressions In-class Project Incremental.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 63 – Manipulating Data Using Methods – Day 2.
ITEC113 Algorithms and Programming Techniques
Slide 1 Summary Two basic concepts: variables and assignments Some C++ practical issues: division rule, operator precedence  Sequential structure of a.
Program Design and Development
Program Flow Charting How to tackle the beginning stage a program design.
 2003 Prentice Hall, Inc. All rights reserved. 1 Machine Languages, Assembly Languages, and High-level Languages Three types of computer languages 1.Machine.
CSCI/CMPE 4341 Topic: Programming in Python Chapter 3: Control Structures (Part 1) – Exercises 1 Xiang Lian The University of Texas – Pan American Edinburg,
Copyright © 2012 Pearson Education, Inc. Chapter 3 Control Structures: Selection.
Introduction to C++ Programming
CHAPTER 4: ALGORITHM 4.1 Introduction stages identified in the program development process: 1. Problem analysis and specification 2. Data organization.
Introduction to C++ Programming
PRINCIPLES OF PROGRAMMING Revision. A Computer  A useful tool for solving a great variety of problems.  To make a computer do anything (i.e. solve.
Introduction to C++ Programming
COMPUTER SCIENCE I C++ INTRODUCTION
Chapter 2: Developing a Program Prelude to Programming Concepts and Design Copyright © 2001 Scott/Jones, Inc.. All rights reserved. 1 Chapter 2 Developing.
Sw development1 Software Development 1.Define the problem (Analysis) 2.Plan the solution 3.Code 4.Test and debug 5.Maintain and Document.
 2003 Prentice Hall, Inc. All rights reserved. 1 Introduction to C++ Programming Outline Introduction to C++ Programming A Simple Program: Printing a.
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.
Programming Lifecycle
Program A computer program (also software, or just a program) is a sequence of instructions written in a sequence to perform a specified task with a computer.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley STARTING OUT WITH Python Python First Edition by Tony Gaddis Chapter 2 Input,
Input, Output, and Processing
Arithmetic Operators Topics Arithmetic Operators Operator Precedence
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.
Week 1 Algorithmization and Programming Languages.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
1 INTRODUCTION TO PROBLEM SOLVING AND PROGRAMMING.
CIS-165 C++ Programming I CIS-165 C++ Programming I Bergen Community College Prof. Faisal Aljamal.
CPS120: Introduction to Computer Science Operations Lecture 9.
Pseudocode Simple Program Design Third Edition A Step-by-Step Approach 2.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
ITEC113 Algorithms and Programming Techniques
Chapter 2: General Problem Solving Concepts
Basic Control Structures
1 ELEC 206 Chapter 3 Control Structures 5-Step Problem Solving Methodology 1. State the problem clearly. 2. Describe the input and output. 3. Work a.
Chapter 7 Selection Dept of Computer Engineering Khon Kaen University.
The basics of the programming process The development of programming languages to improve software development Programming languages that the average user.
 2006 Pearson Education, Inc. All rights reserved Introduction to C++ Programming.
Cosc175/operators1 Algorithms computer as the tool process – algorithm –Arithmetic: addition,subtraction,multiplication,division –Save information for.
CSC 1010 Programming for All Lecture 3 Useful Python Elements for Designing Programs Some material based on material from Marty Stepp, Instructor, University.
CMSC 104, Version 8/061L10ArithmeticOps.ppt Arithmetic Operators Topics Arithmetic Operators Operator Precedence Evaluating Arithmetic Expressions In-class.
Recap……Last Time [Variables, Data Types and Constants]
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley STARTING OUT WITH Python Python First Edition by Tony Gaddis Chapter 2 Input,
The Hashemite University Computer Engineering Department
C++ for Engineers and Scientists Second Edition
 2003 Prentice Hall, Inc. All rights reserved. 1 Basic C++ Programming.
 2003 Prentice Hall, Inc. All rights reserved Basics of a Typical C++ Environment C++ systems –Program-development environment –Language –C++
CSCI 161 Lecture 3 Martin van Bommel. Operating System Program that acts as interface to other software and the underlying hardware Operating System Utilities.
Fundamental Programming Fundamental Programming Data Processing and Expressions.
 Problem Analysis  Coding  Debugging  Testing.
Topics Designing a Program Input, Processing, and Output
Chapter 1: Introduction to computers and C++ Programming
Introduction to C++ Programming
Revision Lecture
Engineering Problem Solving with C++, Etter/Ingber
CSC113: Computer Programming (Theory = 03, Lab = 01)
Programming Problem steps must be able to be fully & unambiguously described Problem types; Can be clearly described Cannot be clearly described (e.g.
Introduction to C++ Programming
1.13 The Key Software Trend: Object Technology
Introduction to Algorithms and Programming
Introduction to Programming Using Python PART 2
Summary Two basic concepts: variables and assignments Basic types:
Algorithms computer as the tool process – algorithm
Topics Designing a Program Input, Processing, and Output
Engineering Problem Solving with C++ An Object Based Approach
Engineering Problem Solving with C++ An Object Based Approach
Topics Designing a Program Input, Processing, and Output
Structural Program Development: If, If-Else
Presentation transcript:

Program Development C# Programming January 30, 2007 Professor J. Sciame

Computer Aided Problem Solving Steps for Computer Aided Problem Solving: –Program Analysis and Specification –Algorithm Development –Program Coding –Program Execution and Testing –Program Maintenance

Program Analysis & Specification Determine: –Program Input –Program Output Specification = Input & Output Problems Encountered –Changing Values –Being too specific

Algorithm Development Algorithm = The formulation of a problem as a detailed sequence of simple steps. Algorithms are designed using three basic methods of control: –Sequential Control –Selection Control –Repetitive Control

Pseudocode Pseudocode is a mixture natural language and symbols, which include: –Mathematical Operators –Variable Names –Comments –Keywords –Indentation

Flowchart A graphical display of an algorithm. Uses: –Symbols –Flow lines Alternate - Top Down Design

Program Coding To express the algorithm in a programming language Concepts: –Syntax –Variables –Data Types Readability

Program Execution Write the program with the editor Include preprocessor codes Save and compile the program Link the program Load into memory Execute (Run)

Errors Syntax (or Compile Time) Run Time Logic

Program Maintenance Responsibilities: –Testing & Validation –Maintenance

Software Engineering The study of the use of the techniques used to solve problems Systems Analysts - Help in complex problems

Memory Concepts Variable names correspond to locations in memory All variables have: –a name –a type –a size –a value

Memory Concepts II The statement cin >> integer1 or x = a + b is called a destructive read-in. The statement cout << x is called a non- destructive read-out

Arithmetic Operators Addition + Subtraction - Multiplication * Division / Modulus %

Order of Operations Parentheses must be cleared. Exponentiation Multiplication or Division (left to right) Addition or Subtraction (left to right) In nested parentheses, the innermost parentheses are first, working out to the outermost set.

Equality and Relational Operators Equality –(x is equal to y) x = = y –(x is not equal to y) x != y Relational –(x is greater than y) x > y –(x is less than y) x < y –(x is greater than or equal to y) x > = y –(x is less than or equal to y) x < = y