You are on page 1of 18

10

Computer
Programming
Quarter I – Module 7:
Installing Programming Languages for
Program Development

"Designed by macrovector / Freepik"


Computer Programming– Grade 10
Self-Learning Module
First Edition, 2020

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.

Borrowed materials (i.e., songs, stories, poems, pictures, photos, brand names,
trademarks, etc.) included in this module are owned by their respective copyright holders.
Every effort has been exerted to locate and seek permission to use these materials from
their respective copyright owners. The publisher and authors do not represent nor claim
ownership over them.

Published by the Department of Education – Regional Office VIII


Regional Director: Ramir B. Uytico EdD, CESO IV
Assistant Regional Director: Arnulfo M. Balane, CESO V

Development Team of the Module


Writer: Rezalyn E. Arrago- Tucdao National High School
Language Editor: Judy Ann A. Horfilla
Content Editor: Francis Stephen R. Villanueva- Almeria National High School
Management Team:
Rosemarie M. Guino EdD,OIC – Chief, CLMD
Ryan R. Tiu EdD, EPS, CLMD – Science
Joy B. Bihag, EPS, CLMD – LRMS
Jose B. Mondido, Chief, CID
Rosario Canlas, EPS, CID – Science
Francisco Bayon-on. EPS, CID - LRMS

Printed in the Philippines by ________________________

Department of Education –Regional Office VIII

Office Address: Government Center, Candahug, Palo, Leyte

Telefax: 053 - 3233156


E-mail Address: region8@deped.gov.ph
Introductory Message
This Self-Learning Module (SLM) is prepared so that you, our dear learners,
can continue your studies and learn while at home. Activities, questions,
directions, exercises, and discussions are carefully stated for you to understand
each lesson.

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.

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 Computer Programming 10 Self – Learning Module on Installing


Programming Languages for Program Development.
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.

This module has the following parts and corresponding icons:

This will give you an idea of the skills or


Explore
competencies you are expected to learn in the
module. A brief drill or review to help you link
the current lesson with the previous one. The
new lesson will also be introduced to you in
various ways such as a story, a song, a poem, a
problem opener, an activity, or a situation.
This section provides a brief discussion of the
Learn
lesson. This aims to help you discover and
understand new concepts and skills.

What’s More This comprises activities for independent


practice to solidify your understanding and
skills of the topic. You may check the answers
to the exercises using the Answer Key at the
end of the module.
This includes questions or blank
Apply sentence/paragraph to be filled into process
what you learned from the lesson.

Assess This is a task which aims to evaluate your level


of mastery in achieving the learning
competency.
This contains answers to all activities in the
Answer Key module.

iii
This contains the learner’s reflection. Learners
Reflect
are encouraged to think about the lessons
particularly the parts that went well (they have
understood) and the parts that were weak (they
have difficulty) and write about it briefly.
Learners can share their thoughts and feeling
about the lessons.

At the end of this module you will also find:


References This is a list of all sources used in
developing this module.
The following are some reminders in using this module:

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
Explore

Introduction:

Program development is a process which consists various steps that are followed
to develop a computer program. In order to develop a successful and beneficial
computer program, these steps sequentially must be followed.

In this lesson, you will learn how to install various computer applications for
program development.
After going through this module, you are expected to:
1. Identify the stages in developing computer programs.
2. Identify several programming languages and their key features.

5
Learn

What is Program Development?


Program Development is the art of preparing and designing necessary
structures to come up with computer instructions that enables the
computer to solve a problem or perform task.
In order to develop computer programs, a programmer has to go
through the following stages:

1. PLANNING
This stage involves identifying the problem and defining the problem
in simpler terms, identifying the program requirements (inputs, outputs the
formulas needed), and finally, planning for the solution.

2. PROGRAM DESIGN
This stage deals with the flow of the program, the way it should
produce output and gather inputs, the interface or the working environment
of the program, and how it should be used. The software developer makes
use of tools like algorithms, pseudocodes and flowcharts to develop the
design of the program.

