AP Computer Science Principles
2024-2025
Mr.Hirdt
Chapter 1...................................................................................................................................... 2
,
Chapter 1
Pseudocode: A representation of code used to demonstrate the
implementation of an algorithm without actually coding it. This
often acts as a rough draft.
Note: This pseudocode should be clear to everyone regardless
of ability.
Abstraction: Hiding details . Being able to do something without
needing to know without all the fine specific details behind the
science.
Examples:
- Baking a cookie or cake and not needing to know about
the chemistry
- Driving a car and not needing to know how the car actually
functions
- Getting dressed and not thinking about every possible
combination
Note : Computer coding is Abstraction. Without Abstraction we
would need to know and speak binary in order to code a
computer. With abstraction I can learn a language like Python
and the computer can convert my Python to Binary so the
computer can understand.
Psuedocode Using the AP CSP Reference Sheet
Challenge #1 : Ask a user for two different numbers , then add
the numbers together and respond with the answer.
, None
DISPLAY ( Please enter a number )
num1 ← INPUT ()
DISPLAY ( Please enter another number )
num2 ← INPUT ()
ans ← num1 + num2
DISPLAY(ans)
Challenge #2 : Roll a dice , let the user know what number they rolled.
None
dice ← RANDOM (1,6)
DISPLAY(dice)
Challenge #3 : Roll two dice. Add the numbers on the dice up. Let the user know the total of
their roll.
None
dice1 ← RANDOM (1,6)
dice2 ← RANDOM (1,6)
ans ← dice1 +dice2
DISPLAY (ans)
Iterative Development Process (Cycle):
● Planning/Figuring out the Requirements
● Analyze and Design a Solution
● Implementation (Code)
● Testing (Run the Code)
● Review/Evaluate
● Pros
- Increased adaptability
- Cost Effective Method
- Allows for users to work in parallel
- Reduces project level risk
- Increase positive/reliability user feedback
● Cons
- Increases Risk of Scope Creep
2024-2025
Mr.Hirdt
Chapter 1...................................................................................................................................... 2
,
Chapter 1
Pseudocode: A representation of code used to demonstrate the
implementation of an algorithm without actually coding it. This
often acts as a rough draft.
Note: This pseudocode should be clear to everyone regardless
of ability.
Abstraction: Hiding details . Being able to do something without
needing to know without all the fine specific details behind the
science.
Examples:
- Baking a cookie or cake and not needing to know about
the chemistry
- Driving a car and not needing to know how the car actually
functions
- Getting dressed and not thinking about every possible
combination
Note : Computer coding is Abstraction. Without Abstraction we
would need to know and speak binary in order to code a
computer. With abstraction I can learn a language like Python
and the computer can convert my Python to Binary so the
computer can understand.
Psuedocode Using the AP CSP Reference Sheet
Challenge #1 : Ask a user for two different numbers , then add
the numbers together and respond with the answer.
, None
DISPLAY ( Please enter a number )
num1 ← INPUT ()
DISPLAY ( Please enter another number )
num2 ← INPUT ()
ans ← num1 + num2
DISPLAY(ans)
Challenge #2 : Roll a dice , let the user know what number they rolled.
None
dice ← RANDOM (1,6)
DISPLAY(dice)
Challenge #3 : Roll two dice. Add the numbers on the dice up. Let the user know the total of
their roll.
None
dice1 ← RANDOM (1,6)
dice2 ← RANDOM (1,6)
ans ← dice1 +dice2
DISPLAY (ans)
Iterative Development Process (Cycle):
● Planning/Figuring out the Requirements
● Analyze and Design a Solution
● Implementation (Code)
● Testing (Run the Code)
● Review/Evaluate
● Pros
- Increased adaptability
- Cost Effective Method
- Allows for users to work in parallel
- Reduces project level risk
- Increase positive/reliability user feedback
● Cons
- Increases Risk of Scope Creep