Top-down design Outline the project in the boldest steps possible, do not worry about how to achieve each step uIt is to be expected that some steps are.

Slides:



Advertisements
Similar presentations
Adding attachments to E- mail By Megan Chamley. what are they used for… An attachment is used to add a file like a word document, spreadsheet, photo and.
Advertisements

Introduction to C Programming
CC SQL Utilities.
General Ledger Fiscal Year End Closing out WELCOME! To the Year End Workshop. During this workshop and presentation, references will be made to.
Data Structures and Algorithms
Fall 2008Programming Development Techniques 1 Topic 2 Scheme and Procedures and Processes September 2008.
Lists Introduction to Computing Science and Programming I.
Functions Most useful programs are much larger than the programs that we have considered so far. To make large programs manageable, programmers modularize.
Stacks.
1 Module 2: Fundamental Concepts Problems Programs –Programming languages.
>(setf oldlist ) Constructing a list We know how to make a list in lisp; we simply write it: ‘4321( ) What if we want a new list with that list as a part?
1 Chapter 2 C++ Syntax and Semantics, and the Program Development Process Dale/Weems/Headington.
CSC 160 Computer Programming for Non-Majors Lecture #7: Variables Revisited Prof. Adam M. Wittenstein
Introduction to a Programming Environment
Functions Modules in C++ are called functions and classes
CS 106 Introduction to Computer Science I 03 / 17 / 2008 Instructor: Michael Eckmann.
Computer Information Technology – Section 5. Desktop and Taskbar Objective: To understand file and folder names, how to create, edit, delete folders.
Computer Information Technology – Section 2-3. Desktop and Taskbar Objective: To understand file and folder names, how to create, edit, delete folders.
Version Control. What is Version Control? Manages file sharing for Concurrent Development Keeps track of changes with Version Control SubVersion (SVN)
ARIES User Group June 2, Today’s Presentation will cover:  Limitations to Ad Hoc report design in ARIES ReportExport  How to merge two ARIES reports.
01-Intro-Object-Oriented-Prog-Alice1 Barb Ericson Georgia Institute of Technology Aug 2009 Introduction to Object-Oriented Programming in Alice.
Introduction to programming in MATLAB MATLAB can be thought of as an super-powerful graphing calculator Remember the TI-83 from calculus? With many more.
1 Day 16 Sed and Awk. 2 Looking through output We already know what “grep” does. –It looks for something in a file. –Returns any line from the file that.
Project Implementation for COSC 5050 Distributed Database Applications Lab2.
Mail merge letters are used to send the same or similar documents to many different people. Since they contain the recipient’s name, address, and other.
Modular Programming Chapter Value and Reference Parameters computeSumAve (x, y, sum, mean) ACTUALFORMAL xnum1(input) ynum2(input) sumsum(output)
Mail merge I: Use mail merge for mass mailings Perform a complete mail merge Now you’ll walk through the process of performing a mail merge by using the.
C++ Basics Structure of a Program. C++ Source Code Plain text file Typical file extension .CPP Must compile the C++ source code without errors before.
TECH Computer Science Data Abstraction and Basic Data Structures Improving efficiency by building better  Data Structure Object IN  Abstract Data Type.
Lecturer: Dr. AJ Bieszczad Chapter 11 COMP 150: Introduction to Object-Oriented Programming 11-1 l Basics of Recursion l Programming with Recursion Recursion.
COMPUTER PROGRAMMING. Functions What is a function? A function is a group of statements that is executed when it is called from some point of the program.
VB Games: Preparing for Memory Brainstorm controls & events Parallel structures (again), Visibility, LoadPicture, User-defined procedures, Do While/Loop,busy.
1 C++ Syntax and Semantics, and the Program Development Process.
Evolving Virtual Creatures & Evolving 3D Morphology and Behavior by Competition Papers by Karl Sims Presented by Sarah Waziruddin.
COMPUTER PROGRAMMING. Iteration structures (loops) There may be a situation when you need to execute a block of code several number of times. In general,
Logic Our programs will have to make decisions in terms of what to do next –we refer to the decision making aspect as logic Logic goes beyond simple if.
CSC 107 – Programming For Science. History of C  Dennis Ritchie developed C from 1969 – 1973  While at Bell Labs, created language to develop Unix 
1 Chapter 2 C++ Syntax and Semantics, and the Program Development Process.
CS0007: Introduction to Computer Programming Classes: Documentation, Method Overloading, Scope, Packages, and “Finding the Classes”
Industrial Project (236504) Advanced programming tools for refactoring Java code in Eclipse Student: Alexander Libov Supervisor: Dr. Ran Ettinger, IBM.
Chapter 11Java: an Introduction to Computer Science & Programming - Walter Savitch 1 Chapter 11 l Basics of Recursion l Programming with Recursion Recursion.
Solving Complex Problems. Review A subroutine is a set of instructions to perform a particular computation –used to solve subproblems of more complex.
Chapter 131 Applets and HTML Chapter Objectives learn how to write applets learn to write a simple HTML document learn how to embed an applet in.
Professor: Dr. Shu-Ching Chen TA: Hsin-Yu Ha Function, Trigger used in PosgreSQL.
4.3 Functions. Functions Last class we talked about the idea and organization of a function. Today we talk about how to program them.
Repetition Statements (Loops). 2 Introduction to Loops We all know that much of the work a computer does is repeated many times. When a program repeats.
1 CSC103: Introduction to Computer and Programming Lecture No 16.
JAVA COLLECTIONS LIBRARY School of Engineering and Computer Science, Victoria University of Wellington COMP T2, Lecture 2 Marcus Frean.
Chapter 7: Repetition Structure (Loop) Department of Computer Science Foundation Year Program Umm Alqura University, Makkah Computer Programming Skills.
1 Functions Function Prototype float sqrt(float x); Function name, type, parameter and parameter type Function Definition float sqrt(float x) { // compute.
CS241 Systems Programming Discussion Section Week 2 Original slides by: Stephen Kloder.
The Design Process1 Design Concepts We have discussed the design of programs by using the design of the.frm file of the program. This would be called User.
Perform a complete mail merge Lesson 14 By the end of this lesson you will be able to complete the following: Use the Mail Merge Wizard to perform a basic.
User-Written Functions
Dropbox Basics.
Distributed Computing Systems
Data Virtualization Tutorial: XSLT and Streaming Transformations
Word Tutorial 6 Using Mail Merge
Warm Up Which type of supply would create smaller items such as M&M’s?
Merging Word Documents
Data Structures Recursion CIS265/506: Chapter 06 - Recursion.
Defining Classes and Methods
CSC212 Data Structure - Section RS
Chapter 14 Sorting and Merging.
Manipulating Pictures, Arrays, and Loops part 3
Scope Rules and Storage Types
Basics of Recursion Programming with Recursion
A First Program.
Chapter 8 - Visual Basic Schneider
Presentation transcript:

Top-down design Outline the project in the boldest steps possible, do not worry about how to achieve each step uIt is to be expected that some steps are beyond your immediate understanding Consider each step, refine it as much as possible, go to another step if you run into trouble If you are dealing with a computer program, continue to refine until the steps are program language commands

Example 1: opening a restaurant Choose a Theme Pick a neighborhood Find a Site Compute the Costs Acquire the Funds Build it Get the Staff Prepare the Ads Compute the Costs - Hire an architect, get the building costs - Determine costs of utilities, trash removal, etc. - Evaluate Labor Costs - Evaluate Publicity Costs

Example 2: merging files Consider a large file of names and phone numbers –a telephone directory for a large city Consider a smaller file of new names and phone number which must be added to the original list –new phone numbers added today Design a procedure (a program?) that will merge these two files into a new phone directory

Example 2: merging files 1.Alphabetize OLDLIST 2.Alphabetize ADDLIST 3.Create a blank file, call it NEWLIST 4.Merge OLDLIST and ADDLIST into NEWLIST 5.Delete OLDLIST 6.Delete ADDLIST 7.Rename NEWLIST, calling it OLDLIST

Example 2: merging files 1.Alphabetize OLDLIST (already done, it was yesterday’s output.) 2.Alphabetize ADDLIST (learn how to sort stuff, too much trouble to describe here.) 3.Create a blank file NEWLIST (easy to do…)

Example 2: merging files 4.Merge OLDLIST and ADDLIST into NEWLIST A. read the first item of OLDLIST, call it OLD, read the first item of ADDLIST, call it ADD B. compare OLD with ADD, write the smaller of them to NEWLIST, read the next item to replace it. C. if you have not run out of file OLDLIST or ADDLIST, return to B again, otherwise go to D. D. If you have drained ADDLIST, read the rest of OLDLIST into NEWLIST, if you have drained OLDLIST, read the rest of ADDLIST into NEWLIST.

Example 2: merging files 5.Delete OLDLIST 6.Delete ADDLIST 7.Rename NEWLIST, calling it OLDLIST

int Cube ( int n ) { return n * n * n; } The heading declares the function’s name, specifying its return type and the name and type of each of its parameters The body is a compound statement (block) which defines the behavior of the function Two parts of a function definition Heading Body