100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Samenvatting

Summary A level 9618 Paper 2 Complete notes (19 pages)

Beoordeling
5,0
(1)
Verkocht
2
Pagina's
19
Geüpload op
07-04-2023
Geschreven in
2022/2023

Complete notes written according to 9618 syllabus. Paper 2 only (Problem solving modules)

Instelling
Vak










Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Study Level
Publisher
Subject
Course

Documentinformatie

Geüpload op
7 april 2023
Aantal pagina's
19
Geschreven in
2022/2023
Type
Samenvatting

Onderwerpen

Voorbeeld van de inhoud

9 Algorithm Design and Problem solving


Show an understanding of abstraction, including the need for and benefits of using abstraction,
and the purpose of abstraction, and produce an abstract model of a system by only including
essential details

Abstraction involves extracting information that is essential while ignore what is not relevant for the
provision (hide unwanted details), we need abstraction to develop simplified models, hide
complexity

Benefits
- time required to develop the program is reduced so the program can be delivered to the
customer quickly
- program is smaller in size so takes up less space in memory and download times are
shortened
- customer satisfaction is greater as their requirements are met without any extraneous
feature


Describe and use decomposition, by breaking down problems into sub-problems leading to the
concept of a program module(procedure/function)

Decomposition allows computer scientists to break a complex problem into smaller parts that can be
further subdivided into even smaller parts until each part is easy to examine and understand, and
solution can be developed for it for modular programming

Why – program code is easier to implement and test/debug, module maybe given to different
people to develop, Encourages the re-usability of program code


Show understanding that algorithm is a solution to a problem expressed as a sequence of
defined steps

Algorithm is an ordered set of steps to be followed in the completion of a task

Use suitable identifier names for the representation of data used by a problem and represent
these using an identifier table

,Write pseudocode that contains input, process and output

INPUT Answer
OUTPUT Score
OUTPUT "You have ", Lives, " lives left"

+, -, *, /, &, ←, <>(not equal), MOD(remainder), DIV(return integer only
(2.9 → 2))


Write pseudocode using the three basic constructs of sequence, selection, and iteration
(repetition)
Sequence -- Instructions / lines of code are executed in a fixed order

IF MyValue > YourValue
THEN
OUTPUT “I win”
ELSE
OUTPUT “You win”
END IF

INPUT Move
CASE OF Move
ꞌWꞌ : Position ← Position − 10
ꞌSꞌ : Position ← Position + 10
ꞌAꞌ : Position ← Position − 1
ꞌDꞌ : Position ← Position + 1
OTHERWISE : OUTPUT “Error”
ENDCASE

Count controlled for loop
Total ← 0
FOR Counter ← 1 TO 10
OUTPUT “Enter number”
INPUT Number
Total ← Total + number
NEXT Counter

Post condition repeat loop
REPEAT
OUTPUT "Please enter the password"
INPUT Password
UNTIL Password = "Secret" #always executed at least once

Pre-condition while loop
INPUT Number
WHILE Number > 9
Number ← Number – 9
ENDWHILE

, Document a simple algorithm using pseudocode

Write pseudocode from a structured English description and a flow chart

Structure English is a method of showing logical steps in an algorithm, using straightforward English
words for commands and mathematical operations to represent the solution. Steps are numbered.


When writing structured English, consider the following:
- identified the variables used and put them into identifier table
- I/O use enter, read, write, print
- Selection use If, then, choose,
- Iteration use loop, repeat
- Process use Set, Calculate
Flowchart shows as a diagram, symbols are linked together with flow lines, showing how a task is
performed, showing the structure of an algorithm.

Flow chart:




Describe and use the process of stepwise refinement to express an algorithm to a level of detail
from which the task might be programmed

Series of steps where each step can be written as a statement in a high-level programming language,
by increasing the level of detail, and break down a task into smaller points

Use logical statement to define parts of an algorithm solution

Logical statement includes (if (A AND B) OR (C AND D))
€5,87
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten


Ook beschikbaar in voordeelbundel

Beoordelingen van geverifieerde kopers

Alle reviews worden weergegeven
2 jaar geleden

5,0

1 beoordelingen

5
1
4
0
3
0
2
0
1
0
Betrouwbare reviews op Stuvia

Alle beoordelingen zijn geschreven door echte Stuvia-gebruikers na geverifieerde aankopen.

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
ryanfok Oxford
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
10
Lid sinds
2 jaar
Aantal volgers
7
Documenten
3
Laatst verkocht
8 maanden geleden

Paper 3 + 4 notes coming out in 2 weeks!

5,0

1 beoordelingen

5
1
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen