Program Function and Purpose
These are my program function and purpose notes.
- What Will We Learn?
- Essential Knowledge
- What types of input do your devices accept?
- How do programs receive input?
- Computing Innovations
- Innovations Created for a Purpose
- How does a program know what to do upon an event?
What Will We Learn?
- Describe the purpose of a computing innovation
- Identify input(s) to a program
- Identify output(s) produced by a program
Essential Knowledge
- The purpose of computing innovations is to solve problems or to pursue interests through creative expression
- An understanding of the purpose of a computing innovation provides developers with an improved ability to develop that computing innovation
- Program inputs are data sent to a computer for processing by a program. Input can come in a variety of forms, such as tactile, audio, visual, or text.
- An event is associated with an action and supplies input data to a program.
- Events can be generated when a key is pressed, a mouse is clicked, a program is started, or any other defined action occurs that affects the flow of execution
- Inputs usually affect the output produced by the program
- In event-driven programming, program statements are executed when triggered rather than through the sequential flow of control
- Inputs can come from a user or other programs
- Program outputs are any data sent from a program to a device. Program output can come in a variety of forms, such as tactile, audio, visual, or text.
- Program output is usually based on a program’s input or prior state (e.g. internal values)
What types of input do your devices accept?
- Smart Phone/Tablet
- Laptop/Computer
- Gaming Console
Most Programs are written in an event driven environment.
- “Events” are triggered by some action, which usually sends input to the program
- Inputs usually affect outputs What type of “events” can use a trigger?
- mouse clicks
- screen taps/swipes
- physical button clicks
- keyboard entries
- audio trigger
Computing Innovations
Categories of Innovations
- Applications
- Games
- Social Media: Allows users to connect from a distance and archive their activities
- Business
- Productivity
- Physical Devices
- Computers
- Smart Phones/Tablets
- Smart “Things”
- Wearables
- Systems
- E-commerce: Allows users to save time and money by being able to shop from home
- Cloud Services
- Digital Assistant Devices allow users to control their devices hands-free, making them safer while driving or more convenient when trying to multitask
- Why Does Computing Innovation Exist?
- What problem(s) does the computing innovation solve?
- What does the computing innovation allow us to do that we could not do before?
How does a program know what to do upon an event?
An action triggers to an event:
- Action may be initiated by the user or another program/device
The program “jumps” to the code segment according to the event:
- The code segment is executed
- Output is triggered by code segment The program code is not necessarily executed “in order”:
- Code segments are executed as they are called, according to the events triggered