SlideShare a Scribd company logo
LECTURE 04
INTRODUCTION TO
PROGRAMMING &
DATABASES
Mr. Mubashir Ali
Lecturer(Dept. of Computer Science)
dr.mubashirali1@gmail.com
Living in a Digital World
Discovering
Computers 2010
Objectives Overview
Differentiate between
machine and assembly
languages
Identify and discuss the
purpose of procedural
programming languages,
and describe the features of
C and COBOL
Identify and discuss the
characteristics of these
object-oriented
programming languages
and program development
tools
Identify the uses of other
programming languages
and program development
tools
Describe various ways to
develop Web pages
Discovering Computers 2010: Living in a Digital World
Chapter 13
3See Page 663
for Detailed Objectives
Objectives Overview
Identify the uses of
popular multimedia
authoring programs
List the six steps in the
program development
life cycle
Differentiate between
structured design and
object-oriented design
Explain the basic
control structures and
design tools used in
designing solutions to
programming problems
Discovering Computers 2010: Living in a Digital World
Chapter 13
4See Page 663
for Detailed Objectives
Computer Programs
and Programming Languages
• A computer program is a series of instructions
that directs a computer to perform tasks
– Created by a programmer using a programming
language
Discovering Computers 2010: Living in a Digital World
Chapter 13
5Pages 664 – 665
Figure 13-1
Low-Level Languages
• Machine language is
the first generation of
programming languages
• Only language the
computer directly
recognizes
Discovering Computers 2010: Living in a Digital World
Chapter 13
6Page 665
Figure 13-2
Low-Level Languages
• Assembly language is the
second generation of
programming languages
• Programmer writes
instructions using
symbolic instruction
codes
• A source program
contains the code to be
converted to machine
language
Discovering Computers 2010: Living in a Digital World
Chapter 13
7Pages 665 – 666
Figure 13-3
Procedural Languages
• In a procedural language, the programmer writes
instructions that tell the computer what to
accomplish and how to do it
– Third-generation language (3GL)
Discovering Computers 2010: Living in a Digital World
Chapter 13
8Pages 666 - 667
A compiler
translates an entire
program before
executing it
An interpreter converts
and executes one code
statement at a time
Procedural Languages
Discovering Computers 2010: Living in a Digital World
Chapter 13
9Page 667
Figures 13-4 – 13-5
Object-Oriented Programming Languages
and Program Development Tools
• An object-oriented programming (OOP) language allows
programmers the ability to reuse and modify existing
objects
• Other advantages include:
Discovering Computers 2010: Living in a Digital World
Chapter 13
10Page 669
Objects can be
reused
Programmers
create applications
faster
Work well in a
RAD environment
Most program
development tools
are IDEs
Object-Oriented Programming Languages
and Program Development Tools
• Java is an object-oriented programming language
developed by Sun Microsystems
• The Just-in-time (JIT) compiler to convert the bytecode
into machine-dependent code
Discovering Computers 2010: Living in a Digital World
Chapter 13
11Page 670
Figure 13-8
Click to view Web Link,
click Chapter 13, Click
Web Link from left
navigation, then click
Java Platforms
below Chapter 13
Object-Oriented Programming Languages
and Program Development Tools
• The Microsoft .NET Framework allows almost any
type of program to run on the Internet or an
internal business network, as well as computers
and mobile devices
• Features include:
Discovering Computers 2010: Living in a Digital World
Chapter 13
12Page 670
CLR (Common
Language
Runtime)
Classes
Object-Oriented Programming Languages
and Program Development Tools
• C++ is an extension of
the C programming
language
– Additional features for
working with objects,
classes, events, and
other object-oriented
concepts
• C# is based on C++ and
was developed by
Microsoft
Discovering Computers 2010: Living in a Digital World
Chapter 13
13Page 671
Figure 13-9
Object-Oriented Programming Languages
and Program Development Tools
Visual Studio is Microsoft’s suite of
program development tools
Visual Basic is
based on the BASIC
programming
language
Visual C++ is based
on C++
Visual C# combines
the programming
elements of C++
with an easier,
rapid-development
environment
Discovering Computers 2010: Living in a Digital World
Chapter 13
14Pages 671 - 673
Object-Oriented Programming Languages
and Program Development Tools
A visual programming language is a language that
uses a visual or graphical interface for creating all
source code
Borland’s Delphi is a powerful program
development tool that is ideal for building large-
scale enterprise and Web applications in a RAD
environment
Discovering Computers 2010: Living in a Digital World
Chapter 13
15Page 673
Other Programming Languages
and Development Tools
• A 4GL (fourth-generation language) is a
nonprocedural language that enables users and
programmers to access data in a database
– One popular 4GL is SQL
Discovering Computers 2010: Living in a Digital World
Chapter 13
16Page 674
Figure 13-13
Other Programming Languages
and Development Tools
• Classic programming languages include:
Discovering Computers 2010: Living in a Digital World
Chapter 13
17Page 675
Figure 13-14
Ada ALGOL APL BASIC
Forth FORTRAN HyperTalk LISP
Logo Modula-2 Pascal PILOT
PL/1 Prolog RPG Smalltalk
Other Programming Languages
and Development Tools
• An application generator is a program that creates
source code or machine code from a specification of the
required functionality
– Often bundled as part of a DBMS
Discovering Computers 2010: Living in a Digital World
Chapter 13
18Page 676
Figure 13-15
Summary of ITP
Various programming
languages used to
create computer
programs
A variety of Web
development and
multimedia
development tools
Steps in the program
development life cycle
and tools used to make
this process efficient
Discovering Computers 2010: Living in a Digital World
Chapter 13
19Page 705
Objectives Overview DBMS
Define the term,
database, and explain
how a database
interacts with data and
information
Define the term, data
integrity, and describe
the qualities of valuable
information
Discuss the terms
character, field, record,
and file
Describe file
maintenance
techniques and
validation techniques
Differentiate between a
file processing
approach and the
database approach
Discovering Computers 2010: Living in a Digital World
Chapter 10
20See Page 513
for Detailed Objectives
Objectives Overview
Discuss the functions
common to most
database management
systems
Describe characteristics
of relational, object-
oriented, and
multidimensional
databases
Explain how to access
Web databases
Identify database design
guidelines and discuss
the responsibilities of
database analysts and
administrators
Discovering Computers 2010: Living in a Digital World
Chapter 10
21See Page 513
for Detailed Objectives
Databases, Data, and Information
Database
• Collection of
data organized
in a manner
that allows
access,
retrieval, and
use of that
data
Data
• Collection of
unprocessed
items
• Text
• Numbers
• Images
• Audio
• Video
Information
• Processed data
• Documents
• Audio
• Images Video
Discovering Computers 2010: Living in a Digital World
Chapter 10
22Page 514
Databases, Data, and Information
• Database software, often called a database
management system (DBMS), allows users to:
Discovering Computers 2010: Living in a Digital World
Chapter 10
23Page 515
Create a computerized
database
Add, modify, and
delete data
Sort and retrieve data
Create forms and
reports from the data
Databases, Data, and Information
• Data integrity identifies the quality of the data
• Garbage in, garbage out (GIGO) points out the
accuracy of a computer’s output depends on the
accuracy of the input
Discovering Computers 2010: Living in a Digital World
Chapter 10
24Page 516
Click to view Web Link,
click Chapter 10, Click Web
Link from left navigation,
then click Data Integrity
below Chapter 10
Databases, Data, and Information
• Valuable information should have the following
characteristics:
Discovering Computers 2010: Living in a Digital World
Chapter 10
25Pages 516 - 517
Accurate Verifiable Timely Organized
Accessible Useful
Cost-
effective
The Hierarchy of Data
• Data is organized in layers
– Files, records, fields, characters
Discovering Computers 2010: Living in a Digital World
Chapter 10
26Page 517
Figure 10-2
The Hierarchy of Data
• A character is one byte
– Numbers, letters, space,
punctuation marks, or
other symbols
• A field is a combination
of one or more related
characters
– Field name
– Field size
– Data type
Discovering Computers 2010: Living in a Digital World
Chapter 10
27Page 518
Figure 10-3
The Hierarchy of Data
• Common data types include:
Discovering Computers 2010: Living in a Digital World
Chapter 10
28Page 518
Text Numeric AutoNumber Currency
Date Memo Yes/No Hyperlink
Object Attachment
The Hierarchy of Data
Discovering Computers 2010: Living in a Digital World
Chapter 10
29Page 519
Figure 10-4
• A record is a group of related fields
– A primary key uniquely identifies each record
• A data file is a collection of related records
Maintaining Data
• File maintenance refers to the procedures that
keep data current
Discovering Computers 2010: Living in a Digital World
Chapter 10
30Page 520
Adding
records
Modifying
records
Deleting
records
Maintaining Data
• Validation compares data with a set of rules or
values to find out if the data is correct
Discovering Computers 2010: Living in a Digital World
Chapter 10
31Pages 522 - 524
Alphabetic/Numeric
Check
Range check Consistency check
Completeness check Check digit Other checks
Click to view Web Link,
click Chapter 10, Click Web
Link from left navigation,
then click Data Validation
below Chapter 10
File Processing Versus Databases
Discovering Computers 2010: Living in a Digital World
Chapter 10
32Pages 524 - 526
File processing system
• Each department has its
own set of files
• Used for many years
• Have data redundancy
• Isolate data
Database approach
• Programs and users share
data
• Reduce data redundancy
• Improve data integrity
• Share data
• Allows easier access
• Reduces development time
• Can be more vulnerable
File Processing Versus Databases
Discovering Computers 2010: Living in a Digital World
Chapter 10
33Page 525
Figure 10-10
Database Management Systems
• A data dictionary contains data about each file in
the database and each field in those files
Discovering Computers 2010: Living in a Digital World
Chapter 10
34Pages 527 – 528
Figure 10-12
Database Management Systems
• A DBMS provides several tools that allow users
and programs to retrieve and maintain data in the
database
Discovering Computers 2010: Living in a Digital World
Chapter 10
35Page 528
Query language
Query by example
Form
Report generator
Database Management Systems
• A query language consists of simple, English-like
statements that allow users to specify the data to
display, print, or store
• Query by example (QBE) provides a GUI to assist
users with retrieving data
Discovering Computers 2010: Living in a Digital World
Chapter 10
36Page 528
Database Management Systems
A DBMS provides means to
ensure that only authorized users
access data at permitted times
•Access privileges
•Principle of least privilege
Discovering Computers 2010: Living in a Digital World
Chapter 10
37Page 531
Database Management Systems
• A DMBS provides a variety of techniques to
restore the database to a usable form in case it is
damaged or destroyed
Discovering Computers 2010: Living in a Digital World
Chapter 10
38Pages 531 - 532
Backup Log
Recovery
utility
Continuous
backup
Relational, Object-Oriented, and
Multidimensional Databases
• A relational database
stores data in tables
that consist of rows and
columns
– Each row has a primary
key
– Each column has a
unique name
• A relationship is a link
within the data
Discovering Computers 2010: Living in a Digital World
Chapter 10
39Page 533
Figure 10-20
Relational, Object-Oriented, and
Multidimensional Databases
• Structured Query Language (SQL) is a query
language that allows users to manage, update,
and retrieve data
Discovering Computers 2010: Living in a Digital World
Chapter 10
40Page 534
Figure 10-21
Click to view Web Link,
click Chapter 10, Click Web
Link from left navigation,
then click SQL
below Chapter 10
Relational, Object-Oriented, and
Multidimensional Databases
• An object-oriented database (OODB) stores data
in objects
• Examples of applications appropriate for an
object-oriented database include:
Discovering Computers 2010: Living in a Digital World
Chapter 10
41Page 534
Multimedia
database
Groupware
database
Computer-
aided design
database
Hypertext
database
Relational, Object-Oriented, and
Multidimensional Databases
• A multidimensional database can store data in more
than two dimensions of data
– Sometimes known as a hypercube
– Can consolidate data much faster than a relational database
• A data warehouse is a huge database that stores and
manages the data required to analyze historical and
current transactions
Discovering Computers 2010: Living in a Digital World
Chapter 10
42Pages 535 - 536
Click to view Web Link,
click Chapter 10, Click Web
Link from left navigation,
then click Data Warehouses
below Chapter 10
Web Databases
• Databases on the Web allow you to:
Discovering Computers 2010: Living in a Digital World
Chapter 10
43Page 536
Shop for
products or
services
Buy or sell stocks Search for a job
Make airline
reservations
Register for
college classes
Check semester
grades
Database Administration
Database analysts and administrators are responsible
for managing and coordinating all database activities
Database Analyst (DA)
Decides on proper field
placement, defines data
relationship, and identifies users’
access privileges
Database Administrator (DBA)
Creates and maintains the data
dictionary, manages security,
monitors performance, and
checks backup and recovery
procedures
Discovering Computers 2010: Living in a Digital World
Chapter 10
44Page 538
Click to view Web Link,
click Chapter 10, Click Web
Link from left navigation,
then click Database
Administrators below
Chapter 10
Summary
How data and
information are
valuable assets to
an organization
Methods for
maintaining high-
quality data
Assessing the
quality of valuable
information
Advantages of
organizing data in
a database
Various types of
databases
Roles of the
database analysts
and administrators
Discovering Computers 2010: Living in a Digital World
Chapter 10
45Page 539
Ad

