Review, Pseudocode, Flow Charting, and Storyboarding.

Slides:



Advertisements
Similar presentations
08/2012Tanya Mishra1 EASYC for VEX Cortex Llano Estacado RoboRaiders FRC Team 1817.
Advertisements

CHAPTER 2 GC101 Program’s algorithm 1. COMMUNICATING WITH A COMPUTER  Programming languages bridge the gap between human thought processes and computer.
Programming Logic and Design Eighth Edition
Programming TBE 540 Farah Fisher. Objectives After viewing this presentation, the learner will be able to… Given a task, create pseudocode Given pseudocode,
CHAPTER 1: AN OVERVIEW OF COMPUTERS AND LOGIC. Objectives 2  Understand computer components and operations  Describe the steps involved in the programming.
Chapter 1 - An Introduction to Computers and Problem Solving
Introduction to Programming
Chapter 2 - Problem Solving
زبانهای برنامه سازی برنامه سازی پیشرفته ارائه دهنده دکتر سيد امين حسيني E.mail: Home page:
Session Objectives# 24 COULD code the solution for an algorithm
Programming in Visual Basic
Programming Logic and Design, Third Edition Comprehensive
Chapter 8 and 9 Review: Logical Functions and Control Structures Introduction to MATLAB 7 Engineering 161.
Slides prepared by Rose Williams, Binghamton University Chapter 1 Getting Started 1.1 Introduction to Java.
Pseudocode and Algorithms
Loops Repeat after me …. Loops A loop is a control structure in which a statement or set of statements execute repeatedly How many times the statements.
Computer Science 1620 Programming & Problem Solving.
An Overview of Programming Logic and Design
Chapter 3 Planning Your Solution
PRE-PROGRAMMING PHASE
2012 •••••••••••••••••••••••••••••••••• Summer WorkShop Mostafa Badr
Adding Automated Functionality to Office Applications.
Python quick start guide
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.
CIS Computer Programming Logic
Computer Programming TCP1224 Chapter 3 Completing the Problem-Solving Process and Getting Started with C++
Board Activity Find your seat on the seating chart Login – Remember your login is your first initial your last name and the last three numbers of your.
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake Developing a Program.
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.
Lecture 1 Introduction Figures from Lewis, “C# Software Solutions”, Addison Wesley Richard Gesick.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
6 Chapter 61 Looping Programming Logic and Design, Second Edition, Comprehensive 6.
An Introduction to Programming with C++ Sixth Edition Chapter 7 The Repetition Structure.
C++ Basics C++ is a high-level, general purpose, object-oriented programming language.
Pseudocode. Simple Program Design, Fourth Edition Chapter 2 2 Objectives In this chapter you will be able to: Introduce common words, keywords, and meaningful.
CONTENTS Processing structures and commands Control structures – Sequence Sequence – Selection Selection – Iteration Iteration Naming conventions – File.
1 Program Planning and Design Important stages before actual program is written.
CSC 1010 Programming for All Lecture 3 Useful Python Elements for Designing Programs Some material based on material from Marty Stepp, Instructor, University.
Structured Programming (4 Credits) HNDIT Week 2 – Learning Outcomes Design an algorithmic solution for simple problem such as computation of a factorial,
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
The Hashemite University Computer Engineering Department
Intro to Loops 1.General Knowledge 2.Two Types of Loops 3.The WHILE loop 1.
Controlling Program Flow with Decision Structures.
Algorithms and Pseudocode
Intro. to Computer Programming Eng. Nehal A. Mohamed Spring Semester-2016.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Intro to Programming STARS College of Communication and Information Florida State University Written by: Hannah Brock Alissa Ovalle Nicolaus Lopez Martin.
Programming Logic and Design Seventh Edition Chapter 1 An Overview of Computers and Programming.
Algorithms and Flowcharts
Basic concepts of C++ Presented by Prof. Satyajit De
The need for Programming Languages
Component 1.6.
REPETITION CONTROL STRUCTURE
ALGORITHMS CONDITIONAL BRANCH CONTROL STRUCTURE
Programming Mehdi Bukhari.
Pseudocode Upsorn Praphamontripong CS 1110 Introduction to Programming
Introduction to Programming
ALGORITHMS AND FLOWCHARTS
Introduction to pseudocode
ALGORITHMS AND FLOWCHARTS
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Chapter 2- Visual Basic Schneider
Algorithm and Ambiguity
Language Constructs Construct means to build or put together. Language constructs refers to those parts which make up a high level programming language.
CS 1111 Introduction to Programming Spring 2019
ICT Gaming Lesson 2.
LOOPS The loop is the control structure we use to specify that a statement or group of statements is to be repeatedly executed. Java provides three kinds.
Programming Logic and Design Eighth Edition
Presentation transcript:

Review, Pseudocode, Flow Charting, and Storyboarding

What will you be able to do after this presentation? –Create Pseudocode for a task –Create a flowchart from pseudocode –Understand and define the terms: program, compile vs. interpret, loop, variable, function, syntax, code, debug, IF THEN ELSE

Instructions given to a computer to complete a task Instructions need to be given in a language the computer can understand Two methods are used to translate computer languages into Binary

