Introduction to Programming Concepts (Edexcel GCSE Computer Science)

Revision Note

James Woodhouse

Written by: James Woodhouse

Reviewed by: Lucy Kirkham

Inputs & Outputs

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

  • Without inputs, programs are not useful as they can't interact with the outside world and always produce the same result

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 - the result of calculations

    • Text

    • Images

    • Actions - triggering events

  • More examples of inputs and outputs will be covered throughout this section

Example 1 - Area of a shape

  • A user wants to write a program to calculate the area of a shape

Input

Process

Output

  • Length

  • Width

  • Length X width

  • Area

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

  • Number of students

  • Score per student

  • TotalScore = TotalScore + score per student

  • Average = TotalScore / Number of students

  • Average mark

Last updated:

You've read 0 of your 5 free revision notes this week

Sign up now. It’s free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Did this page help you?

James Woodhouse

Author: James Woodhouse

Expertise: Computer Science

James graduated from the University of Sunderland with a degree in ICT and Computing education. He has over 14 years of experience both teaching and leading in Computer Science, specialising in teaching GCSE and A-level. James has held various leadership roles, including Head of Computer Science and coordinator positions for Key Stage 3 and Key Stage 4. James has a keen interest in networking security and technologies aimed at preventing security breaches.

Lucy Kirkham

Author: Lucy Kirkham

Expertise: Head of STEM

Lucy has been a passionate Maths teacher for over 12 years, teaching maths across the UK and abroad helping to engage, interest and develop confidence in the subject at all levels.Working as a Head of Department and then Director of Maths, Lucy has advised schools and academy trusts in both Scotland and the East Midlands, where her role was to support and coach teachers to improve Maths teaching for all.