0% found this document useful (0 votes)
5 views13 pages

Introduction To Programming Presentation

The document provides an introduction to programming, focusing on variables, data types, and pseudocode. It explains the purpose of programming, the rules for naming variables, and the importance of data types in storing information. Additionally, it covers basic arithmetic operations in pseudocode and includes practice exercises for applying these concepts.

Uploaded by

Jebs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views13 pages

Introduction To Programming Presentation

The document provides an introduction to programming, focusing on variables, data types, and pseudocode. It explains the purpose of programming, the rules for naming variables, and the importance of data types in storing information. Additionally, it covers basic arithmetic operations in pseudocode and includes practice exercises for applying these concepts.

Uploaded by

Jebs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Introduction to Programming

Variables, Data Types, and Arithmetic


in Pseudocode
Presented by: [Your Name]
Objectives
• Define variables and identify various data
types in programming.
• Understand how data types are used in storing
information.
• Write simple pseudocode that performs
arithmetic operations.
What is Programming?
• Programming is the process of writing
instructions for a computer to follow.

• Purpose: Automates tasks, solves problems,


and builds software.

• Examples: Mobile apps, websites, robotics,


games.
What is a Variable?
• A variable is a container used to store data or
values.
• Think of it like a box that holds something you
want to use later.

• Example: age = 15
Rules in Naming Variables
• Must begin with a letter (A–Z or a–z)
• Can include numbers and underscores (_)
• No spaces or special symbols (!, $, %, etc.)
• Case-sensitive (e.g., Score ≠ score)
What are Data Types?
• Data types tell the computer what kind of data
is being used.
• Common examples:
• - Integer: Whole numbers (int)
• - Float: Decimal numbers (float)
• - String: Text (string)
• - Boolean: True or False (bool)
Examples of Data Types
• int: 10, -2 (Whole numbers)
• float: 3.14, 0.01 (Numbers with decimals)
• string: "Hello", "Ajee" (Group of
characters/text)
• bool: true, false (Logical values)
Why Use Variables and Data
Types?
• Helps the program store and manipulate data.
• Makes code more readable and reusable.
• Ensures data is handled correctly and
efficiently.
What is Pseudocode?
• Pseudocode is a way to plan a program using
plain English mixed with programming logic.
• Not actual code, but helps design logic before
coding.

• Example:
• Start
• Set x = 10
• Set y = 5
Arithmetic Operations in
Pseudocode
• Basic Operators:
• + (Addition)
• - (Subtraction)
• * (Multiplication)
• / (Division)

• Example:
• Set a = 8
• Set b = 4
Let’s Practice!
• Write pseudocode to:
• 1. Add two numbers and display the result.
• 2. Subtract one number from another.
• 3. Multiply two values and store the result in a
variable.
Summary
• Variables store data.
• Data types define the kind of data a variable
holds.
• Pseudocode helps plan the logic of your
program.
• Arithmetic operations are key to calculations.
Exit Activity / Assessment
• Match the variable with its correct data type.
• Convert a real-world task into pseudocode
(e.g., calculating total price in a store).

You might also like