Cc1101 (Computer Programming 1)
Cc1101 (Computer Programming 1)
CC 1101
CC 1101
CLUB
INTRODUCTION TO
INTRODUCTION TO COMPUTERS
COMPUTERS && PROGRAMMING
PROGRAMMING
School
Writing papers, online classes, ✅ Systematic Plan → Code → Test → Debug
research design → Document
1
QUERIOSITY ORGANIZATION
CC 1101
CC 1101
CLUB
INTRODUCTION TO
INTRODUCTION TO COMPUTERS
COMPUTERS && PROGRAMMING
PROGRAMMING
2
QUERIOSITY ORGANIZATION
CC 1101
CC 1101
CLUB
INTRODUCTION TO
INTRODUCTION TO COMPUTERS
COMPUTERS && PROGRAMMING
PROGRAMMING
Slower due to
Faster after
Speed real-time
compilation
parsing
3
QUERIOSITY ORGANIZATION
CC 1101
CC 1101
CLUB
INTRODUCTION TO
INTRODUCTION TO COMPUTERS
COMPUTERS && PROGRAMMING
PROGRAMMING
Summary Points
Syntax
1.Programming languages allow humans to instruct
Error errors Errors shown
computers.
Handling flagged during runtime
2.Syntax and semantics define how code is written
early
and understood.
3.Translators (compilers/interpreters) convert
source code into machine-executable form.
Binary No binary; runs 4.High-level languages are easier to use but slower;
Output low-level languages are efficient but complex.
executable directly
5.Syntax errors must be corrected for successful
program execution.
📌 Note: Some languages (e.g., Python) use interpreters, Week 4 – Data Types and Variables
while others (e.g., C++) use compilers.
Understanding how data is represented in
5. Machine Language & Assembly programs and how variables are declared, named,
Machine Language: Binary code (0s and 1s), and used.
directly executed by hardware
Learning Outcomes
Assembly Language: Uses mnemonic codes (e.g.,
ADD, MOV) and symbolic names for memory By the end of this week, students should be able to:
locations Identify and classify different types of data
Requires detailed knowledge of hardware used in programming
architecture Differentiate between constants and variables
Apply proper naming conventions for variables
Syntax Error Declare and use variables in basic programming
Occur when code violates language rules context
Examples:
Key Concepts
Misspelled keywords
Incorrect punctuation 1. What is Data?
Invalid structure
💡 Unlike humans, computers cannot infer meaning from
Data is raw information entered into a computer
for processing.
incorrect syntax—errors must be fixed before execution.
Represented using:
Suggested Activities Characters (A-Z, a-z)
Activity 1: Language Classification Digits (0-9)
Provide examples of code snippets and ask Symbols (+, -, /, *, <, >, =)
students to classify them as high-level, low-level,
2. Data Classifications
or assembly
Activity 2: Syntax Error Hunt
Present a buggy code sample and ask students to Type Description
identify and correct syntax errors
Activity 3: Translator Simulation
Role-play: One student writes source code, Used for calculations (e.g., 10,
Numeric
another acts as a compiler/interpreter to -3.14)
“translate” and execute it
Quick Quiz (Formative Assessment)
Used for identification or
1.What is the difference between source code and
Non-numeric description (e.g., "Hello",
object code?
2.Name one advantage of using a high-level
"$100")
language.
3.What does a compiler do?
4.Why are syntax errors critical in programming?
4
QUERIOSITY ORGANIZATION
CC 1101
CC 1101
CLUB
INTRODUCTION TO
INTRODUCTION TO COMPUTERS
COMPUTERS && PROGRAMMING
PROGRAMMING
Element Description
5
QUERIOSITY ORGANIZATION
CC 1101
CC 1101
CLUB
INTRODUCTION TO
INTRODUCTION TO COMPUTERS
COMPUTERS && PROGRAMMING
PROGRAMMING
Example 3:
3. Expression Formats
Simple Format:
operand operator operand
Example: A + B, 25 * 3
Mixed Format:
Multiple operands and operators
Example: 8 + 4 - 3 * 2, X / 5 + B
Sample Evaluations
Example 1:
6
QUERIOSITY ORGANIZATION
CC 1101
CC 1101
CLUB
INTRODUCTION TO
INTRODUCTION TO COMPUTERS
COMPUTERS && PROGRAMMING
PROGRAMMING
Example 2:
Example 3:
7
QUERIOSITY ORGANIZATION
CC 1101
CC 1101
CLUB
INTRODUCTION TO
INTRODUCTION TO COMPUTERS
COMPUTERS && PROGRAMMING
PROGRAMMING
Key Concepts
✅ Simple if Statement
Executes a block of code only if the condition is
true:
✅ if-else Statement
Handles two possible outcomes:
✅ if-else-if Ladder
Week 7: Expression Formulation and Conversion Manages multiple conditions:
8
QUERIOSITY ORGANIZATION
CC 1101
CC 1101
CLUB
INTRODUCTION TO
INTRODUCTION TO COMPUTERS
COMPUTERS && PROGRAMMING
PROGRAMMING
✅ do-while Loop
Executes at least once before checking the condition:
9
QUERIOSITY ORGANIZATION
CC 1101
CC 1101
CLUB
INTRODUCTION TO
INTRODUCTION TO COMPUTERS
COMPUTERS && PROGRAMMING
PROGRAMMING
Arithmetic:
Boolean:
10