Malik Ahmad Siraj LECTURE 1
INTRODUCTION TO CPM
Course Objectives
Computer.
Terminologies
What is programing
How the Software Engineer Develop software
What is software Engineering
ERP’s , CRM’s, SCM’s
This course will help you to…
understand the basics of programming, be
able to write simple programs.
How Brain Works?
Data
information
Input CPU Output
Data Processing Information
The Computer Defined
Electronic device, that process data.
Converts data into information
Modern computers are digital
Two digits combine to make data
Older computers were analog
A range of values made data
SOFTWARE / PROGRAM
A computer is an electronic device that
completes tasks, under the direction of a
sequence of instructions, to produce useful
results for people
The set of instructions that directs a computer
to perform tasks is called computer
software, or a computer program.
SOFTWARE / PROGRAM
When controlled by programs, computers can
accomplish a wide variety of activities. E.g.
computers can interpret and display a page from
the World Wide Web
Compute and write payroll checks for millions of
employees,
display video play audio from the Web or from
digital video discs (DVDs),
create messages on mobile phones, and be used
to write a book
Knowing the Basic
Two vital components of a computer must
interact with one another for any activity to
be performed.
These components are
computer hardware
Computer software
Knowing the Basics
Computer hardware is the physical
equipment associated with a computer.
The keyboard, mouse, monitor, central
processing unit (CPU), random-access
memory (RAM), hard disk,DVD drive, printer,
and other devices
Knowing the Basics
Computer software, or a computer program,
is a set of electronic instructions that directs
the computer hardware to perform tasks such
as
displaying a character on the monitor when a key on
the keyboard is pressed
adding an employee’s regular time pay and
overtime pay to calculate the total pay for that
employee
Knowing the Basics
displaying a picture from an attached digital camera on
the monitor. Computer
HENCE
hardware cannot perform any
activity unless an instruction directs
that hardware to act. In most cases, the
instruction is part of a computer
program a developer has created to
carry out the desired activity.
KNOWING THE BASICS
A third component required is data. Data
includes words, numbers, videos, graphics,
and sound that programs manipulate,
display, and otherwise process.
BASIC FUNCTION OF PROGRAM
The basic function of many programs is to
accept some form of data (sometimes called
input data),
manipulate the data in some manner
(sometimes called processing),
And create some form of data usable by
people or other computers (sometimes called
output data, or information) (
STEPS OF PROGRAM
INPUT
PROCESS
OUTPUT
STORAGE
Same as input processing cycle
Computer Programmers and
Developers
A computer program is designed and developed by people
known as computer programmers, or developers or
software Engineers
These are people skilled in designing computer programs
and creating them using programming languages.
Some computer programs are small and relatively simple,
but often a problem to be solved on a
computer requires more than one program. Thus, you will
find that developers speak
of developing an application, which can mean several
computer programs working
together to solve a problem.
Computer Programmers and
Developers
When designing a program, developers
analyse the problem and determine how to
solve it.
Once a computer program or an application
is designed, the developer must create it so it
can be executed on a computer.
In most cases, the developer
creates the program by writing the code for
the program(s) using a programming
language
Computer Programmers and
Developers
programming language is set of words and
symbols that can be interpreted by
special computer software and eventually
executed as instructions by a computer.
In this course, you will learn the skills required
to both design and create computer
programs using the Visual Basic 2010
programming language
Event-Driven Computer
Programs with a GUI
Most Visual Basic 2010 programs are event-
driven programs that communicate
with the user through a graphical user
interface (GUI).
The GUI usually consists of a window,
containing a variety of objects, that can be
displayed on various devices e.g. monitors
Event-Driven Computer
Programs with a GUI
Event-Driven Computer
Programs with a GUI
Event-Driven Computer
Programs with a GUI
BASIC PROGRAM OPERATIONS
INPUT OPERATION
OUTPUT OPERATION
BASIC PROGRAM OPERATIONS
BASIC ARITHEMATIC OPERATION
BASIC PROGRAM OPERATIONS
COMPARING EQUAL CONDITION
BASIC PROGRAM OPERATIONS
Comparing — Less Than Condition
BASIC PROGRAM OPERATIONS
Comparing — Greater Than Condition
PROGRAMMING LANGUAGES
Visual Basic (2010)
C
C++
Vicsual C#
Visual F#
EXCEL
Microsoft Excel is a spreadsheet program
included in the Microsoft Office suite of
applications.
Types of VB Applications
VB
VBA
VBS
TYPES OF VB APPLICATIONS
Windows
Web
Mobile
Office
Database
Macros & VBA
Macro is a slice of code
Written in programming language VBA
VBA editor is present in all MS Office
Applications like Excel, Word, Power Point
Why we need Macros
Repetitive tasks
New Formula
Complex Tasks
Synonyms / Terminologies for
Macros
Sub Routine
Procedure
Program
Macro Defination
Macro is an Object Oriented Program
In Excel anything / Everything is Object
Excel Workbooks, Sheets, Columns , Rows, Charts
Object Model for Excel
Application
Workbook
Sheet1 Sheet2 Sheet3
Chart Control Shape Range
EXCEL
Spreadsheets present tables of values
arranged in rows and columns
that can be manipulated mathematically
using both basic and complex arithmetic
operations and functions
SAVING PROGRAM and DATA
Programs are stored in storage
Data is stored in Database
A database is a collection of data organized
in a manner that allows access, retrieval,
and use of that data. Once the data is saved
in the database, any programs with
permission can reference the data
THANK YOU