Recommended

Memory and storage
Memory and storage
AinaRajpoot
 
Windows 7: The Basics
Windows 7: The Basics
San Diego Continuing Education
 
Introduction to computers
Introduction to computers
Tushar B Kute
 
Database systems
Database systems
Dhani Ahmad
 
[GE207] Session01: Introduction to Digital Technology
[GE207] Session01: Introduction to Digital Technology
Sukanya Ben
 
Storage devices and media
Storage devices and media
Anjan Mahanta
 
Introduction to Network and System Administration
Introduction to Network and System Administration
Duressa Teshome
 
File management ppt
File management ppt
marotti
 
Lecture 15 requirements modeling - scenario, information and analysis class...
Lecture 15 requirements modeling - scenario, information and analysis class...
IIUI
 
Disaster Recovery & Data Backup Strategies
Disaster Recovery & Data Backup Strategies
Spiceworks
 
Introduction to ICT - lecture 1
Introduction to ICT - lecture 1
Mohamed Thawuship
 
Database administration and security
Database administration and security
Dhani Ahmad
 
Presentation Software
Presentation Software
gueste5c836
 
DBMS-1.pptx
DBMS-1.pptx
kingVox
 
Cloud Computing
Cloud Computing
International School Of Management Excellence
 
My presentation on 'computer hardware component' {hardware}
My presentation on 'computer hardware component' {hardware}
Rahul Kumar
 
