STE Computer Programming Q1 MODULE 7
STE Computer Programming Q1 MODULE 7
Computer
Programming
Quarter I – Module 7:
Installing Programming Languages for
Program Development
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.
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:
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
have difficulty) and write about it briefly.
Learners can share their thoughts and feeling
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
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
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++
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.
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 .
9
Step 3: Then,
select the "Path"
variable in System
variables and click
on the "Edit"
button.
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
13
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 −
Engage
A B
ACTIVITY 2: Identification
14
Direction: Identify the correct programming languages that best correspond
to each of the following statements. Write your answer on a separate sheet of
paper.
Apply
15
Assess
Multiple Choice. Choose the letter of the best answer. Write the chosen letter on a
separate sheet of paper.
Reflect
16
1. What are the parts of the lesson that went well?
2. What are the parts of the lesson that you have difficulties?
Answer Key
Engage
Activity 1:
1. f
2. b
3. d
4. c Assessment
5. a
Activity 2: 1. b
2. d
1. Python 3. c
2. PHP 4. b
3. Visual Basics, C# 5. c
4. C, C++ 6. d
5. Java 7. b
8. c
9. d
10. a
References
17
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
18