Professional Documents
Culture Documents
Programming
MODULE 1
Story: https://nextshark.com/isabel-sieh-youngest-programmer-startup/
Module 1
Introduction to Programming
COURSE INTENDED
LEARNING OUTCOMES
CILO 1:
Discuss the importance of Programming and apply simple input
and output statements.
Lesson Objectives
Programmer? Programming?
Programming is the action or process of writing
A programmer a person who writes
computer programs.
computer programs.
LEVELS OF PROGRAMMING
LANGUAGES
MACHINE HIGH
ASSEMBLY
LEVEL LEVEL
LANGUAGE
LANGUAGE LANGUAGE
consists of a set of instructions contains mnemonic commands consists of English-like statements that
that are in the binary form 0 or 1. such as mov, add, sub, etc. are easy to understand
Machine Language
• The only language that is ever actually
executed by a computer.
• Composed of instructions encoded as strings
of 0's and 1's.
• Never written and rarely read directly by
programmers
Assembly Language
• contains mnemonic commands such as mov,
add, sub, etc.
• 1-1: One assembly language instruction
corresponds to one machine language
instruction.
• The Assembler (a program) translates
assembly code into machine code.
High Level Language
• consists of English-like statements that are easy
to understand
• Assembly language is still tedious to work in so
most work done in HLL.
• Translated into machine language by a Compiler
(sometimes an intermediate language).
• One-to-many: One HLL statement translates into
several or several dozen of machine instructions.
Compiler
• The language processor that reads the complete source program written in high
level language as a whole in one go and translates it into an equivalent program
in machine language.
Assembler
• The translation of single statement of source program into machine code is done
by language processor and executes it immediately before moving on to the next
line.
The C# Programming
Language
• C# was developed as an object-oriented and component-oriented
language
• It exists as part of the Visual Studio .NET package
• C# (like Java) is modeled after the C++ programming language
• Pointers are not used in C#
• C# does NOT require the use of object destructors, forward
declarations, or #include files
• It has the ability to pass by reference
• Multiple inheritance is not allowed in C#
Writing a C# Program that Produces Output
• Console is a class
• Console defines the attributes of a
collection of similar “Console” objects
Writing a C# Program that Produces Output