Operating Systems - File Management
Operating Systems - File Management
Damian T. Gordon
 
Computer Hardware-Part 1
Computer Hardware-Part 1
Coky Fauzi Alfi
 
Database design (conceptual, logical and physical design) unit 2 part 2
Database design (conceptual, logical and physical design) unit 2 part 2
Ram Paliwal
 
BIOS basic input output system
BIOS basic input output system
Vipul Buchade
 
Introduction to databases
Introduction to databases
Bryan Corpuz
 
VTU Open Elective 6th Sem CSE - Module 2 - Cloud Computing
VTU Open Elective 6th Sem CSE - Module 2 - Cloud Computing
Sachin Gowda
 
Infrastructure Planning and Design
Infrastructure Planning and Design
Sergi Duró
 
Data models
Data models
Samuel Igbanogu
 
Computer System Organization
Computer System Organization
Kulachi Hansraj Model School Ashok Vihar
 
Database Security
Database Security
alraee
 
ITFT - Window explorer
ITFT - Window explorer
Blossom Sood
 
Connecting Hardware Peripherals Level 1 Ver 2 - Copy.pdf
Connecting Hardware Peripherals Level 1 Ver 2 - Copy.pdf
EYOHAICTMEDIA
 
programming
programming
Hafiz Ashraf
 
Programming Languages
Programming Languages
knowledge1995
 

More Related Content

What's hot (20)

Lecture 15 requirements modeling - scenario, information and analysis class...
Lecture 15 requirements modeling - scenario, information and analysis class...
IIUI
 
Disaster Recovery & Data Backup Strategies
Disaster Recovery & Data Backup Strategies
Spiceworks
 
Introduction to ICT - lecture 1
Introduction to ICT - lecture 1
Mohamed Thawuship
 
Database administration and security
Database administration and security
Dhani Ahmad
 
Presentation Software
Presentation Software
gueste5c836
 
DBMS-1.pptx
DBMS-1.pptx
kingVox
 
Cloud Computing
Cloud Computing
International School Of Management Excellence
 
My presentation on 'computer hardware component' {hardware}
My presentation on 'computer hardware component' {hardware}
Rahul Kumar
 
Operating Systems - File Management
Operating Systems - File Management
Damian T. Gordon
 
Computer Hardware-Part 1
Computer Hardware-Part 1
Coky Fauzi Alfi
 
Database design (conceptual, logical and physical design) unit 2 part 2
Database design (conceptual, logical and physical design) unit 2 part 2
Ram Paliwal
 
