Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

Presented by Rosalijos & Arriola

PROGRAMMING

AND USER

ENVIRONMENT

BIT CT II-A
Lesson Outline

UNDERSTANDING
UNDERSTANDING
UNDERSTANDING

PROGRAMMING
PROGRAMMING
USER

AND USER
ENVIRONMENTS ENVIRONMENTS
ENVIRONMENTS
Understanding Programming and User Environments

A computer program can be written and run in a


variety of ways. You can use a flowchart,
pseudocode, or a combination of the two to plan a
program's logic. You can encode statements into a
variety of text editors when coding the program. The
most typical environments new programmers deal
with are covered in this section.
Understanding Programming

Environments
A flowchart can be made with paper and pencil when planning the logic for a
computer program, or you can use software that lets you manipulate flowchart
shapes. You have the option of writing pseudocode by hand or with a word
processing program. You typically use a keyboard to type program statements
into an editor so that you can translate and execute the program on a
computer. You can type a program into one of the following:

A PLAIN TEXT EDITOR


A TEXT EDITOR THAT IS PART OF AN INTEGRATED
DEVELOPMENT ENVIRONMENT
You use a program called a text editor to make straightforward text files. It has
some features of a word processor, but fewer. Use the text editor that comes with
Microsoft Windows, such as Notepad. Figure 1 shows a C# program in Notepad that
accepts a number and doubles it. An advantage to using a simple text editor to type
and save a program is that the completed program does not require much disk space
for storage. For example, the file shown in Figure 1 occupies only 314 bytes of
storage.

Figure 1 shows a C# program in Notepad that accepts a number and doubles it.
You can enter your program using the editor of an integrated development
environment (IDE). A software package known as an IDE offers an editor, a compiler,
as well as other programming tools. Figure 2, for instance, displays a C# program in
the Microsoft Visual Studio IDE, an environment with tools for developing Visual
Basic, C++, and C# programs.

Figure 2 : A C# number-doubling program in Visual Studio


Programmers can benefit from using an IDE because it typically offers
features similar to those found in many word processors. In particular,
an IDE's editor frequently has the following features:

It uses different colors to display various language components, making


elements like data types easier to identify
It highlights syntax errors visually for you
It employs automatic statement completion; when you start to type a
statement, the IDE suggests a likely completion, which you can accept with
a keystroke.
It provides tools that allow you to step through a program’s execution one
statement at a time so you can more easily follow the program’s logic and
determine the source of any errors.
Although various programming environments might look different and
offer different features, the process of using them is very similar.
When you plan the logic for a program using pseudocode or a
flowchart, it does not matter which programming environment you will
use to write your code, and when you write the code in a programming
language, it does not matter which environment you use to write it.
Understanding User

Environments
A user could run a program you've written in a variety of environments. For

instance, a user could run the program for doubling numbers from the command

line displayed below.

Figure 3- Command Line


Understanding User

Environments
Many programs are run using a graphical user interface, which enables users to

interact with a program in a graphical environment, rather than at the command

line in a text environment.

Figure 4- GUI
The same programming language may be used to create both
GUI and command-line programs. However, the logical
process is the same regardless of the environment used to
write or run a program.
Thank You!

You might also like