Weeks – 01/ 2 Introduction to flowcharts components and psuedocode.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

4 Control Statements: Part 1.
Objectives Knows and understand about another kind of flowchart’s symbols (looping) Have ability to create structured solution on simple problem(s) Have.
Bellwork If you roll a die, what is the probability that you roll a 2 or an odd number? P(2 or odd) 2. Is this an example of mutually exclusive, overlapping,
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
1 Chapter 40 - Physiology and Pathophysiology of Diuretic Action Copyright © 2013 Elsevier Inc. All rights reserved.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
and 6.855J Cycle Canceling Algorithm. 2 A minimum cost flow problem , $4 20, $1 20, $2 25, $2 25, $5 20, $6 30, $
Writing Pseudocode And Making a Flow Chart A Number Guessing Game
Chapter 3: Top-Down Design with Functions Problem Solving & Program Design in C Sixth Edition By Jeri R. Hanly & Elliot B. Koffman.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
0 - 0.
ALGEBRAIC EXPRESSIONS
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
MULTIPLYING MONOMIALS TIMES POLYNOMIALS (DISTRIBUTIVE PROPERTY)
ADDING INTEGERS 1. POS. + POS. = POS. 2. NEG. + NEG. = NEG. 3. POS. + NEG. OR NEG. + POS. SUBTRACT TAKE SIGN OF BIGGER ABSOLUTE VALUE.
MULTIPLICATION EQUATIONS 1. SOLVE FOR X 3. WHAT EVER YOU DO TO ONE SIDE YOU HAVE TO DO TO THE OTHER 2. DIVIDE BY THE NUMBER IN FRONT OF THE VARIABLE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
ALGEBRAIC EXPRESSIONS
Lecture 10 Flow of Control: Loops (Part 2) COMP1681 / SE15 Introduction to Programming.
ZMQS ZMQS
Circumference and p Lesson
Pre-Calculus Chapter 6 Additional Topics in Trigonometry.
O X Click on Number next to person for a question.
© S Haughton more than 3?
Twenty Questions Subject: Twenty Questions
1 4 Square Questions B A D C Look carefully to the diagram Now I will ask you 4 questions about this square. Are you ready?
Linking Verb? Action Verb or. Question 1 Define the term: action verb.
Squares and Square Root WALK. Solve each problem REVIEW:
Energy & Green Urbanism Markku Lappalainen Aalto University.
Past Tense Probe. Past Tense Probe Past Tense Probe – Practice 1.
This, that, these, those Number your paper from 1-10.
CS101: Introduction to Computer programming
Control Structures Selections Repetitions/iterations
Event 4: Mental Math 7th/8th grade Math Meet ‘11.
Addition 1’s to 20.
CS 240 Computer Programming 1
25 seconds left…...
Copyright © Cengage Learning. All rights reserved.
Test B, 100 Subtraction Facts
Systems Development and Documentation Techniques
11 = This is the fact family. You say: 8+3=11 and 3+8=11
Week 1.
Chapter 10: The Traditional Approach to Design
Systems Analysis and Design in a Changing World, Fifth Edition
More on Algorithms and Problem Solving
We will resume in: 25 Minutes.
Solving Addition and Subtraction Inequalities
Bottoms Up Factoring. Start with the X-box 3-9 Product Sum
1 Unit 1 Kinematics Chapter 1 Day
O X Click on Number next to person for a question.
PSSA Preparation.
A Level Computing#BristolMet Session Objectives#U2 S2 MUST describe the steps of an algorithm using a program flowchart SHOULD explain the data types and.
Subject: Information Technology Grade: 10
INTRODUCTION TO PROGRAMMING
Programming Tools Flowcharts Pseudocode Algorithm Chapter 2.
1 Introduction to Flowcharting. 2 Writing a program Defining the problem –Write down what the program will do Planning –Write down the steps, draw a flowchart.
1 Introduction to Flowcharting. 2 Writing a program Defining the problem –Write down what the program will do Planning –Write down the steps, draw a flowchart.
CSEB114: Principle of programming
Control Structures (A) Topics to cover here: Introduction to Control Structures in the algorithmic language Sequencing.
Flowcharts. Problem Solving Computer programs are written to solve problems or perform tasks Programmers translate the solutions or tasks into a language.
1 Programming Tools Flowcharts Pseudocode Hierarchy Chart Direction of Numbered NYC Streets Algorithm Class Average Algorithm.
Introduction to Computing Dr. Nadeem A Khan. Lecture 2.
Exercise 1 #include int main() { printf(“Hello C Programming!\n”); return 0; } 1.Run your Visual Studio 2008 or Create a new “project” and add.
Introduction to Computing
Understanding Problems and how to Solve them by using Computers
Presentation transcript:

Weeks – 01/ 2 Introduction to flowcharts components and psuedocode

1 11 Objectives Have familiarity using Ms.Visio Have a basic concept in designing solution using flowcharts. Have a basic concept in designing solution using pseudo-codes. Have a basic concept in solving problems and write them as pseudo-codes

2 2 Ms Visio Start all programs ms office ms Visio

3 3 Flowchart symbols Terminator START or END symbols to begin or terminate flowchart. Input/Output Data entry or display output program Process Transform data or expression Conditional / Decision Process with selection Preparation Initialize Arrow connection Connector Online connector

4 4 Flowchart Example-1

5 5 Flowchart Example-2

6 6 Exercise (flowchart) 1.Write a letter for your friend by post 2.Calculate employee fee which reads employee name, hours, and hourly rate. 3.Calculate grade a course with formula grade = 30% x Midterm + 20% x Task + 30% x Final+ 20%xQuiz. Input : name of course, Midterm, Quiz, Final, Task

7 7 Exercise (flowchart) 4. Calculating is total of sales by entering the name of goods, quantity, and price. Output : name of goods and total of purchasing. 5. Calculating area and circumference of circle. With input radius. Output : radius, around and area of circle.

9 No.1

10 No. 2

11 No.3

12 Pseudocode Pseudocode is informal form for depict of algorithm like a programming Ianguage. Objective of pseudocode : Easy to read Easy to understand Easy to get an idea

13 Pseudocode Example Send a letter to friend: 1. Write a letter on a paper. 2. Take an envelope. 3. Put a letter in an envelope. 4. Envelope cover use glue. 5. When you remember the address, so writing address at envelope. 6. Otherwise, find in adrress book, then writing address at envelope. 7. Giving stamp on a letter. 8. Bring a letter to the postoffice.

14 Exrcise (write a pseudocode) 1.Calculate employee fee which reads employee name, hours, and hourly rate. 2.Calculate grade a course with formula grade = 30% x Midterm + 20% x Task + 30% x Final+ 20%xQuiz. Input : name of course, Midterm, Task, Final, Quiz 3.Calculating total of sales by entering the name of goods, quantity, and price. Output : name of goods and total of purchasing.

15 Exercise(write a pseudocode) 4. Calculating area and circumference of circle. With input radius. Output : radius, circumference and area of circle. 5. Changing two number one another. Example initialy number1=4, number2=7, after executing its result number1=7, number2=4 6. Write a program to convert a temperature in degrees Fahrenheit to degrees Celcius and Reamur.

16 Answers-1 1.Calculate employee fee which reads employee name, hours, and hourly rate. Data Dictionary Name : string; Hour,rate, Fee : integer; Algorithm Input(Name, Hour) Rate 8000 Fee Hour*Rate

17 Answers-2 1.Calculate grade a course with formula grade = 30% x Midterm + 20% x Task + 30% x Final+ 20%xQuiz. Input : name of course, Midterm, Task, Final, Quiz Data Dictionary Course : string; MT, FT, Task, Q : integer; Grade :real Algorithm Input(Course ) Input(MT, FT, Task,Q) Grade 0.3*MT+0.2*Task+0.3*FT+0.2*Q Output(Course, Grade)

18 Answer-3 Calculating total of sales by entering the name of goods, quantity, and price. Output : name of goods and total of purchasing Data Dictionary sGood : string; Q, P, Total : integer; Algorithm Input(sGood, Q, P ) T Q*P Output(sGood, T)

19 Answer-4 4. Calculating area and circumference of circle. With input radius. Output : radius, circumference and area of circle. Data Dictionary radius : integer; Area, C :real Algorithm Input(radius ) Area 3.14*radius*radius C 2*3.14*radius Output(Area =, Area) Output(Circumference =,C)

20 Answer-5 Changing two number one another. Example initialy number1=4, number2=7, after executing its result number1=7, number2=4 Data Dictionary number1, number2, temp : integer Algorithm Input(number1, number2) temp number1 number1 number2 number2 temp Output(number1, number2)