STE Computer Programming Q3 MODULE 7 8
STE Computer Programming Q3 MODULE 7 8
STE Computer Programming Q3 MODULE 7 8
Computer
Programming
Quarter III – Module 7-8:
Performing a Simple Case Study
Using Control Statements
Republic Act 8293, section 176 states that: No copyright shall subsist in
any work of the Government of the Philippines. However, prior approval of the
government agency or office wherein the work is created shall be necessary for
exploitation of such work for profit. Such agency or office may, among other things,
impose as a condition the payment of royalties.
Each SLM is composed of different parts. Each part shall guide you step-by-
step as you discover and understand the lesson prepared for you.
At the end of each module, you need to answer the test to self-check your
learning. Answer keys are provided for each activity and test. We trust that you will
be honest in using these.
In addition to the material in the main text, Notes to the Teacher are also
provided to our facilitators and parents for strategies and reminders on how they
can best help you on your home-based learning.
Please use this module with care. Do not put unnecessary marks on any
part of this SLM. Use a separate sheet of paper in answering the exercises and
tests. And read the instructions carefully before performing each task.
If you have any questions in using this SLM or any difficulty in answering
the tasks in this module, do not hesitate to consult your teacher or facilitator.
Thank you.
For the learner:
Welcome to the Computer Programming – Learning Module 7-8 on Case Study
using Control Statements
The hand is one of the most symbolized part of the human body. It is often used to
depict skill, action, and purpose. Through our hands we may learn, create, and
accomplish. Hence, the hand in this learning resource signifies that you as a
learner is capable and empowered to successfully achieve the relevant
competencies and skills at your own pace and time. Your academic success lies in
your own hands!
This module was designed to provide you with fun and meaningful opportunities
for guided and independent learning at your own pace and time. You will be
enabled to process the contents of the learning resource while being an active
learner.
1. Use the module with care. Do not put unnecessary mark/s on any part of
the module. Use a separate sheet of paper in answering the exercises.
2. Read the instruction carefully before doing each task.
3. Observe honesty and integrity in doing the tasks and checking your
answers.
4. Finish the task at hand before proceeding to the next.
5. Return this module to your teacher/facilitator once you are through with it.
If you encounter any difficulty in answering the tasks in this module, do not
hesitate to consult your teacher or facilitator. Always bear in mind that you are
not alone.
We hope that through this material, you will experience meaningful learning
and gain deep understanding of the relevant competencies. You can do it!
Explore
Activity 1
Directions: Arrange the jumbled letters inside the box to form the word
being described below.
LATICCRUAPRIIST
VICESRPTIED
HECUISTIR
___________________ 3. The cases studied illuminate the reader's
understanding of the phenomenon under study.
Learn
1. Person – This type of study focuses on one particular individual. This case
study would use several types of research to determine an outcome.
3. Location – This type of study focuses on a place, and how and why people
use the place.
2. Descriptive - the end product is a rich, thick description of the phenomenon being
studied.
3. Heuristic - the cases studied illuminate the reader's understanding of the
phenomenon under study.
We are now in the computer age. From our homes to other entities in
our society, we are already benefiting the advantages of modern technology.
We can experience this on the electronic gadgets that we used, transactions
in banks, stores, hospitals, schools, managing transportations, data and
information processing and many more. What makes our works less
burdensome and less papers are because of the works of our technologists
and scientists. Through the development of computer systems and programs
we were able to save time, money and energy.
3. Deciding on an editor
4. Compiler
Algorithm:
Start
Input Student
Grade
YES NO
If Grade
< 75
Print Print
“FAILED” “PASSED”
End
C++ program: Sample Outputs:
#include<iostream> Enter your grade: 92
#include<conio.h>
PASSED
using namespace std;
void main()
{ Enter your grade: 70
int per;
cout<<”Enter your grade:”; FAILED
cin>>per;
if(per>=75 && per<=100)
{ Enter your grade: 110
cout<<”\nPASSED”;
} Please enter a valid grade.
else if(per>=0 && per<=74)
{
cout<<”\nFAILED”;
}
else
{
cout<<”\nPlease enter a valid grade,”;
}
getch()
}
What’s More
Activity 2
Directions: Match the situations that people usually do in real life in
column A to the developed technology counterpart that can be used to ease
the hassle in column B. Write the letter of your choice in the blank provided.
A B
1. Going inside a bank to A. Online Shop
________
fill-out a form to
_
withdraw a cash.
2. Presenting ID and writing B. E-rollment
________ basic information on the
_ log sheet before entering
a mall.
3. Sorting bunch of paper C. ATM
________
files about students’
_
records in a cabinet.
4. Going to a mall to look D. QR Code
________
for a particular item to
_
buy.
5. Filling-out an enrollment E. Student
________ form in schools for the Information
_ opening of the school System
year.
Apply
Activity 3
Directions:
1. Choose one from the given situations under column A in the previous
activity.
2. Out of this concept, perform a simple case study using control
statements.
3. Make a flowchart or algorithm.
4. Develop a source code or program of a chosen language.
Assess
Activity 4
Essay: Write an essay about the importance of case study and explain how
does computer programming help in the realization of its purpose. Write
your answer inside the diagram below.
Assess Apply
Answers may vary. Answers may vary.
References
https://people.eecs.berkeley.edu/~clancy/classroom.html#:~:text=Case%20studies
%20involve%20learners%20in,the%20product%20of%20problem%20solving.
http://2012books.lardbucket.org/books/sociological-inquiryprinciples-qualitative-and-
quantitative-methods/s13-01-fieldresearch-what-is-it-and-.html
https://people.eecs.berkeley.edu/~clancy/web/case.studies.html
https://www.universalclass.com/articles/business/case-studies-
types.htm#:~:text=An%20intrinsic%20case%20study%20is,Genie%20is
%20the%20topic.
https://www.computerhope.com/issues/ch000675.htm#:~:text=An
%20editor%20is%20any%20program,can%20get%20started%20for%20free.
https://www.javaguicodexample.com/javaprogramexampleusejgrasp1.html