0% found this document useful (0 votes)
4 views3 pages

Programming 8 Week 3

The document outlines activities for Grade 8 Programming I, focusing on classifying data types (string, integer, float) and assigning variable names and values. It includes specific instructions for students to complete exercises related to data types, variable assignments, and writing their own codes for each type. The activities encourage students to apply their understanding of programming concepts in practical scenarios.

Uploaded by

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

Programming 8 Week 3

The document outlines activities for Grade 8 Programming I, focusing on classifying data types (string, integer, float) and assigning variable names and values. It includes specific instructions for students to complete exercises related to data types, variable assignments, and writing their own codes for each type. The activities encourage students to apply their understanding of programming concepts in practical scenarios.

Uploaded by

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

GRADE 8 - PROGRAMMING I (Week 3)

Name: Caila Audrey C. Araza Date: 09/09/22


Grade and Section: 8-Wisdom Subject Teacher: Mr. Pogi Zubieta

Programming I – Week 3
Activity Sheet Number 3

Activity No. 7
String, Integer or Float?

Instructions: For this activity, you need to classify if the given values of the following variables below are string, integer of float-
points. Write str for strings, int for integer, and float for floating-points.

Str 1. greetings = “Good Day”

Int 2. distance = 10

Int 3. Year_of_birth = 1996

Float 4. weight = 56.9

Str 5. weather = “rainy”

Str 6. current_time = “9:56”

Float 7. area_of_land = 4506.58

Float 8. temperature = 36.9

Int 9. new_active_cases = 1

Str 10. my_section = “Wisdom”


Activity No. 8
Assigning Variable Name and Values

Instructions: Complete the table given below. Write your own specific variable name and values for every statements. Make sure
that your given values will follow the given data type for each variable.

Variable Name
Data Type Value
my_mothers_name
1. Name of your mother string ‘Norcaima C. Abris’
my_grade_level
2. Your current grade level integer 8
my_adviser ‘Gerardo
3. Complete name of your adviser string
Laguador’
my_weight
4. Your weight (in kg) Floating-point 73.20
parent_number
5. Contact number of your parent string ‘09194359199’
number_of_my_sibling
6. Number of your siblings integer 1
7. Your general average in Science my_general_average_in_scince_during_grade_7
integer 96
during Grade 7
acceleration_due_to_gravity
8. Value of Acceleration due to gravity Floating-point 9.8
time_when_I_was_answering_this_activity
9. Time when you answer this activity string ‘8:54 pm’
10. Number of minutes you spent in number_of_minutes_answering
integer 15
answering this activity

Activity No. 9
Data Types and Variables (Part 1)

Assign values to the given variables below. Write and complete your codes in a python compiler.

whole_name =
my_age =
height _in_cm=

Activity No. 10
Data Types and Variables (Part 2)

This time, it must be clear to you the introductory concept and basics of data types and variables. For your next task, you will now
write your own code. Think and write 5 codes for each variable type – string, integer, and floating point. Make sure to follow the basic
syntax in writing your codes.
NOTE: Avoid using the codes on our previous discussion and activities. Create your own code.

String
1. favorite_bl_series = ‘Still 2gether’
2. favorite_color = ‘Black’
3. favorite_yaoi = ‘BJ Alex’
4. pet_peeve = ‘Being compared to other people’
5. dream_profession = ‘pharmaceutical scientist’
Integer
1. hours_of_sleep = 2
2. money_in_my_wallet = 1
3. number_of_students_in_8_wisdom = 48
4. number_of_members_in_my_family = 4
5. my_favorite_number = 14
Floating-Point
1. my_average_temperature_in_celsius = 36.5
2. liter_of_coke = 1.5
3. my_dogs_weight_in_kg = 1.15
4. my_shoe_size_in_cm = 25.8
5. one_ounce_in_grams = 28.3495

You might also like