BIOS basic input output system
BIOS basic input output system
Vipul Buchade
 
Introduction to databases
Introduction to databases
Bryan Corpuz
 
VTU Open Elective 6th Sem CSE - Module 2 - Cloud Computing
VTU Open Elective 6th Sem CSE - Module 2 - Cloud Computing
Sachin Gowda
 
Infrastructure Planning and Design
Infrastructure Planning and Design
Sergi Duró
 
Data models
Data models
Samuel Igbanogu
 
Computer System Organization
Computer System Organization
Kulachi Hansraj Model School Ashok Vihar
 
Database Security
Database Security
alraee
 
ITFT - Window explorer
ITFT - Window explorer
Blossom Sood
 
Connecting Hardware Peripherals Level 1 Ver 2 - Copy.pdf
Connecting Hardware Peripherals Level 1 Ver 2 - Copy.pdf
EYOHAICTMEDIA
 
Lecture 15 requirements modeling - scenario, information and analysis class...
Lecture 15 requirements modeling - scenario, information and analysis class...
IIUI
 
Disaster Recovery & Data Backup Strategies
Disaster Recovery & Data Backup Strategies
Spiceworks
 
Introduction to ICT - lecture 1
Introduction to ICT - lecture 1
Mohamed Thawuship
 
Database administration and security
Database administration and security
Dhani Ahmad
 
Presentation Software
Presentation Software
gueste5c836
 
DBMS-1.pptx
DBMS-1.pptx
kingVox
 
My presentation on 'computer hardware component' {hardware}
My presentation on 'computer hardware component' {hardware}
Rahul Kumar
 
Operating Systems - File Management
Operating Systems - File Management
Damian T. Gordon
 
Computer Hardware-Part 1
Computer Hardware-Part 1
Coky Fauzi Alfi
 
Database design (conceptual, logical and physical design) unit 2 part 2
Database design (conceptual, logical and physical design) unit 2 part 2
Ram Paliwal
 
BIOS basic input output system
BIOS basic input output system
Vipul Buchade
 
Introduction to databases
Introduction to databases
Bryan Corpuz
 
VTU Open Elective 6th Sem CSE - Module 2 - Cloud Computing
VTU Open Elective 6th Sem CSE - Module 2 - Cloud Computing
Sachin Gowda
 
Infrastructure Planning and Design
Infrastructure Planning and Design
Sergi Duró
 
Database Security
Database Security
alraee
 
ITFT - Window explorer
ITFT - Window explorer
Blossom Sood
 
Connecting Hardware Peripherals Level 1 Ver 2 - Copy.pdf
Connecting Hardware Peripherals Level 1 Ver 2 - Copy.pdf
EYOHAICTMEDIA
 

Similar to Lecture-4: Introduction to Programming & Databases (20)

programming
programming
Hafiz Ashraf
 
Programming Languages
Programming Languages
knowledge1995
 
Chapter 13 programming languages and program development
Chapter 13 programming languages and program development
haider ali
 
Discovering Computers: Chapter 13
Discovering Computers: Chapter 13
Anna Stirling
 
CH13-Computer Programs and Programming Languages
CH13-Computer Programs and Programming Languages
Sukanya Ben
 
Ch.01-2.ppt java[27/11, 11:00 am] Sumaya👸🏻✨️: Mida kale waqtiga wuba kudhamaa...
Ch.01-2.ppt java[27/11, 11:00 am] Sumaya👸🏻✨️: Mida kale waqtiga wuba kudhamaa...
xaydari03
 
Database Management
Database Management
Elly Brent Baldovino
 
CSC1100 - Chapter11 - Programming Languages and Program Development
CSC1100 - Chapter11 - Programming Languages and Program Development
Yhal Htet Aung
 
Programming languages and programme development of computer by sarmad baloch
Programming languages and programme development of computer by sarmad baloch
Sarmad Baloch
 
C 1
C 1
guest8be6bb5
 
Chapter 10 database management
Chapter 10 database management
haider ali
 
Chapter1.ppt
Chapter1.ppt
HernanDelosSantosjr
 
Itc chapter # 8
Itc chapter # 8
National university of modern languages
 
Programming language
Programming language
Dhani Ahmad
 
Csc240 lecture 1
Csc240 lecture 1
Ainuddin Yousufzai
 
C programming Introduction
C programming Introduction
Srinivas Dr. Suri
 
Database Management
Database Management
Samudin Kassan
 
CH10-Managing a Database
CH10-Managing a Database
Sukanya Ben
 
Chtp4 01
Chtp4 01
manedar
 
Chapter13
Chapter13
Izaham
 
Programming Languages
Programming Languages
knowledge1995
 
Chapter 13 programming languages and program development
Chapter 13 programming languages and program development
haider ali
 
Discovering Computers: Chapter 13
Discovering Computers: Chapter 13
Anna Stirling
 
CH13-Computer Programs and Programming Languages
CH13-Computer Programs and Programming Languages
Sukanya Ben
 
Ch.01-2.ppt java[27/11, 11:00 am] Sumaya👸🏻✨️: Mida kale waqtiga wuba kudhamaa...
Ch.01-2.ppt java[27/11, 11:00 am] Sumaya👸🏻✨️: Mida kale waqtiga wuba kudhamaa...
xaydari03
 
CSC1100 - Chapter11 - Programming Languages and Program Development
CSC1100 - Chapter11 - Programming Languages and Program Development
Yhal Htet Aung
 
Programming languages and programme development of computer by sarmad baloch
Programming languages and programme development of computer by sarmad baloch
Sarmad Baloch
 
Chapter 10 database management
Chapter 10 database management
haider ali
 
Programming language
Programming language
Dhani Ahmad
 
CH10-Managing a Database
CH10-Managing a Database
Sukanya Ben
 
