CSC101 Module 2
CSC101 Module 2
must answer the Learning Activities/Exercises (LAEs). The LAEs are designed to help
you acquire the SLOs.
4. Feel free to chat, call, text (09069352363) or send an email ([email protected]) message
I. INTRODUCTION to me if you have questions, reactions, or reflections about the contents or activities in the module.
Any system including a program has its elements. The only way to truly understand the entirety 5. The Practice Task/Assessment and the Assignment shall be checked by me.
of something is by carefully studying what comprises it. In this module, we will be talking about syntax
and its semantics along with flowcharting of a program. V. LESSON 1: Syntax and Semantics
C.1.b Algorithm
The word “algorithm” relates to the name of the mathematician Al-khowarizmi,
which means a procedure or a technique. Software Engineer commonly uses an
algorithm for planning and solving the problems. An algorithm is a sequence of steps
to solve a particular problem or algorithm is an ordered set of unambiguous steps that
produces a result and terminates in a finite time.
According to Walai (n.d.) the advantages of an algorithm are:
• It is a step-wise representation of a solution to a given problem, which makes
it easy to understand.
• An algorithm uses a definite procedure.
• It is not dependent on any programming language, so it is easy to understand
for anyone even without programming knowledge.
• Every step in an algorithm has its own logical sequence so it is easy to
debug.
You Vendor
Prepare
amount and Notify you
state mobile
number Pay amount
Vendor keys in
mobile number
and prepares
change if any.
Awaiting
Receive confirmation
mobile load
and change
End
VII. REFERENCES
1. Brewer, R., 2020. Semantics vs. Syntax vs. Pragmatics (Grammar Rules). Available at
https://www.writersdigest.com/write-better-fiction/semantics-vs-syntax-vs-pragmatics-
grammar-rules
2. Ebo, K. @stackoverflow.com, 2015. What is the difference between syntax and semantics in
programming languages? Available at https://stackoverflow.com/questions/17930267/what-is-
the-difference-between-syntax-and-semantics-in-programming-
languages#:~:text=Syntax%20refers%20to%20the%20structure%2Fform%20of%20the%20co
de%20that,the%20symbols%2C%20characters%20and%20words.&text=While%20semantics
%2C%20It%20concern%20to,concept%20of%20sentence%20or%20statements.
3. [email protected], 2014. What is the difference between syntax and semantics in
programming languages? Available at https://stackoverflow.com/questions/17930267/what-is-
the-difference-between-syntax-and-semantics-in-programming-
languages#:~:text=Syntax%20refers%20to%20the%20structure%2Fform%20of%20the%20co
de%20that,the%20symbols%2C%20characters%20and%20words.&text=While%20semantics
%2C%20It%20concern%20to,concept%20of%20sentence%20or%20statements
4. Walai, R., (n.d.), ALGORITHM AND FLOWCHART MANUAL for STUDENTS. Available at
http://www.yspuniversity.ac.in/cic/algorithm-manual.pdf