# Algorithms2

50 %
50 %
Education

Published on July 9, 2009

Author: ldunphy

Source: slideshare.net

## Description

Algorithms in pseudocode and flowcharts as in the NSW BOS SDD syllabus. Test scenario.

Algorithms Sheet 2 Identifying Control Structures

1. Match the terms sequence, binary selection, multiway selection and iteration to the descriptions that follow: (a) a decision taken in an algorithm which can go either of two ways binary selection (b) decision taken in an algorithm which allows decision more than two choices more than two multiway selection

1. Match the terms sequence, binary selection, multiway selection and iteration to the descriptions that follow: decision (a) a decision taken in the processing done by an ATM to either withdraw, deposit or check account balance, depending on the key pressed more than two multiway selection (d) a loop in a process which repeats the same repeats instructions a number of times iteration

1. Match the terms sequence, binary selection, multiway selection and iteration to the descriptions that follow: always (e) a part of a program where we always add 1 to a counter and then print sequence (f) a portion of a program that is done over and over and over again and only stops when the count over again, reaches zero iteration

2. Identify two of the control structures used in each of the following algorithms (a) Count = 0 sequence REPEAT iteration/repetition DoTheLoop Add 1 to Count sequence UNTIL Count = 5

2. Identify two of the control structures used in each of the following algorithms (b) WHILE Count <= 5 iteration/repetition Add 1 to Count sequence DoTheLoop END WHILE

2. Identify two of the control structures used in each of the following algorithms (c) Get NextVideo sequence IF category = ‘X’ selection (binary) THEN print ‘You cannot watch this!’ ELSE DoBorrowProcess Print details END IF

2. Identify two of the control structures used in each of the following algorithms (d) REPEAT iteration/repetition Enter Number sequence IF Number > highest selection THEN set highest to Number END IF UNTIL no more Numbers

2. Identify two of the control structures used in each of the following algorithms (e) WHILE more input iteration/repetition Select input selection (multiway) CASE 1 DoWithdrawals CASE 2 DoDeposits CASE 3 DoAccountBalance CASE other DoErrorProcess END select Get input sequence END WHILE

3. Identify the control structure other than sequence used in the following algorithms:

3. Identify the control structure other than sequence used in the following algorithms:

3. Identify the control structure other than sequence used in the following algorithms:

3. Identify the control structure other than sequence used in the following algorithms:

Remember You need to know how to apply this information, so see me for further help if you think it is necessary for you.

 User name: Comment:

## Related presentations

#### Now Get Admission In The Local School In Singapore...

November 12, 2018

#### Why Do Students Need An Online Tuition?

November 12, 2018

#### What Are the Types of Assignment Writing Services?

November 12, 2018

#### Private Tuition Opening Opportunities For Learning...

November 12, 2018

#### Montessori schools in Houston and Katty

November 12, 2018

#### School Management Software with Incredible Feature...

November 12, 2018

## Related pages

### Algorithm - Wikipedia, the free encyclopedia

Flow chart of an algorithm (Euclid's algorithm) for calculating the greatest common divisor (g.c.d.) of two numbers a and b in locations named A and B.

### What is algorithm? - Definition from WhatIs.com

An algorithm (pronounced AL-go-rith-um) is a procedure or formula for solving a problem. The word derives from the name of the mathematician, Mohammed ibn ...

### Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne

The textbook Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne surveys the most important algorithms and data structures in use today. The broad ...

### Algorithms | Computer science | Khan Academy

We've partnered with Dartmouth college professors Tom Cormen and Devin Balkcom to teach introductory computer science algorithms, including searching ...

### Warenwirtschaftsystem TRADE für Klein- und Mittelbetriebe

Von der Kassa bis zum eCommerce - Unternehmensweite Lösung für Handelsunternehmen Algorithms bietet mit TRADE heute für kleine und mittlere ...

### Algorithms - Microsoft Store

Algorithms Craig Morrison. 2012 • 17 Musiktitel • Pop • Pop International • Craig Morrison. Album kaufen 7,99 € Kostenlos erhältlich ...