Input/Output CS Thinking Example 4
Follow the full solution, then compare it with the other examples linked below.
Example 4
hardDescribe three different input devices and three different output devices a computer program might use. For each, give an example of a program that uses it.
Solution
- 1 Step 1: Input devices: keyboard (word processor), mouse (drawing app), microphone (voice assistant). These capture data from the user or environment.
- 2 Step 2: Output devices: monitor (web browser), speaker (music player), printer (document editor). These present results to the user.
- 3 Step 3: Some devices are both input and output, like a touchscreen (smartphone app).
Answer
Input: keyboard, mouse, microphone. Output: monitor, speaker, printer. Programs use combinations of these for user interaction.
Understanding physical input and output devices connects software concepts to hardware. Modern programs often use multiple input and output channels simultaneously.
About Input/Output
The mechanisms by which a program receives data from the outside world (input) and sends results back (output). Input can come from keyboards, files, sensors, or network connections; output can go to screens, files, printers, or other devices.
Learn more about Input/Output โMore Input/Output Examples
Example 1 easy
Identify the inputs and outputs in this program: name = INPUT('What is your name?'). age = INPUT('Ho
Example 2 mediumA temperature converter takes a Celsius value as input and outputs the Fahrenheit equivalent. Write
Example 3 mediumA program reads a list of 5 test scores and outputs the average. Identify the inputs, process, and o