Chtp4 01
Chtp4 01
manedar
 
Chapter13
Chapter13
Izaham
 
Ad

More from Mubashir Ali (20)

Lecture-3: Traditional Approaches to System Development and Enterprise Engine...
Lecture-3: Traditional Approaches to System Development and Enterprise Engine...
Mubashir Ali
 
Lecture-2: Zachman Framework for Enterprise Architecture
Lecture-2: Zachman Framework for Enterprise Architecture
Mubashir Ali
 
Lecture-3: Introduction to html - Basic Structure & Block Building
Lecture-3: Introduction to html - Basic Structure & Block Building
Mubashir Ali
 
Lecture-2: Web development application development process model
Lecture-2: Web development application development process model
Mubashir Ali
 
Lecture-1: Introduction to web engineering - course overview and grading scheme
Lecture-1: Introduction to web engineering - course overview and grading scheme
Mubashir Ali
 
Lecture-1: Introduction to system integration and architecture - course overv...
Lecture-1: Introduction to system integration and architecture - course overv...
Mubashir Ali
 
Lecture-7: World Wide Web (WWW) & ECommerce
Lecture-7: World Wide Web (WWW) & ECommerce
Mubashir Ali
 
Lecture-6: The Internet
Lecture-6: The Internet
Mubashir Ali
 
Lecture-5: Introduction to Networks & Data Communication
Lecture-5: Introduction to Networks & Data Communication
Mubashir Ali
 
Lecture-3: Operating System & Application Softwares
Lecture-3: Operating System & Application Softwares
Mubashir Ali
 
Lecture-2(2): Number System & Conversion
Lecture-2(2): Number System & Conversion
Mubashir Ali
 
Lecture-2(1): Computer Hardware & System Components
Lecture-2(1): Computer Hardware & System Components
Mubashir Ali
 
Lecture-1: Introduction to Computer - Basic Definitions & Concepts- Computer ...
Lecture-1: Introduction to Computer - Basic Definitions & Concepts- Computer ...
Mubashir Ali
 
