Uploaded by Ces Michaela Cadivida

02 G10-STE-TLE-ICT-IV SLeM Q2-M04 Lesson 02 - LOOKING BACK

advertisement
SUPPLEMENTARY LEARNING MATERIALS
Grade 10 STE – TLE ICT-IV
_________________________________________________________________________
Name:
Date:
Grade & Section:
Subject:
TLE ICT-IV
LOOKING BACK
In the previous lesson, you have learned about Control Structures - IF, ELSE, and ELIF
Statements. Do the simple activity below to refresh your memory.
Direction:
1. Read and understand each statement carefully, then perform the task required.
2. Make sure to use the print() function (terminal should display the problem before the
answer).
3. Include comments in your code:
a. First line of comment should include your Full Name, Grade & Section, and Date
b. Second line of comment should describe what your code/s will do.
Task:
1. Write a program for a temperature that will print:
• "It is hot!" IF the temperature is greater that 36°C
• "It is cool!" if the temperature is lower than 27°C
• otherwise, "It is freezing!" when the temperature is lower than 10°C
2. Define a function that will indent the conditional block of code.
3. Add a non-indented block of code that will print "Goodbye!"
_________________________________________________________________________
This is a Government Property.
Not for Sale
1
Download