Algorithms examples

ContentAdministrator1 109 views 9 slides Oct 14, 2020
Slide 1
Slide 1 of 9
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9

About This Presentation

Writing algorithms


Slide Content

PRACTICE
Algorithms

Selection/Conditional (IF)

Selection/Conditional (IF) (Try Out)
Write an algorithm to determine if a student has
pass or fail the examination if the pass mark was
55.

For Loop

For Loop (Try out)
Write an algorithm to read the name and price of ten
(10) items. Print a price list showing the ten items.

While Loop

While Loop (Try Out)
Write an algorithm to prompt the user to input a
number of numbers. It should continue to prompt
the user until zero is entered. Print each number
entered.

Repeat Loop

Repeat Loop (Try Out)
Write an algorithm to prompt the user to input a
number of numbers. It should continue to prompt
the user until zero is entered. Print each number
entered.