
Algorithm and Problem Solving - IGCSE
Presentation
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
Robert B.A
Used 11+ times
FREE Resource
24 Slides • 42 Questions
1
Algorithm and Problem Solving
2
What will you Learn?
The purpose of an algorithm and the processes involved in it
Standard methods of solution
Validation checks when data is input
Verification checks when data is input
Use of different types of test data including: Writing, amending, identifying, and correcting errors in:
The stages in the program development cycle
Computer systems and sub-systems
Problem decomposition into component parts
Methods used to design and construct solutions to problems
3
The program development life cycle is divided into five stages
analysis
Analysis
Design
Coding
Testing and
Maintenance
The program development life cycle
4
Analysis
This stage involves clear identification of the problem. It involves both abstraction and decomposition.
•Abstraction keeps the key elements required for the solution to the problem and discards any unnecessary details and information that is not required.
•Decomposition breaks down a complex problem into smaller parts, which can then be subdivided into even smaller parts, that can be solved easily.
5
Design
The program specification from the analysis stage is used to show to how the program should be developed.
When the design stage is complete, the programmer should know what is to be done.
This stage involves flowcharts, pseudocodes
6
3. Coding and iterative testing
The program or set of programs is developed.
Each module of the program is written using a suitable programming language and then tested to see if it works.
Iterative testing means that modular tests are conducted, code amended, and tests repeated until the module performs as required.
7
Testing
The completed program or set of programs is run many times with different sets of test data. This ensures that all the tasks completed work together as specified in the program design.
8
Multiple Choice
Stage that involves the use of pseudocodes and flowcharts
Coding stage
9
Multiple Choice
The process of selecting what you want and ignoring unwanted information
Abstraction
Analysis
Selection
10
Multiple Choice
What is the first phase of the program development lifecycle?
Implementation
Testing
Requirements Analysis
Maintenance
11
Multiple Choice
Which phase of the program development lifecycle involves creating a detailed plan for the project, including timelines and resource allocation?
Design
Implementation
Planning
Maintenance
12
Multiple Choice
What phase of the program development lifecycle focuses on making updates and improvements to the software to address issues and add new features?
13
Computer Systems
A computer system comprises software, data, hardware, communications, and people; each can be divided into sub-systems.
Each sub-system can be further divided into sub-systems until each sub-system performs a single action.
14
The computer system and its sub-systems
In order to understand how a computer system is built up and how it works it is often divided up into sub-systems.
Top-down design is the decomposition of a computer system into a set of subsystems, then breaking each sub-system down into a set of smaller sub-systems, until each sub-system just performs a single action.
15
Decomposing a problem
The component parts of any computer system are:
Input
Process
Output
•storage
16
Activity
Use the alarm app to decompose and explain the following
Input
Process
Output
storage
17
Response
inputs – time to set the alarm, remove a previously set alarm time, switch an alarm off, press snooze button
processes – continuously check if the current time matches an alarm time that has been set, storage and removal of alarm times, management of snooze
outputs – continuous sound/tune (at alarm time or after snooze time expired)
storage – time(s) for alarms set.
18
Homework
Mention any one computer system you use frequently. Identify the input, processing, storage and output of the system you have mentioned.
19
Recap of the last lesson.
20
Multiple Choice
What is the primary purpose of an output device in a computer system?
21
Multiple Choice
Which component of a computer system is responsible for performing calculations and executing instructions?
Input device
Output device
Central Processing Unit (CPU)
Memory
22
Multiple Choice
Which of the following is a volatile storage device used for temporary data storage in a computer?
Hard disk drive (HDD)
Solid-state drive (SSD)
Random Access Memory (RAM)
Optical disc drive (ODD)
23
Multiple Choice
When you save a document on your computer's hard drive, which type of storage is being used?
24
Multiple Choice
What is the primary function of an input device in a computer system?
To store data
To process data
To display data
To enter data into the computer
25
Multiple Choice
When you insert your ATM card into the machine and enter your PIN, which part of the computer system is responsible for processing this information?
Input
Output
Storage
Processing
26
Multiple Choice
Which part of the ATM system ensures the security of your financial transactions by encrypting and protecting your data?
Input
Output
Processing
Storage
27
Multiple Choice
When you withdraw cash from an ATM, which part of the computer system is responsible for retrieving the requested amount from your account?
Input
Output
Processing
Storage
28
Multiple Choice
Which stage of software development involves gathering and understanding the requirements of the system to be developed?
Analysis
Design
Coding
Testing
29
Multiple Choice
During the analysis and design stages, what documentation is typically created to describe the software system?
Source code
Test plans
User manuals
Flowcharts and diagrams
30
Multiple Choice
Which stage is responsible for ensuring that the software functions correctly and meets the specified requirements?
Analysis
Design
Coding
Testing
31
Multiple Choice
Which phase of software development involves the actual implementation of the software based on the design specifications?
Analysis
Design
Coding
Testing
32
Multiple Choice
During the coding stage, what do software developers primarily focus on?
Gathering requirements
Creating test cases
Writing program code
Documenting the system
33
Multiple Choice
Which stage of software development is often referred to as the "blueprint" phase, where the architecture and structure of the software are defined?
Analysis
Design
Coding
Testing
34
Multiple Choice
During the analysis stage, what is the primary goal?
Writing code
Creating user interfaces
Defining system requirements
Finding and fixing bugs
35
Methods used to design and construct a solution to a problem
The following are the methods used for design and construct a solution to a problem
structure Diagrams
Flowcharts
Pseudocode
36
Structure diagrams
Structure diagrams are hierarchical, showing how a computer system solution can be divided into sub-systems with each level giving a more detailed breakdown. If necessary, each sub-system can be further divided.
37
Flowcharts
A flowchart shows diagrammatically the steps required to complete a task and the order that they are to be performed. These steps, together with the order, are called an algorithm.
Flowcharts are drawn using standard flowchart symbols.
38
Replace this with a header
Replace this with your body text. Duplicate this text as many times as you would like. All provided templates can be reused multiple times. Wish you a good day.
Happy teaching!
39
Process flowchart symbols are used to show actions, for example, when values are assigned to variables.
Rectangle is used to show a process in a flowchart
Process
Terminator flowchart symbols are used at the beginning and end of each
flowchart.
An oval shape is used to show start or stop
Start or Stop (Begin/End)
Flowchart Symbols
40
Decision flowchart symbols are used to decide which action is to be taken next; these can be used for selection and repetition/iteration.
A diamond is used to show decision in a flowchart
Decision
The same symbol of input and output.
A Parallelogram is used to show input or output in a flowchart
Input and output
Cont..
41
Multiple Choice
In a flowchart, where would you find the result of a calculation or the output of a process?
42
Multiple Choice
In a flowchart, where would you expect to find user-provided data or input?
43
Multiple Choice
In a flowchart for a simple calculator program that adds two numbers, what would the addition operation be classified as?
44
Multiple Choice
In a flowchart representing a program to find the largest number among three input values, what would the user-provided numbers be classified as?
Input
Output
Process
Decision
45
Multiple Choice
In a flowchart that calculates the area of a rectangle when given its length and width, what would the "Length" and "Width" be classified as?
Input
Output
Process
Decision
46
Multiple Choice
In a flowchart for a temperature conversion program that converts Celsius to Fahrenheit, what would the Fahrenheit temperature be classified as?
47
Multiple Choice
In a flowchart for a program that calculates the average of a list of numbers, what would the computed average value be classified as?
48
Multiple Choice
In a flowchart representing a program that prints "Hello, World!" to the screen, what would the message "Hello, World!" be classified as?
49
Multiple Choice
In a flowchart for a simple ATM withdrawal process, what would the action of dispensing cash to the user be classified as?
50
Multiple Choice
In a flowchart for a simple calculator program, what would "Enter Number 1" be classified as?
51
Multiple Choice
In a flowchart for a weather app that displays the current temperature, what would "Display Temperature" be classified as?
52
Multiple Choice
In a flowchart for a program that calculates the area of a circle, what would be considered the "process"?
53
Multiple Choice
In a flowchart for a simple calculator program that adds two numbers together, what would be considered the "process"?
54
Multiple Choice
In a flowchart for a temperature conversion program that converts Celsius to Fahrenheit, what would be considered the "input"?
55
Multiple Choice
In a flowchart for a program that prints the sum of all even numbers from 1 to 100, what would be considered the "output"?
The sum of even numbers
The even numbers themselves
The loop that iterates through numbers
The instruction to add numbers
56
Multiple Choice
In a flowchart for an ATM (Automated Teller Machine) withdrawal process, which of the following is most likely to be the output?
The user's PIN (Personal Identification Number)
ATM Card
Bank Location
57
Multiple Choice
In a flowchart for a weather app, where the user inputs their location and the app provides the current temperature, what is considered as the output?
The user's location.
The temperature units (e.g., Celsius or Fahrenheit).
The current temperature for the specified location.
The app's logo.
58
Multiple Choice
In a flowchart for a login system, where users enter their username and password, and the system checks if they are correct before granting access, what represents the process?
Entering the username and password.
Checking if the entered username and password are correct.
Granting access.
Displaying a welcome message.
59
Multiple Choice
In a flowchart for a simple alarm clock, where users set the alarm time and the clock sounds the alarm at the specified time, what is considered as the output?
The alarm clock's current time.
The sound of the alarm.
The snooze button.
The user's preferred alarm time.
60
Multiple Choice
In a flowchart, what does a rectangle usually represent?
61
Multiple Choice
Which flowchart symbol is typically used to represent a decision point?
62
Multiple Choice
What symbol in a flowchart signifies the end of a process or program?
63
Flow lines
Flowchart flow lines use arrows to show the direction of flow, which is usually, but not always, top to bottom and left to right.
64
Flowchart Examples
sum of two numbers
simple interest
Area of a rectangle
Calculate age
Convert temperature from centigrade to fahrenheit
check whether a person is a child or adult
check the grade and display pass or fail
65
More Examples
flowchart for a calculator (+,-,*, and /)
Check if a number is a multiple of three or not.
66
Tickets are sold for a concert at $20 each, if 10 tickets are bought then the discount is 10%, if 20 tickets are bought the discount is 20%. No more than 25 tickets can be bought in a single transaction.
Homework
Algorithm and Problem Solving
Show answer
Auto Play
Slide 1 / 66
SLIDE
Similar Resources on Wayground
59 questions
KKA -SMA - MODUL 2
Presentation
•
Professional Development
60 questions
Cells and Cell Processes
Presentation
•
10th - 12th Grade
58 questions
第五课:蓝色的衣服很好看
Presentation
•
KG - Professional Dev...
58 questions
La conjugaison du passé simple
Presentation
•
KG
59 questions
Guess the Gibberish
Presentation
•
Professional Development
63 questions
712 GAME NIGHT 2020
Presentation
•
Professional Development
59 questions
Escondido Engaging Lessons/Activities Part 2
Presentation
•
Professional Development
60 questions
Ôn tập tin 6
Presentation
•
KG
Popular Resources on Wayground
20 questions
STAAR Review Quiz #3
Quiz
•
8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
6 questions
Marshmallow Farm Quiz
Quiz
•
2nd - 5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
12 questions
What makes Nebraska's government unique?
Quiz
•
4th - 5th Grade