Each instruction on a separate line

Slides:



Advertisements
Similar presentations
CSCI 130 Pseudocode. Structure Theorem Any program can be created by using the following 3 control structures: –sequence –selection (IF-THEN-ELSE) –iteration.
Advertisements

Understanding the Three Basic Structures
Program Design Tool. 6 Basic Computer Operations Receive information Put out information Perform arithmetic Assign a value to variable (memory location)
Steps in Program Development
Program Design and Development
Lecture Notes 1/21/04 Program Design & Intro to Algorithms.
1 Chapter 8 Designing Small Programs. 2 A ‘Procedure’ v A set of instructions which describe the steps to be followed in order to carry out an activity.
Chapter 4: Control Structures: Selection
Lecture Notes 8/30/05 Program Design & Intro to Algorithms.
Chapter 3 Planning Your Solution
Computer Programming 12 Lesson 2 - Organizing the Problem By Dan Lunney.
DCT 1123 Problem Solving & Algorithms
Sw development1 Software Development 1.Define the problem (Analysis) 2.Plan the solution 3.Code 4.Test and debug 5.Maintain and Document.
Bellwork #8 At most companies, employees are paid extra for working holidays or working overtime. Generally they are paid what is called time-and-a-half.
Programming Logic Program Design. Objectives Steps in program development Algorithms and Pseudocode Data Activity: Alice program.
Simple Program Design Third Edition A Step-by-Step Approach
Pseudocode Demo for Payroll.c
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Flowcharts.
Chapter 2 Pseudocode. Objectives To introduce common words, keywords and meaningful names when writing pseudocode To define the three basic control structures.
Cosc175 - Define Problem/Design Solution/Pseudocode/Trace 1 DEFINE THE PROBLEM.
To find time and a half rates & double time rates based on and hourly wage 1. 5 ½ =.5 = 5/10 Hourly rate X 1.5 Overtime rate 2 Hourly rate X 2__ Overtime.
Decision Structures and Boolean Variables. Sequence Structures Thus far, we’ve been programming “sequence structures” Thus far, we’ve been programming.
Programming Logic and Design, Introductory, Fourth Edition1 Understanding the Three Basic Structures Structure: a basic unit of programming logic Any program.
Finding equivalent Fractions Fractions the same as a ½.
Lecture Notes 1/20/05 Pseudocode.  Pseudocode standard which we will follow in this class: - Statements are written in simple English; - Each instruction.
Lattice Multiplication. Step 1 1)Draw a set of 2 by 2 boxes. 46 x 79 2) Cut the boxes in half diagonally. 3) Place the numbers on the outside of the boxes.
CMSC 104, Version 8/061L05Algorithms2.ppt Algorithms, Part 2 of 3 Topics Problem Solving Examples Pseudocode Control Structures Reading Section 3.1.
Introduction to Decision Structures and Boolean Variables
ALGORITHMS AND FLOWCHARTS
Writing algorithms Introduction to Python.
Dimensional Analysis.
Finding equivalent Fractions
Process Specifications and Structured Decisions
Algorithms, Part 2 of 3 Topics Problem Solving Examples Pseudocode
How much should I get for working??…
2.0 Problem Solving PROGRAM DESIGN
Introduction to Flowcharting
Algorithms, Part 2 of 3 Topics Problem Solving Examples Pseudocode
CIS 115 Possible Is Everything/snaptutorial.com
CIS 115 Education for Service-- cis115.com. CIS 115 All Exercises Devry University (Devry) For more course tutorials visit CIS 115 All.
Problem #2: You need to take in the price of four items a customer bought, determine the total price before tax, determine the tax using the tax.
Pseudocode and Flowcharts
2008/09/22: Lecture 5 CMSC 104, Section 0101 John Y. Park
Understanding the Three Basic Structures
Algorithms, Part 2 of 3 Topics Problem Solving Examples Pseudocode
Algorithms, Part 2 of 3 Topics Problem Solving Examples Pseudocode
Lecture Notes 8/24/04 (part 2)
Chapter 2- Visual Basic Schneider
Algorithms, Part 2 of 3 Topics Problem Solving Examples Pseudocode
LESSON 12-1 Preparing Payroll Time Cards
Introduction to Algorithms and Programming
ANALYZING A PAYROLL TIME CARD
Algorithms, Part 2 of 3 Topics Problem Solving Examples Pseudocode
Fractions and Decimals
The if Statement Control structure: logical design that controls order in which set of statements execute Sequence structure: set of statements that execute.
Click to add Text Computers & Instructions. Computers are given instructions in the form of computer programs that are created through the development.
Algorithms, Part 2 of 3 Topics Problem Solving Examples Pseudocode
Solving Equations Involving Decimals
Algorithms, Part 2 of 3 Topics Problem Solving Examples Pseudocode
Algorithms, Part 2 of 3 Topics Problem Solving Examples Pseudocode
LESSON 12-1 Preparing Payroll Time Cards
Introduction to Flowcharting
AP CS Be able to fix a program written in Java
LESSON 12-1 Preparing Payroll Time Cards
Module 5 ● Vocabulary 1 a sensing block which will ask whatever question is typed into the block and display an input text box at the bottom.
Time Approval Overview March 27, 2003
©2009 – Not to be sold/Free to use
Calculate 81 ÷ 3 = 27 3 x 3 x 3 3 x 3 x 3 x 3 ÷ 3 = This could be written as
ANALYZING A PAYROLL TIME CARD
Introduction to Pseudocode
Presentation transcript:

Each instruction on a separate line Pseudocode Statements in English Each instruction on a separate line Keywords to signify control structures Indention used for clarification Modular - Instructions written from top to bottom - Only one (1) entry point - Only one (1) exit point

Pseudocode Begin CALCULATE TOTAL PAY HOURS Execute CALCULATE TIME AND A HALF module Execute GATHER REGULAR HOURS module Display totals to customer Exit GATHER REGULAR HOURS Input regular hours from customer Display answer to customer Exit CALCULATE TIME AND A HALF Input overtime hours from customer Multiply by 1.5 Display answer to customer Exit