Compiling must occur before the code is run Interpreted code is translated line by line as it is executed Some languages use Machine code and others use code that looks like english

0x x A x x A x x x x x x x x

public class nineninebottlesofbeer { public static void main(String[] args) { //99 bottles of beer song beer(99); } public static void beer( int bottles){ if(bottles > 0){ System.out.print(bottles +" bottles of beer on the wall, "); System.out.println(bottles +" bottles of beer, "); System.out.println("ya'take one down and ya' pass it around"); System.out.println((bottles -1)+" bottles of beer on the wall"); beer(bottles -1); }else{ System.out.println("No bottles of beer on the wall, no bottlesof beer "); System.out.println("ya'can't take one down, ya can't pass it around,"); System.out.println("'cause there is no more bottles of beer on the wall"); }

print ('Hmmm... You have 5 tickets to that new movie everyone wants to see.') print ('Whom should you invite to go with you?') movie_friends = [] friend1 = input('Enter the first friends name ') friend2 = input('Enter the second friends name ') friend3 = input('Enter the third friends name ') friend4 = input('Enter the fourth friends name ') movie_friends.append(friend1) movie_friends.append(friend2) movie_friends.append(friend3) movie_friends.append(friend4) print ('The friends you are taking to the movie are.') print (*movie_friends,sep='\n')

Decide what function we want our program to perform Break the function down into steps Write the pseudocode (step by step instructions in English) Create a Flow Chart of the program Layout the program(StoryBoarding)

Translate the pseudocode into a programming language. Test and debug the program Fix any bugs or errors

Step by Step Instructions A recipe of sorts It needs to follow the correct order Think logically

Function: add two numbers Pseudocode: –Start –Get two numbers –Add them –Print the answer –End

Flow Chart for pseudocode example Start Input 2 numbers Add them Output answer End

START/END INPUT/OUTPUT PROCESS DECISION Used at the beginning and end of each flowchart. Shows when information/data comes into a program or is printed out. Used to show calculations, storing of data in variables, and other “processes” that take place within a program. Used to show that the program must decide whether something (usually a comparison between numbers) is true or false. YES and NO (or T/F) branches are usually shown.

Flowchart  –Start –Get year born –Calculate age –Print age –If age > 50 print OLD –End Get yr Calc age Print age Age>50? OLD Y N Start End

All programming languages have certain features in common. For example: –Variables –Commands/Syntax (the way commands are structured) –Loops –Decisions –Functions Each programming language has a different set of rules about these features.

Variables are part of almost every program. A variable is a “place to put data” and is usually represented by a letter or a word. (Think of a variable as a Tupperware container with a label on it.) Variable names cannot contain spaces. Some programming languages have very specific limits on variable names.

Usually there are several ways to put information into a variable. The most common way is to use the equal sign (=). X = Y + 7 means take the value of Y, add 7, and put it into X. COUNT=COUNT + 2 means take the current value of COUNT, add 2 to it, and make it the new value of COUNT.

Variables may be classified as global or local. A global variable is one that can be shared by all parts of a program, including any functions or sub-programs. A local variable is one that is used only within a certain part of the program, for example, only in one function or sub- program.

Programming languages are truly languages. They have rules about grammar, spelling, punctuation, etc. You need to learn the rules of a programming language, just as you learned to speak and write English.

A loop is a repetition of all or part of the commands in a program. A loop often has a counter (a variable) and continues to repeat a specified number of times. A loop may also continue until a certain condition is met (e.g., until the end of a file or until a number reaches a set limit)

You saw a flowchart symbol for decisions. A program often needs to decide whether something is true or false in order to see which way to continue. Programs often use IF (or IF THEN or IF THEN ELSE) statements to show a decision.

An IF statement always has a condition to check, often a comparison between a variable and a number. The IF statement also must specify what to do if the condition/comparison is true. These instructions (for “true”) may come after the word THEN, or they may simply be listed.

In an IF THEN statement, when the condition is false, the program simply ignores the THEN commands and continues to the next line. In an IF THEN ELSE statement, commands are given for both the true and false conditions.

In most programming languages, small sub-programs are used to perform some of the tasks. These may be called functions, subroutines, handlers, or other such terms. Functions often have names (e.g., getName or CALCTAX).

A function generally gets information from the main program, performs some task, and returns information back to the program. Functions follow the same rules of syntax, etc. as the main program. JavaScript code is primarily made of a series of functions.

Be sure the code is exact (spelling, capitals/lower case, punctuation, etc). Write part of the code, try it, then write more. Always comment your code

To “debug” means to try a program, then fix any mistakes. Virtually no program works the first time you run it. There are just too many places to make errors. When you are debugging a program, look for spelling and punctuation errors. Fix one error at a time, then try the program again.

Who is my audience How much real estate Functionality Layout Usability

Determine who will be using the application

How much screen space does the application need? Will the application need to be mobile?

What function will the application perform? What kind of widgets will I need? –Text boxes –Buttons –Text entries –Scroll bars –Output windows

How will the widgets be placed on the screen?

Is the application intuitive? Does it lend it self to ease of use?

Marketing Process Roadmap Employee Turnover Debugging Improvements