Algorithms2

50 %
50 %
Information about Algorithms2
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.

Add a comment

Related presentations

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.
Read more

MP3 Download Jaetiago - 'Jaetiago Algorithms'

MP3 'Algorithms' von Jaetiago vorhören und downloaden. Algorithms ist am 2016-05-26 auf Resopal Schallware als MP3 Download bei DJTUNES erschienen und ...
Read more

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 ...
Read more

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 ...
Read more

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 ...
Read more

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 ...
Read more

Algorithms - Microsoft Store

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

Introduction to Algorithms: Amazon.de: Thomas H. Cormen ...

Thomas H. - Introduction to Algorithms jetzt kaufen. ISBN: 9780262533058, Fremdsprachige Bücher - Programmieren
Read more

Algorithms - Wikibooks, open books for an open world

Algorithms is a featured book on Wikibooks because it contains substantial content, it is well-formatted, and the Wikibooks community has decided to ...
Read more