0% found this document useful (0 votes)
6 views2 pages

Calculate The Perimeter of A Rectangle

The document outlines a class activity focused on identifying appropriate data types for various scenarios, such as boolean, character, integer, string, and float. It also includes questions about the difference between variables and constants, their importance in problem-solving, and a task to calculate the perimeter of a rectangle using an IPO chart. The activity aims to enhance understanding of data types and their applications in programming.

Uploaded by

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

Calculate The Perimeter of A Rectangle

The document outlines a class activity focused on identifying appropriate data types for various scenarios, such as boolean, character, integer, string, and float. It also includes questions about the difference between variables and constants, their importance in problem-solving, and a task to calculate the perimeter of a rectangle using an IPO chart. The activity aims to enhance understanding of data types and their applications in programming.

Uploaded by

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

Class Activity

1. Instruction: State the most appropriate data type for each of the following
scenarios.

a) A computer program checks if a student passed a test. If the score is 60 or higher,


it shows "True"; otherwise, it shows "False." Jane scored 75.

Question:
What type of data is the program's result (True)?

b) In a quiz, the teacher asks students to write the first letter of their favorite fruit.
Lisa writes "A" for apple.

Question:
What type of data is the letter "A"?

c) A teacher asks John to count the total number of books on the classroom shelf.
John counts 12 books.

Question:
What type of data is the total number of books?

d) The school needs to print name tags for an event. John’s name is written as "John
Smith" on his tag.

Question:
What type of data is the name "John Smith"?

e) Sarah went to the store and bought 2.5 kilograms of rice.


Question:

What type of data is the weight of the rice?

2. What is the difference between a variable and a constant?

3. Why is it important to distinguish between variables and constants in problem-solving?


4. Calculate the perimeter of a rectangle.

o Identify the input values


o Determine which values are variables and which are constants.
o Complete an IPO chart for the problem.

You might also like