Designing Software.

Slides:



Advertisements
Similar presentations
Driving Test 1 Marking Scheme Focus on five areas to pass driving test 1.
Advertisements

Basics of Computer Programming Web Design Section 8-1.
You could spend years and years figuring out how to take three steps at once. Or you could simply take one step, and then the next, and then the next.
Chapter 2: Algorithm Discovery and Design
How to turn on the robot How to start Bluetooth How to connect to robot How to initialize the robot How to not break the robot Sec Getting Started.
What is RobotC?!?! Team 2425 Hydra. Overview What is RobotC What is RobotC used for What you need to program a robot How a robot program works Framework.
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.
Chapter 2: Algorithm Discovery and Design Invitation to Computer Science, C++ Version, Third Edition.
Invitation to Computer Science, Java Version, Second Edition.
How to Create a Videogame By: Connor McCann. Java Java is one of many programming languages Java is used to run web browsers and most PC video games I.
MATLAB for Engineers 4E, by Holly Moore. © 2014 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected by Copyright.
CPS120 Introduction to Computer Programming The Programming Process.
Python Repetition. We use repetition to prevent typing the same code out many times and to make our code more efficient. FOR is used when you know how.
What does C store? >>A = [1 2 3] >>B = [1 1] >>[C,D]=meshgrid(A,B) c) a) d) b)
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
ITEC 109 Lecture 11 While loops. while loops Review Choices –1 st –2 nd to ?th –Last What happens if you only use ifs? Can you have just an else by itself?
Using Lists Games Programming in Scratch. Games Programming in Scratch Extension – Using Lists Learning Objectives Create a temporary data store (list)
Sequencing How to get better. Getting better – Level 3 Putting Instructions in a Sequence You can put instructions into a sequence You understand that.
11 Computers, C#, XNA, and You Session 1.1. Session Overview  Find out what computers are all about ...and what makes a great programmer  Discover.
BIT 115: Introduction To Programming Professor: Dr. Baba Kofi Weusijana (say Doc-tor Way-oo-see-jah-nah, Doc-tor, or Bah-bah)
Chapter 2: Algorithm Discovery and Design Invitation to Computer Science.
1 Structured Programming Arab Academy for Science and Technology CC112 Dr. Sherif Mohamed Tawfik The Course.
Structured Programming The Basics
Identify the Appropriate Method for Handling Repetition
Strategic Information Initiatives
ICS 3UI - Introduction to Computer Science
Learning to Program D is for Digital.
Repetition Structures Chapter 9
Functions and Top-Down Design
Intro to Computer Science CS1510 Dr. Sarah Diesburg
Cookies BIS1523 – Lecture 23.
The Scientific Method: How to solve just about anything
Conditionals & Boolean Expressions
File Handling Programming Guides.
CPS120: Introduction to Computer Science
An Introduction to Control Structures
Welcome back to Software Development!
Welcome back to Software Development!
Intro to Computer Science CS1510 Dr. Sarah Diesburg
Welcome back to Software Development!
Structured Programming Taken from notes by Dr. Neil Moore
Introduction to TouchDevelop
Three Special Structures – Case, Do While, and Do Until
Algorithm and Ambiguity
The lifespan of a variable
Intro to Programming CURIE 2011.
Control Structure Testing
ICT Programming Lesson 3:
An Introduction to Control Structures
Intro to Computer Science CS1510 Dr. Sarah Diesburg
Proper functionality Good human computer interface Easy to maintain
ECE 352 Digital System Fundamentals
ICT Gaming Lesson 2.
Introduction to Computer Science
Introduction to Repetition
Repetition Statements (Loops) - 2
Computational Thinking
Selection Statements Chapter 3.
Basic Concepts of Algorithm
True / False Variables.
Intro to Computer Science CS1510 Dr. Sarah Diesburg
Designing Software.
Introduction to Repetition
Software Development Techniques
Starter Look at the hand-out.
How to allow the program to know when to stop a loop.
The return Statement © 2018 Kris Jordan.
Flow Control I Branching and Looping.
Simple Powerful WPS OFFICE Free.
Presentation transcript:

Designing Software

Designing Software What have we learned?

Designing Software What have we learned? Computers are totally literal

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Top-down design – figure out major steps/flow before details

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Top-down design – figure out major steps/flow before details Simple is always best

Designing Software What have we learned? Computers are totally literal

Designing Software What have we learned? Computers are totally literal They do EXACTLY what you tell them to do

Designing Software What have we learned? Computers are totally literal They do EXACTLY what you tell them to do They do ONLY what you tell them to do

Designing Software What have we learned? Computers are totally literal They do EXACTLY what you tell them to do They do ONLY what you tell them to do They make absolutely NO assumptions

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Look for steps that are repeated

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Look for steps that are repeated Look for complicated sub-tasks that could be considered on their own

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Look for steps that are repeated Look for complicated sub-tasks that could be considered on their own Name the function something meaningful

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Loop WHILE something is true

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Loop WHILE something is true Loop UNTIL a condition is met

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Loop WHILE something is true Loop UNTIL a condition is met Great opportunity to use functions

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer More efficient than if … else if …

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer More efficient than if … else if … As soon as it gets a match, can skip the rest…

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer More efficient than if … else if … As soon as it gets a match, can skip the rest… Avoids errors of if … if …

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer More efficient than if … else if … As soon as it gets a match, can skip the rest… Avoids errors of if … if … What if get a match on more than one if ?

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer More efficient than if … else if … As soon as it gets a match, can skip the rest… Avoids errors of if … if … What if get a match on more than one if ? What if handing the match changes what you are using to do following matches?

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Basically a bucket that holds a piece of information

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Basically a bucket that holds a piece of information You can find out what is in the bucket … read the variable

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Basically a bucket that holds a piece of information You can find out what is in the bucket … read the variable You can put new info in the bucket … write the variable

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Top-down design – figure out major steps/flow before details

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Top-down design – figure out major steps/flow before details Start with general, then go to specific

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Top-down design – figure out major steps/flow before details Start with general, then go to specific Don’t dive into the details until you know the basics of how you’ll do it

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Top-down design – figure out major steps/flow before details Simple is always best

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Top-down design – figure out major steps/flow before details Simple is always best Analyze how you would do it … your brain is very efficient

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Top-down design – figure out major steps/flow before details Simple is always best Analyze how you would do it … your brain is very efficient Find a similar but simpler problem to analyze

Designing Software What have we learned? Computers are totally literal Functions are great for repackaging complex stuff into one thing Looping helps us handle repeated tasks Decisions – using if … else if … help the computer Variables help us remember information Top-down design – figure out major steps/flow before details Simple is always best

Clear and Unclear Windows