Computer Science GCES OCR
-
Cpu Architecture Performance And Embedded Systems Ocr5 主题
-
Primary And Secondary Storage Ocr6 主题
-
Data Storage And Compression Ocr12 主题
-
Units Of Data Storage Ocr
-
Processing Binary Data Ocr
-
Data Capacity And Calculating Capacity Requirements Ocr
-
Converting Between Denary And Binary Ocr
-
Binary Addition Ocr
-
Converting Between Denary And Hexadecimal Ocr
-
Converting Between Binary And Hexadecimal Ocr
-
Binary Shifts Ocr
-
Representing Characters Ocr
-
Representing Images Ocr
-
Representing Sound Ocr
-
Compression Ocr
-
Units Of Data Storage Ocr
-
Networks And Topologies Ocr6 主题
-
Wired And Wireless Networks Protocols And Layers Ocr6 主题
-
Identifying And Preventing Threats To Computer Systems And Networks Ocr2 主题
-
Operating Systems And Utility Software Ocr2 主题
-
Ethical Legal Cultural And Environmental Impact Ocr2 主题
-
Computational Thinking Searching And Sorting Algorithms Ocr3 主题
-
Designing Creating And Refining Algorithms Ocr5 主题
-
Programming Fundamentals And Data Types Ocr5 主题
-
Additional Programming Techniques Ocr7 主题
-
Defensive Design And Testing Ocr6 主题
-
Boolean Logic Diagrams Ocr2 主题
-
Programming Languages And Integrated Development Environments Ides Ocr3 主题
-
The Exam Papers Ocr2 主题
-
Structuring Your Responses Ocr3 主题
Inputs Processes And Outputs For A Problem Ocr
Exam code:J277
Inputs, Processes, & Outputs for a Problem
-
Applying algorithmic thinking leads to a set of precise step-by-step instructions that can solve a problem
-
To create an algorithm, the inputs, processes and outputs must be identified
What is an input?
-
An input is data or information being entered/taken into a program before it is processed in the algorithm
-
An input can come from a variety of sources, such as:
-
User – keyboard, mouse, controller, microphone
-
Sensors – temperature, pressure, movement
-
What is a process?
-
A process is a doing action performed in the algorithm that transforms inputs into the desired output. The central processing unit (CPU) executes the instructions that define the process
-
An example would be:
-
Comparing two numbers
-
Calculating an average
-
What is an output?
-
An output is the result of the processing in an algorithm and usually the way a user can see if an algorithm works as intended
-
An output can take various forms, such as:
-
Numbers – result of calculations
-
Text
-
Images
-
Actions – triggering events
-
Example 1 – Area of a shape
-
A user wants to write a program to calculate the area of a shape
|
Input |
Process |
Output |
|---|---|---|
|
|
|
Example 2 – Average test score
-
A teacher wants to calculate the average mark achieved on a test amongst students in a class. The teacher needs to enter how many students in the class and for each students a score out of 50
|
Input |
Process |
Output |
|---|---|---|
|
|
|
Worked Example
A bus company offers a discount to passengers if they have a valid ‘student’ card or are over 65 years of age.
Identify all the inputs that will be required in an algorithm to solve this problem [2]
Answer
-
Student card (YES/NO)
-
Age (integer)
Responses