STE-Computer-Programming-Q4 - MODULE 8
STE-Computer-Programming-Q4 - MODULE 8
STE-Computer-Programming-Q4 - MODULE 8
Computer
Programming
Quarter IV – Module 8:
Designing Computer Program on Case Study
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.
ii
For the learner:
Welcome to the Computer Programming – Learning Module 1 on Data Types
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.
iii
about the lessons.
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!
iv
v
Explore
Introduction:
Activity 1.1:
One of the special traits of Filipinos is being family-oriented and having
strong family ties. Everyone living in the house is considered a part of the family
even if he/she is not blood related. Everybody is united, and all members under the
roof help one another in doing the household chores. One basic routine in the
house is, “Washing the dishes” after a dinner.
If you are assigned as the dish washer, after a “salo-salo”, how will you
accomplish the task?
Given some situations below, arrange in sequence (based on your
experience) the steps in cleaning the dishes.
The case study research design is also useful for testing whether scientific theories
and models actually work in the real world.
A case study research method is appropriate when the researcher wants to answer
a descriptive question such as WHAT happened? Or an explanatory question HOW
and WHY did something happen?
Bounded System
https://www.slideshare.net/jlpaglinawan/all-about-case-study-types-characteristics-and-other-details
1. Person – This type of study focuses on one particular individual. This case
study would use several types of research to determine an outcome.
2. Group – This type of study focuses on a group of people. This could be a family,
a group or friends, or even coworkers.
3. Location – This type of study focuses on a place, and how and why people use
the place.
5. Event – This type of study focuses on an event, whether cultural or societal, and
how it affects those that are affected by it. An example would be the
Tylenol cyanide scandal. This event affected Johnson & Johnson, the
parent company, as well as the public at large.
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
https://www.javaguicodexample.com/
javaprogramexampleusejgrasp1.html
publicclass OddEvenNumber
{
public static void main(String[] args)
{
int num, remainder;
An output samples:
Enter an integer: 51
51 is an odd number.
Enter an integer: 0
0 is an even number.
Engage
Activity 3.1:
Instruction: Below are the steps in withdrawing money from the bank
through ATM machine.
1. Formulate a case study of the given sample.
2. Make a flowchart or algorithm as you cut the figures on the left and
paste in on the right according to the process of withdrawing through
ATM or you may write your answers after the number corresponding
the steps.
3. Make a source code using any language.
Take the 1.
card
2.
Enter PIN
3.
Insert Card
4.
Start
5.
End
6.
Enter
Withdrawal
Amount
7.
Select
Language
8.
Take the
printed
receipt. 9.
Apply
Activity 4.1:
INSTRUCTION:
1. Conduct a case study. Provide its title. You can use your case
study as a tool of your Research II subject. Indicate the
programming language that you will use.
2. Make a flowchart or algorithm.
3. Develop a source code or program.
4. Document all your works and activities.
Assess
Multiple Choice. Choose the letter of the best answer. Write the chosen letter on a
separate sheet of paper.
1. Which of the following does not describe a case study?
a. programming problem
b. one or more solutions to the problem.
c. used in transacting business
d. the process used by an expert to solve the problem
2. __________ runs through the program and translates the whole of it into machine
code at once for the computer to understand.
a. Translator
b. Compiler
c. Interpreter
d. Converter
4. The following are used to develop online forums and services except________
a. C++
b. Python
c. PHP
d. Perl
8. This type of study focuses on an incident, whether cultural or societal, and how
it affects those that are affected by it. What is this?
a. Event
b. People
c. Group
d. Location
10. When making the program, the following should be considered, except________.
a. learn the syntax on how to declare variables
b. create conditional statements
c. perform the loops
d. disregard the expressions
Reflect
Explore ASSESSMENT
F, C, E, D, B, A 1. c
2. b
3. d
ENGAGE
4. a
Answers may vary on the programming
5. b
language used.
6. d
APPLY 7. c
8. a
Answers may vary on the programming
language used. 9. b
10. d
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