0% found this document useful (0 votes)
10 views8 pages

Flowchart

The document outlines the learning objectives for understanding the relationship between algorithms, pseudocode, and program flowcharts. It includes project assignments for creating a flowchart and pseudocode to evaluate student grades and a billing problem exercise. Additionally, it discusses the algorithm development process and provides summary questions for further understanding of the concepts presented.

Uploaded by

Lei Sharpe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views8 pages

Flowchart

The document outlines the learning objectives for understanding the relationship between algorithms, pseudocode, and program flowcharts. It includes project assignments for creating a flowchart and pseudocode to evaluate student grades and a billing problem exercise. Additionally, it discusses the algorithm development process and provides summary questions for further understanding of the concepts presented.

Uploaded by

Lei Sharpe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 8

Program Flowchart,

Pseudocode & Algorithm


development
Week 1:
Friday 8/16/2024

© Abdou Illia, Spring 2003


2
Learning Objectives

 Understand the relation between Algorithm and


Pseudocode or program flowchart
 Draw flowcharts
 Write pseudocodes
3
Project 1

Write a program flowchart and


corresponding pseudocode to solve the
following problem: Assume the input for a
student is name, student number, and
three grades. Output the student name and
an S (Success) if the average of the three
grades is 65 or more. Otherwise (else),
output the student’s name, a U
(Unsuccess), and the number of additional
points needed for an S.
4
Exercise 2: Billing problem
Exercise 11 (Chapter 2)

Look at the program flowchart on the next slide, and answer the following questions:
(a) For what variables are values read as input ?
(b) What variables’ values are output ?
(c) What constants are used ?
(d) Simulate the execution of this algorithm, assuming the values shown below are
read as input for the first four variables named.

NAME Mrs. A. B. Wallace


ITEM Blouse
QTY 3
PRICE 49.99
AMTOD
DISCOUNT
SUBBILL
TAXES
BILL
5
Exercise 2: Billing problem
Exercise 11 (Chapter 2)

START

READ NAME,
ITEM, QTY,
PRICE

AMTOD =
QTY * PRICE

DISCOUNT =
AMTOD * .10

SUBBILL =
AMTOD - DISCOUNT

TAXES =
SUBBILL * .05

BILL =
SUBBILL + TAXES

WRITE NAME,
ITEM, BILL

STOP
Exercise 3’s solution: (Part 1: System 6
Flowchart)

NAME, NUM,
SALES

WEEKLY
PAYROLL
PROGRAM

NAME, NUM,
PAY
7
Algorithm Development Process
 Design verification, in order to:
– Prevent errors from occurring
– Detect and correct errors soon

 Selection of Review Team members for:


– Informal design review or
– Structured design review

 Structured Design Review:


– Selection of representative values of input (data normally expected,
extreme values, invalid data)
– Following designed algorithms to determine what output are produce.
8
Summary Questions
1. Distinguish between Algorithm on the one
hand, and Program flowchart and Pseudocode
on the other hand. Discuss the relations
between the two.

2. (a) List the main keywords used in


Pseudocodes. (b) What control structures they
represent.

You should know how to design program


logic using Program Flowcharts &
Pseudocodes (Review Exercises 1,2,3 above &
Exercise 15 Ch.4 and answer on page 339)

You might also like