Lesson 1 2 Assignment Statement
Lesson 1 2 Assignment Statement
PROGRAMMING 1
Online Classroom Rules
1. Students must register before the class at least 15 minutes before the
time. The classroom will be closed on time. You cannot enter the
classroom after the designated time.
6. You can off your camera if there is a personal necessity then once
8. You can use the chat box for other questions.
- Work-related – Sick
1. Input
Data has to flow into the system in some form.
Input is the data flowing into the system from outside
Example:
A thermometer linked to the system provides data on
raw temperatures
A financial service provider sends a stream of current
share prices to your computer
A newspaper takes a news feed from a news wire
2. Processing
This will be the second stage where the information
flow is the input data being manipulated in some way. It is
the action of manipulating the input into a more useful form.
Example:
The newspaper takes the pure text obtained from the news
wire service and creates a front page layout using pictures
and formatted text.
The keystrokes being entered by the typist is converted into
ASCII format that the computer can understand.
PSEUDO-CODE
It is the art of expressing a program in a
short English phrases that is used to explain specific tasks
within a program’s algorithm. It should be written as a list
of consecutive phrases and indentation can be used to
show the logic in pseudo-code or the looping process.
Sample using flowcharting symbols
BASIC SYMBOLS USED IN
FLOWCHARTING
Terminal Symbol/Block
The terminator symbol marks the staring or
ending point of the system. It usually contains
the work “start” or “end”.
Preparation/Initialization/Housekeeping Block
It is used to select condition to be initialize.
Input/output Block
It represents material or information entering or
leaving the system.
Action/Process/Sequence Block
A box can represent a single step, or and entire
sub-process within a larger process. It can
perform also any calculations to be done.
Flowlines
It signifies the process that is to be executed
next.
On Page Connector
https://www.youtube.com/watch?v=_1xT4zV8mKQ
1. Draw a flowchart that compute the grade of the student based on three grading system prelim is 20%, Midterm is 30% and final is 50%
Average grade = ( prelim + midterm + final))/3
Limit 8 detail lines per page
Test the average grade to get the Remark
Grade Remark
<= 3.0 Passed
<= 3.5 Incomplete
<=5.0 Failed
ABC University
Philippines
sw==0 exit
ln== com
0 p
end
Grades=(p*.20+
hdg m+*.3+f*.5)/3
exit
detai exit
test comp
l
test
detail
Grades Remark=
<=3.0 “Passed” exit
print sna,p, m,
Remark=“inco f,,Grades,Remark
Grades
<=3.5 mplete” exit
Grades=0
Remark=“faile
d”
ln=ln+1
ln== exit
8
ln=0
process
start
hdg
Read
aca,cc,ob,d,
w
nb=0,sw=
0,ln=0 Print “PSV Bank of
commerce”
eof sw=s Print “Philippines”
w +1 Print ‘acct name,”,
“classification”,”old.
proce Balanace”,”deposit”,
ss “withdrawal”, “new exit
balance”
ln==
sw= 0
exit
=0
comp
hdg
end
nb=(ob+d)-
w
comp
exit
detail test
exit
test
detail
cc==1 class=“preferrere
d client” exit
Print aca,
class,ob,d,w,n
b
cc==2 class=“Regular
Client”
nb=0
class=“ walk in
client”
ln=ln+1
exit
ln==
exit 10
Ln=0
Lesson 2
COMPUTER
COMPUTER PROGRAM
Known as software program. It is a
structured collection of instruction to the
computer.
COMPUTER PROGRAMMER
A professional/ individual who writes
program.
BRIEF HISTORY OF TURBO C
LANGUAGE
C is a general-purpose computer
programming language developed in 1972 by
Dennis Ritchie at the Bell Telephone Laboratories
to implement the UNIX operating system. Although
C was designed for writing architecturally
independent system
software, it is also widely used for developing
application software.
Terminologies
int main
{
_________;
_________;
_________;
}
Constants – are
identifiers/variables that can store
a value that cannot be changed
during program execution.
#include <stdio.h>
int age;
char name[20];
int main(int arg)
{
printf(“\n Enter your name: “);
scanf(“%s”,&name);
printf(“\n Enter your age: “);
scanf(“%d”, &age);
system(“ pause”);
}