3. CODING
Once the design process is complete, the actual computer program is
written, i.e. the instructions are written in a computer language. This stage
of program development requires following the rules of format and syntax
(vocabulary, grammar and punctuation. It also requires an extensive
knowledge in the programming language he will use.

4. DEBUGGING
At this stage the errors in the programs are detected and corrected. This
stage of program development is an important process. The process of
correcting mistakes in a program is called debugging.

5. TESTING
In this stage, the program is tested on a number of suitable test cases.
A test plan of the program has to be done at the stage of the program design
itself. This ensures a thorough understanding of the specifications.

6. DOCUMENTATION
Documentation is a very essential step in the program development.
Documentation help the users and the people who maintain the software.

6
This ensures that future modification if required can be done easily. Also it
is required during redesigning and maintenance.

7. MAINTENANCE
The final stage in programming is in maintaining or updating the
program. This is the stage where the programmer is tasked to keep the
program running smoothly and updated with the developments and changes
in the field where it is used.

Programming Language
Programming Language is a special language used to write computer
programs. Programming languages can be used to create programs that
control the behavior of a machine. Moreover, a programming language is a
set of words, symbols and codes that enables humans to communicate with
computers.
Name of some popular recent programming languages are shown in
Table 1.1. This list is only small sample since there are thousands of
programming languages.
Programming
Description
Language
Visual Basics, C# Popular programming languages for building Windows and
Web applications. Use a graphical user interface
C/C ++ Powerful advanced programming languages that emphasize
flexibility and fast running times. C++ is also object-
oriented.
Java, JavaScript Java-Flexible and powerful programming language that
runs on many different computer systems. Often used to
teach object-oriented programming.
JavaScript-Scripting language used in Web applications
that provides rich user interfaces for Web browsers.
Python Simple, yet powerful programming language used for
graphics and small applications.
PHP Programming language used for creating interactive Web
sites.
Table 1.1 Popular Programming Languages
How to Install these Programming Languages to your Computer?
1. Visual Basics, C#
An IDE (Integrated Development Environment) is used to edit and
compile code and it is the easiest way to get started with C#.
Applications written in C# use the .NET Framework, so it makes sense
to use Visual Studio, as the program, the framework, and the language, are
all created by Microsoft.

7
Step 1. Download Visual Studio Community for free from
https://visualstudio.microsoft.com/vs/community/ .
Step 2. Once the Visual Studio Installer is downloaded and installed, choose
the .NET workload and click on the Modify/Install button:

Step 3. After the installation is complete, click on the Launch button to get
started.
2. C/C++

To start using C++, you need two things:


 A text editor, like Notepad, to write C++ code
 A compiler, like GCC, to translate the C++ code into a language that
the computer will understand

There are many text editors and compilers to choose from but, we will use
an IDE. Popular IDE's are: Code::Blocks, Eclipse, and Visual Studio. These
are all free, and they can be used to both edit and debug C++ code.

Note: Web-based IDE's can work as well, but functionality is limited.

We will use Code::Blocks, which we believe is a good place to start.

Step 1: You can find the latest version of Codeblocks


at http://www.codeblocks.org/downloads/26.

Step 2: Download the mingw-setup.exe file, which will install the text editor


with a compiler.

8
Step 3. After the installation is complete, click on the Launch button to get
started.
3. Java
Some PCs might have Java already installed. To check if you have
Java installed on a Windows PC, search in the start bar for Java. If you do
not have download Java for free at oracle.com .

Step 1: Go to "System Properties" (Can be found on Control Panel >


System and Security > System > Advanced System Settings).

Step 2: Click on the


"Environment variables"
button under the
"Advanced" tab.

9
Step 3: Then,
select the "Path"
variable in System
variables and click
on the "Edit"
button.

Step 4: Click on the


"New" button and add the
path where Java is
installed, followed by \
bin. By default, Java is
installed in C:\Program
Files\Java\jdk-11.0.1 (If
nothing else was specified
when you installed it). In
that case, You will have to
add a new path with: C:\
Program Files\Java\jdk
11.0.1\bin.

Then, click "OK", and save


the settings.

10
Step 5: At last, open Command Prompt (cmd.exe) and type “java-version” 
to see if Java is running on your machine.

4. Python
Many PCs and Macs will have python already installed. To check if you
have Python installed on a Windows PC, search in the start bar for Python. If
you do not have follow the steps below.
Step 1: Download Python for free at https://www.python.org/downloads/
Step 2: Afterwards, double-click the downloaded file. (A Python 3.7.4
(64-bit) Setup pop-up window will appear.)

Ensure that
the Install launcher
for all users
(recommended) and
the Add Python 3.7
to PATH checkboxes
at the bottom are
checked.

If the Python
Installer finds an
earlier version of
Python installed on
your computer,
the Install
Now message may
instead appear
as Upgrade Now (and the checkboxes will not appear).

11
Step 3: Highlight the Install Now (or Upgrade Now) message, and then
click it. When run, a User Account Control pop-up window may appear on
your screen. It will asks, “Do you want to allow this app to make changes to
your device?”

Step 4: Click
the Yes button. A
new Python 3.7.4 (64-bit)
Setup pop-up window will
appear with a Setup
Progress message and a
progress bar.

During installation,
it will show the
various components
it is installing and
move the progress
bar towards
completion. Soon, a
new Python 3.7.4
(64-bit) Setup pop-
up window will appear with a Setup was successfully message.

12
Step 5: After the installation is complete, click the Close button.

5. PHP
To install Apache with PHP 5 on Windows follow the given steps. If
your PHP and Apache versions are different then please take care
accordingly.
Step 1:
Download Apache server from
www.apache.org/dist/httpd/binaries/win32 . You want the current
stable release version with the no_src.msi extension. Double-click the
installer file to install; C:\Program Files is a common location. The
installer will also ask you whether you want to run Apache as a
service or from the command line or DOS prompt. We recommend
you do not install as a service, as this may cause problems with
startup.
 Extract the PHP binary archive using your unzip utility; C:\php7 is a
common location.
 Rename php.ini-development to php.ini. Open this file in a text editor
(for example, Notepad). Edit this file to get the configuration
directives; At this point, we highly recommend that the new users set
error reporting to E_ALL on their development machines.
 Tell your Apache server where you want to serve files from and what
extension(s) you want to identify the PHP files (.php is the standard,
but you can use .html, .phtml, or whatever you want). Go to your
HTTP configuration files (C:\Program Files\Apache Group\Apache\
conf or whatever your path is), and open httpd.conf with a text editor.
Search for the word DocumentRoot (which should appear twice) and
change both the paths to the directory you want to serve files out of.
(The default is C:\Program Files\Apache Group\Apache\htdocs.).
Add at least one PHP extension directive as shown in the first line of
the following code −

AddHandler application/x-httpd-php .php


AddType application/x-httpd-php .php .html
LoadModule php7_module "C:/php7/php7apache2_4.dll"
PHPiniDir "c:/php7"
Step 2:
 Open a text editor. Type: <?php phpinfo(); ?>. Save this file in your
Web server's document root as info.php. Start any Web browser and
browse the file. You must always use an HTTP request
(http://www.testdomain.com/info.php or http://localhost/info.php
or http://127.0.0.1/info.php) rather than a filename
(/home/httpd/info.php) for the file to be parsed correctly.

13
 You will see a long table of information about your new PHP
installation message. Congratulations!

Engage

ACTIVITY 1: Matching Type

Direction: Match Column A with Column B. Write your answer on a


separate sheet of paper.

A B
__________1. Planning a) Updating the program
__________2. Program Design b) Flow of the program
__________3. Coding c) Program is tested
__________4. Testing d) Instructions are written in a computer
language
__________5. Maintenance e) Errors in the program are detected
f) Identifying the problem