Software Matrics (Product - Process - Resource - Matrics) - (LOC, FP, Complex...
Software Matrics (Product - Process - Resource - Matrics) - (LOC, FP, Complex...
Mubashir Ali
 
Lect-6&7: Network Diagrams, PERT and CPM
Lect-6&7: Network Diagrams, PERT and CPM
Mubashir Ali
 
Lect-5: Work Breakdown Structure and Project Cost Estimation
Lect-5: Work Breakdown Structure and Project Cost Estimation
Mubashir Ali
 
Lect-4: Software Development Life Cycle Model - SPM
Lect-4: Software Development Life Cycle Model - SPM
Mubashir Ali
 
Lect-4: UML diagrams - Unified Modeling Language - SPM
Lect-4: UML diagrams - Unified Modeling Language - SPM
Mubashir Ali
 
Lect-3: Statement of Work - Write effective SOW for Software Project - Template
Lect-3: Statement of Work - Write effective SOW for Software Project - Template
Mubashir Ali
 
Lect-2: Overview and Traditional SPM, Classic mistakes
Lect-2: Overview and Traditional SPM, Classic mistakes
Mubashir Ali
 
Lecture-3: Traditional Approaches to System Development and Enterprise Engine...
Lecture-3: Traditional Approaches to System Development and Enterprise Engine...
Mubashir Ali
 
Lecture-2: Zachman Framework for Enterprise Architecture
Lecture-2: Zachman Framework for Enterprise Architecture
Mubashir Ali
 
Lecture-3: Introduction to html - Basic Structure & Block Building
Lecture-3: Introduction to html - Basic Structure & Block Building
Mubashir Ali
 
Lecture-2: Web development application development process model
Lecture-2: Web development application development process model
Mubashir Ali
 
Lecture-1: Introduction to web engineering - course overview and grading scheme
Lecture-1: Introduction to web engineering - course overview and grading scheme
Mubashir Ali
 
Lecture-1: Introduction to system integration and architecture - course overv...
Lecture-1: Introduction to system integration and architecture - course overv...
Mubashir Ali
 
Lecture-7: World Wide Web (WWW) & ECommerce
Lecture-7: World Wide Web (WWW) & ECommerce
Mubashir Ali
 
Lecture-6: The Internet
Lecture-6: The Internet
Mubashir Ali
 
Lecture-5: Introduction to Networks & Data Communication
Lecture-5: Introduction to Networks & Data Communication
Mubashir Ali
 
Lecture-3: Operating System & Application Softwares
Lecture-3: Operating System & Application Softwares
Mubashir Ali
 
Lecture-2(2): Number System & Conversion
Lecture-2(2): Number System & Conversion
Mubashir Ali
 
Lecture-2(1): Computer Hardware & System Components
Lecture-2(1): Computer Hardware & System Components
Mubashir Ali
 
Lecture-1: Introduction to Computer - Basic Definitions & Concepts- Computer ...
Lecture-1: Introduction to Computer - Basic Definitions & Concepts- Computer ...
Mubashir Ali
 
Software Matrics (Product - Process - Resource - Matrics) - (LOC, FP, Complex...
Software Matrics (Product - Process - Resource - Matrics) - (LOC, FP, Complex...
Mubashir Ali
 
Lect-6&7: Network Diagrams, PERT and CPM
Lect-6&7: Network Diagrams, PERT and CPM
Mubashir Ali
 
Lect-5: Work Breakdown Structure and Project Cost Estimation
Lect-5: Work Breakdown Structure and Project Cost Estimation
Mubashir Ali
 
Lect-4: Software Development Life Cycle Model - SPM
Lect-4: Software Development Life Cycle Model - SPM
Mubashir Ali
 
Lect-4: UML diagrams - Unified Modeling Language - SPM
Lect-4: UML diagrams - Unified Modeling Language - SPM
Mubashir Ali
 
Lect-3: Statement of Work - Write effective SOW for Software Project - Template
Lect-3: Statement of Work - Write effective SOW for Software Project - Template
Mubashir Ali
 
Lect-2: Overview and Traditional SPM, Classic mistakes
Lect-2: Overview and Traditional SPM, Classic mistakes
Mubashir Ali
 
Ad

Recently uploaded (20)

How to use search fetch method in Odoo 18
How to use search fetch method in Odoo 18
Celine George
 
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
SHERAZ AHMAD LONE
 
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT Kharagpur Quiz Club
 
HistoPathology Ppt. Arshita Gupta for Diploma
HistoPathology Ppt. Arshita Gupta for Diploma
arshitagupta674
 
List View Components in Odoo 18 - Odoo Slides
List View Components in Odoo 18 - Odoo Slides
Celine George
 
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
Ultimatewinner0342
 
English 3 Quarter 1_LEwithLAS_Week 1.pdf
English 3 Quarter 1_LEwithLAS_Week 1.pdf
DeAsisAlyanajaneH
 
How to Manage Different Customer Addresses in Odoo 18 Accounting
How to Manage Different Customer Addresses in Odoo 18 Accounting
Celine George
 
Gladiolous Cultivation practices by AKL.pdf
Gladiolous Cultivation practices by AKL.pdf
kushallamichhame
 
This is why students from these 44 institutions have not received National Se...
This is why students from these 44 institutions have not received National Se...
Kweku Zurek
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 6-14-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 6-14-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
2025 June Year 9 Presentation: Subject selection.pptx
2025 June Year 9 Presentation: Subject selection.pptx
mansk2
 
How payment terms are configured in Odoo 18
How payment terms are configured in Odoo 18
Celine George
 
Wage and Salary Computation.ppt.......,x
Wage and Salary Computation.ppt.......,x
JosalitoPalacio
 
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
IIT Kharagpur Quiz Club
 
Peer Teaching Observations During School Internship
Peer Teaching Observations During School Internship
AjayaMohanty7
 
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
Ronisha Das
 
Hurricane Helene Application Documents Checklists
Hurricane Helene Application Documents Checklists
Mebane Rash
 
Tanja Vujicic - PISA for Schools contact Info
Tanja Vujicic - PISA for Schools contact Info
EduSkills OECD
 
Public Health For The 21st Century 1st Edition Judy Orme Jane Powell
Public Health For The 21st Century 1st Edition Judy Orme Jane Powell
trjnesjnqg7801
 
How to use search fetch method in Odoo 18
How to use search fetch method in Odoo 18
Celine George
 
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
SHERAZ AHMAD LONE
 
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT Kharagpur Quiz Club
 
HistoPathology Ppt. Arshita Gupta for Diploma
HistoPathology Ppt. Arshita Gupta for Diploma
arshitagupta674
 
List View Components in Odoo 18 - Odoo Slides
List View Components in Odoo 18 - Odoo Slides
Celine George
 
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
Ultimatewinner0342
 
English 3 Quarter 1_LEwithLAS_Week 1.pdf
English 3 Quarter 1_LEwithLAS_Week 1.pdf
DeAsisAlyanajaneH
 
How to Manage Different Customer Addresses in Odoo 18 Accounting
How to Manage Different Customer Addresses in Odoo 18 Accounting
Celine George
 
Gladiolous Cultivation practices by AKL.pdf
Gladiolous Cultivation practices by AKL.pdf
kushallamichhame
 
This is why students from these 44 institutions have not received National Se...
This is why students from these 44 institutions have not received National Se...
Kweku Zurek
 
2025 June Year 9 Presentation: Subject selection.pptx
2025 June Year 9 Presentation: Subject selection.pptx
mansk2
 
How payment terms are configured in Odoo 18
How payment terms are configured in Odoo 18
Celine George
 
Wage and Salary Computation.ppt.......,x
Wage and Salary Computation.ppt.......,x
JosalitoPalacio
 
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
IIT Kharagpur Quiz Club
 
Peer Teaching Observations During School Internship
Peer Teaching Observations During School Internship
AjayaMohanty7
 
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
Ronisha Das
 
Hurricane Helene Application Documents Checklists
Hurricane Helene Application Documents Checklists
Mebane Rash
 
Tanja Vujicic - PISA for Schools contact Info
Tanja Vujicic - PISA for Schools contact Info
EduSkills OECD
 
Public Health For The 21st Century 1st Edition Judy Orme Jane Powell
Public Health For The 21st Century 1st Edition Judy Orme Jane Powell
trjnesjnqg7801
 

Lecture-4: Introduction to Programming & Databases

  • 1. LECTURE 04 INTRODUCTION TO PROGRAMMING & DATABASES Mr. Mubashir Ali Lecturer(Dept. of Computer Science) [email protected]
  • 2. Living in a Digital World Discovering Computers 2010
  • 3. Objectives Overview Differentiate between machine and assembly languages Identify and discuss the purpose of procedural programming languages, and describe the features of C and COBOL Identify and discuss the characteristics of these object-oriented programming languages and program development tools Identify the uses of other programming languages and program development tools Describe various ways to develop Web pages Discovering Computers 2010: Living in a Digital World Chapter 13 3See Page 663 for Detailed Objectives
  • 4. Objectives Overview Identify the uses of popular multimedia authoring programs List the six steps in the program development life cycle Differentiate between structured design and object-oriented design Explain the basic control structures and design tools used in designing solutions to programming problems Discovering Computers 2010: Living in a Digital World Chapter 13 4See Page 663 for Detailed Objectives
  • 5. Computer Programs and Programming Languages • A computer program is a series of instructions that directs a computer to perform tasks – Created by a programmer using a programming language Discovering Computers 2010: Living in a Digital World Chapter 13 5Pages 664 – 665 Figure 13-1
  • 6. Low-Level Languages • Machine language is the first generation of programming languages • Only language the computer directly recognizes Discovering Computers 2010: Living in a Digital World Chapter 13 6Page 665 Figure 13-2
  • 7. Low-Level Languages • Assembly language is the second generation of programming languages • Programmer writes instructions using symbolic instruction codes • A source program contains the code to be converted to machine language Discovering Computers 2010: Living in a Digital World Chapter 13 7Pages 665 – 666 Figure 13-3
  • 8. Procedural Languages • In a procedural language, the programmer writes instructions that tell the computer what to accomplish and how to do it – Third-generation language (3GL) Discovering Computers 2010: Living in a Digital World Chapter 13 8Pages 666 - 667 A compiler translates an entire program before executing it An interpreter converts and executes one code statement at a time
  • 9. Procedural Languages Discovering Computers 2010: Living in a Digital World Chapter 13 9Page 667 Figures 13-4 – 13-5
  • 10. Object-Oriented Programming Languages and Program Development Tools • An object-oriented programming (OOP) language allows programmers the ability to reuse and modify existing objects • Other advantages include: Discovering Computers 2010: Living in a Digital World Chapter 13 10Page 669 Objects can be reused Programmers create applications faster Work well in a RAD environment Most program development tools are IDEs
  • 11. Object-Oriented Programming Languages and Program Development Tools • Java is an object-oriented programming language developed by Sun Microsystems • The Just-in-time (JIT) compiler to convert the bytecode into machine-dependent code Discovering Computers 2010: Living in a Digital World Chapter 13 11Page 670 Figure 13-8 Click to view Web Link, click Chapter 13, Click Web Link from left navigation, then click Java Platforms below Chapter 13
  • 12. Object-Oriented Programming Languages and Program Development Tools • The Microsoft .NET Framework allows almost any type of program to run on the Internet or an internal business network, as well as computers and mobile devices • Features include: Discovering Computers 2010: Living in a Digital World Chapter 13 12Page 670 CLR (Common Language Runtime) Classes
  • 13. Object-Oriented Programming Languages and Program Development Tools • C++ is an extension of the C programming language – Additional features for working with objects, classes, events, and other object-oriented concepts • C# is based on C++ and was developed by Microsoft Discovering Computers 2010: Living in a Digital World Chapter 13 13Page 671 Figure 13-9
  • 14. Object-Oriented Programming Languages and Program Development Tools Visual Studio is Microsoft’s suite of program development tools Visual Basic is based on the BASIC programming language Visual C++ is based on C++ Visual C# combines the programming elements of C++ with an easier, rapid-development environment Discovering Computers 2010: Living in a Digital World Chapter 13 14Pages 671 - 673
  • 15. Object-Oriented Programming Languages and Program Development Tools A visual programming language is a language that uses a visual or graphical interface for creating all source code Borland’s Delphi is a powerful program development tool that is ideal for building large- scale enterprise and Web applications in a RAD environment Discovering Computers 2010: Living in a Digital World Chapter 13 15Page 673
  • 16. Other Programming Languages and Development Tools • A 4GL (fourth-generation language) is a nonprocedural language that enables users and programmers to access data in a database – One popular 4GL is SQL Discovering Computers 2010: Living in a Digital World Chapter 13 16Page 674 Figure 13-13
  • 17. Other Programming Languages and Development Tools • Classic programming languages include: Discovering Computers 2010: Living in a Digital World Chapter 13 17Page 675 Figure 13-14 Ada ALGOL APL BASIC Forth FORTRAN HyperTalk LISP Logo Modula-2 Pascal PILOT PL/1 Prolog RPG Smalltalk
  • 18. Other Programming Languages and Development Tools • An application generator is a program that creates source code or machine code from a specification of the required functionality – Often bundled as part of a DBMS Discovering Computers 2010: Living in a Digital World Chapter 13 18Page 676 Figure 13-15
  • 19. Summary of ITP Various programming languages used to create computer programs A variety of Web development and multimedia development tools Steps in the program development life cycle and tools used to make this process efficient Discovering Computers 2010: Living in a Digital World Chapter 13 19Page 705
  • 20. Objectives Overview DBMS Define the term, database, and explain how a database interacts with data and information Define the term, data integrity, and describe the qualities of valuable information Discuss the terms character, field, record, and file Describe file maintenance techniques and validation techniques Differentiate between a file processing approach and the database approach Discovering Computers 2010: Living in a Digital World Chapter 10 20See Page 513 for Detailed Objectives
  • 21. Objectives Overview Discuss the functions common to most database management systems Describe characteristics of relational, object- oriented, and multidimensional databases Explain how to access Web databases Identify database design guidelines and discuss the responsibilities of database analysts and administrators Discovering Computers 2010: Living in a Digital World Chapter 10 21See Page 513 for Detailed Objectives
  • 22. Databases, Data, and Information Database • Collection of data organized in a manner that allows access, retrieval, and use of that data Data • Collection of unprocessed items • Text • Numbers • Images • Audio • Video Information • Processed data • Documents • Audio • Images Video Discovering Computers 2010: Living in a Digital World Chapter 10 22Page 514
  • 23. Databases, Data, and Information • Database software, often called a database management system (DBMS), allows users to: Discovering Computers 2010: Living in a Digital World Chapter 10 23Page 515 Create a computerized database Add, modify, and delete data Sort and retrieve data Create forms and reports from the data
  • 24. Databases, Data, and Information • Data integrity identifies the quality of the data • Garbage in, garbage out (GIGO) points out the accuracy of a computer’s output depends on the accuracy of the input Discovering Computers 2010: Living in a Digital World Chapter 10 24Page 516 Click to view Web Link, click Chapter 10, Click Web Link from left navigation, then click Data Integrity below Chapter 10
  • 25. Databases, Data, and Information • Valuable information should have the following characteristics: Discovering Computers 2010: Living in a Digital World Chapter 10 25Pages 516 - 517 Accurate Verifiable Timely Organized Accessible Useful Cost- effective
  • 26. The Hierarchy of Data • Data is organized in layers – Files, records, fields, characters Discovering Computers 2010: Living in a Digital World Chapter 10 26Page 517 Figure 10-2
  • 27. The Hierarchy of Data • A character is one byte – Numbers, letters, space, punctuation marks, or other symbols • A field is a combination of one or more related characters – Field name – Field size – Data type Discovering Computers 2010: Living in a Digital World Chapter 10 27Page 518 Figure 10-3
  • 28. The Hierarchy of Data • Common data types include: Discovering Computers 2010: Living in a Digital World Chapter 10 28Page 518 Text Numeric AutoNumber Currency Date Memo Yes/No Hyperlink Object Attachment
  • 29. The Hierarchy of Data Discovering Computers 2010: Living in a Digital World Chapter 10 29Page 519 Figure 10-4 • A record is a group of related fields – A primary key uniquely identifies each record • A data file is a collection of related records
  • 30. Maintaining Data • File maintenance refers to the procedures that keep data current Discovering Computers 2010: Living in a Digital World Chapter 10 30Page 520 Adding records Modifying records Deleting records
  • 31. Maintaining Data • Validation compares data with a set of rules or values to find out if the data is correct Discovering Computers 2010: Living in a Digital World Chapter 10 31Pages 522 - 524 Alphabetic/Numeric Check Range check Consistency check Completeness check Check digit Other checks Click to view Web Link, click Chapter 10, Click Web Link from left navigation, then click Data Validation below Chapter 10
  • 32. File Processing Versus Databases Discovering Computers 2010: Living in a Digital World Chapter 10 32Pages 524 - 526 File processing system • Each department has its own set of files • Used for many years • Have data redundancy • Isolate data Database approach • Programs and users share data • Reduce data redundancy • Improve data integrity • Share data • Allows easier access • Reduces development time • Can be more vulnerable
  • 33. File Processing Versus Databases Discovering Computers 2010: Living in a Digital World Chapter 10 33Page 525 Figure 10-10
  • 34. Database Management Systems • A data dictionary contains data about each file in the database and each field in those files Discovering Computers 2010: Living in a Digital World Chapter 10 34Pages 527 – 528 Figure 10-12
  • 35. Database Management Systems • A DBMS provides several tools that allow users and programs to retrieve and maintain data in the database Discovering Computers 2010: Living in a Digital World Chapter 10 35Page 528 Query language Query by example Form Report generator
  • 36. Database Management Systems • A query language consists of simple, English-like statements that allow users to specify the data to display, print, or store • Query by example (QBE) provides a GUI to assist users with retrieving data Discovering Computers 2010: Living in a Digital World Chapter 10 36Page 528
  • 37. Database Management Systems A DBMS provides means to ensure that only authorized users access data at permitted times •Access privileges •Principle of least privilege Discovering Computers 2010: Living in a Digital World Chapter 10 37Page 531
  • 38. Database Management Systems • A DMBS provides a variety of techniques to restore the database to a usable form in case it is damaged or destroyed Discovering Computers 2010: Living in a Digital World Chapter 10 38Pages 531 - 532 Backup Log Recovery utility Continuous backup
  • 39. Relational, Object-Oriented, and Multidimensional Databases • A relational database stores data in tables that consist of rows and columns – Each row has a primary key – Each column has a unique name • A relationship is a link within the data Discovering Computers 2010: Living in a Digital World Chapter 10 39Page 533 Figure 10-20
  • 40. Relational, Object-Oriented, and Multidimensional Databases • Structured Query Language (SQL) is a query language that allows users to manage, update, and retrieve data Discovering Computers 2010: Living in a Digital World Chapter 10 40Page 534 Figure 10-21 Click to view Web Link, click Chapter 10, Click Web Link from left navigation, then click SQL below Chapter 10
  • 41. Relational, Object-Oriented, and Multidimensional Databases • An object-oriented database (OODB) stores data in objects • Examples of applications appropriate for an object-oriented database include: Discovering Computers 2010: Living in a Digital World Chapter 10 41Page 534 Multimedia database Groupware database Computer- aided design database Hypertext database
  • 42. Relational, Object-Oriented, and Multidimensional Databases • A multidimensional database can store data in more than two dimensions of data – Sometimes known as a hypercube – Can consolidate data much faster than a relational database • A data warehouse is a huge database that stores and manages the data required to analyze historical and current transactions Discovering Computers 2010: Living in a Digital World Chapter 10 42Pages 535 - 536 Click to view Web Link, click Chapter 10, Click Web Link from left navigation, then click Data Warehouses below Chapter 10
  • 43. Web Databases • Databases on the Web allow you to: Discovering Computers 2010: Living in a Digital World Chapter 10 43Page 536 Shop for products or services Buy or sell stocks Search for a job Make airline reservations Register for college classes Check semester grades
  • 44. Database Administration Database analysts and administrators are responsible for managing and coordinating all database activities Database Analyst (DA) Decides on proper field placement, defines data relationship, and identifies users’ access privileges Database Administrator (DBA) Creates and maintains the data dictionary, manages security, monitors performance, and checks backup and recovery procedures Discovering Computers 2010: Living in a Digital World Chapter 10 44Page 538 Click to view Web Link, click Chapter 10, Click Web Link from left navigation, then click Database Administrators below Chapter 10
  • 45. Summary How data and information are valuable assets to an organization Methods for maintaining high- quality data Assessing the quality of valuable information Advantages of organizing data in a database Various types of databases Roles of the database analysts and administrators Discovering Computers 2010: Living in a Digital World Chapter 10 45Page 539