ACTIVITY 2: Identification
Direction: Identify the correct programming languages that best correspond
to each of the following statements. Write your answer on a separate sheet of
paper.

______________________1. Simple, yet powerful programming language used


for graphics and small applications.

______________________2. Programming language used for creating interactive


Web sites.
______________________3. Powerful advanced programming languages that
emphasize flexibility and fast running times
______________________4. Popular programming languages for building
Windows and Web applications.
______________________5. Flexible and powerful programming language that
runs on many different computer systems. Often used to teach object-
oriented programming.

14
Apply

Direction: Answer the following questions.

1. How to start C++?


__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________

2. How to Install Java on Windows?


__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________

Assess

Multiple Choice. Choose the letter of the best answer. Write the chosen letter on a
separate sheet of paper.

1. It is used to edit and compile codes.


a. Computer Program c. Programming Language
b. Integrated Development Environment d. Program Development

2. It is the art of preparing and designing necessary structures to come


up with computer instructions.
a. Computer Program c. Programming Language
b. Integrated Development Environment d. Program Development

3. It is used to write computer programs.


a. Computer Program c. Programming Language
b. Integrated Development Environment d. Program Development

15
4. Which stages has something to do with testing the program on a
number of suitable cases?
a. Coding b. Testing c. Debugging d. Documentation

5. It is a process of correcting mistakes in a program.


a. Coding b. Testing c. Debugging d. Documentation

6. What will you do if you want to check if Java is already installed in


your PC?
a. Use command Prompt c. a only
b. Search in the Start Bar d. Both a and b
7. It is a scripting language used in Web Applications that provide rich
user interfaces for Web browsers.
a. Java b. JavaScript c. PHP d. Python
8. If you want to create creative Web sites, what Programming Language
will you use?
a. Java b. JavaScript c. PHP d. Python
9. It is a very essential step in program development that helps the users
and the people who maintain the software.
10. a. Coding b. Testing c. Debugging d. Documentation
This stage of program development requires following the rules of
format and syntax.
a. Coding b. Testing c. Debugging d. Documentation

Reflect

1. What are the parts of the lesson that went well?

2. What are the parts of the lesson that you have difficulties?

3. What areas of the topic you need to understand more?

16
Answer Key

Engage
Activity 1:

1. f
2. b Assessment
3. d
4. c 1. b
5. a 2. d
Activity 2: 3. c
4. b
1. Python 5. c
2. PHP 6. d
3. Visual Basics, C# 7. b
4. C, C++ 8. c
5. Java 9. d
10. a

References

https://hzltenedero.wordpress.com/category/program-development-process/

https://www.cseworldonline.com/articles/stages-of-program-development-process.php

https://www.csus.edu/indiv/s/scanland/mis15/index_htm_files/ch1.pdf

https://www.w3schools.com/cs/cs_getstarted.php

https://www.w3schools.com/cpp/cpp_getstarted.asp

https://www.w3schools.com/java/java_getstarted.asp

https://www.ics.uci.edu/~pattis/common/handouts/pythoneclipsejava/python.html

https://www.tutorialspoint.com/php7/php7_installation_windows_apache.htm

17

You might also like