Академический Документы
Профессиональный Документы
Культура Документы
Course Plan
Basic Understanding
Lab Performance
Personal/Professional Growth
Term Project
Mids
Final
40%
30%
60%
30%
40%
Computers are
everywhere
In Business
In Publication Field
In Education Field
In Government Organizations
In Medical Field
In Science Field
In Entertainment Field
Business
A computer has high speed of calculation,
diligence, accuracy, reliability, or versatility
which made it an integrated part in all
business organizations.
Payroll calculations
Budgeting
Sales analysis
Financial forecasting
Managing employees database
Maintenance of stocks etc.
Banking
Today banking is almost totally dependent
on computer. Banks provide following
facilities:
Banks provide online accounting facility,
which includes current balances, deposits,
overdrafts, interest charges, shares, and
trustee records.
ATM machines are making it even easier
for customers to deal with banks
Education
Computers are being vastly used in
education:
Admission systems
Examination
Library
Research publications
Simulation softwares
Health Care
Computers have become important part in
hospitals, labs, and dispensaries
Diagnostic
Lab-diagnostic System
Patient Monitoring System
Pharma Information System
Surgery
Patient Information System
Engineering Design
One of major areas is CAD (Computer aided
design). That provides creation and
modification of images. Some fields are:
Structural Engineering -Requiresstressand
strainanalysisfordesignofShips,Buildings,cars,
Airplanesetc.
Industrial Engineering -Computersdealwith
design,implementationandimprovementofintegrated
systemsofpeople,materialsandequipment.
Architectural Engineering -Computershelpin
planningtowns,designingbuildings,determininga
rangeofbuildingsonasiteusingboth2Dand3D
drawings.
Military
Computers are largely used in armies
Missile Control
Military Communication
Military Operation and Planning
Smart Weapons
Communication
Some main areas in this category are:
E-mail
Chatting
Social Networking
Video-conferencing
Smart phones
Capabilities
The unique capabilities and characteristics
of a computer are:
Speed
Storage capacity
Accuracy
Reliability
Versatility
CPU
Input devices
Memor
y
Storage
devices
Output
devices
16
1.
2.
3.
4.
5.
6.
Mouse
Keyboard
Microphone
Scanner
Webcam
Monitor
Printer
Speaker/Headphone
Hard Disk
Flash Drive
CD-ROM
DVD-ROM
Display Adapter
Power
Software
Operating system
Gives services to
software:
Hardwar
e
Access
input/output
devices
Memory
allocations
26
Application Software
Lets you accomplish specific tasks based on your
needs.
Examples: MS Word, Excel, Access, MS Works
Examples:
MS Word
MS Excel
MS PowerPoint
Internet Explorer
Word Processing
Program that allows you to create, edit, and print
text documents
Report, flyer, memo
Spreadsheet
Numbered Rows and Lettered Columns
Intersection of a row and column is a cell
Grade book, financial info
Database
Lets you set up an electronic filing system
Enter text and numbers
Find, search, and print info in different ways
Address book, Card Catalog
1+1
C+
+/Java/VC/VB/.N
et/C#
Human
language
Prgrammin
g language
0100110100
11
compiler
Computer
language
Operating
System
32
What is a network?
Collection of computers and devices connected together
Communications
Communications
Device
Device
Enables
Enablesaa
connection
connection
between
between
computers
computers
Communications
Communications
Media
Media
Satellites
Cables
Telephone
lines
Cellular
radio
One type is
a modem
33
To
Toshare
share
Resources
Resources
Hardware
Hardware
devices
devices Software
Software
programs
programs
To
save
To
save
Data
Data
time
time
Information
and
Information
and
money
money
34
What is a server?
Manages the
resources on
a network
A client accesses
the resources
on the server
AAWeb
Website
siteisis
aacollection
collectionof
of
related
relatedWeb
Webpages
pages
AAWeb
Webpage
pagecontains
contains
text,
text,graphics,
graphics,sound,
sound,
video,
video,and
andlinks
linksto
to
other
otherWeb
Webpages
pages
You
Youcan
canshare
share
information
informationby
by
creating
creatingWeb
Webpages
pages
or
orposting
postingphotos
photoson
on
aaphoto
photocommunity
community
3
Step 1.
software program by
instruction in the disc,
then run the program
Step 3.
The program executes
Operating
OperatingSystem
System(OS)
(OS)
isisaaset
setof
ofprograms
programs
that
thatcoordinates
coordinatesall
all
activities
activitiesamong
among
computer
computerhardware
hardware
devices
devicesand
andallows
allows
users
usersto
torun
run
application
applicationsoftware
software
Utility
UtilityPrograms
Programsallow
allowthe
theuser
userto
to
perform
performmaintenance-type
maintenance-typetasks
tasks
usually
usuallyrelated
relatedto
tomanaging
managingaa
computer,
computer,its
itsdevices
devicesor
orits
itsprograms
programs
Suite
Popular software applications
bundled together as a single unit
Word
Processing
Spreadsheet
Database
Presentation
Graphics
What is a programmer?
Someone who develops application or system software
What
PC and compatibles
use the Windows
operating system
Apple Macintosh
uses the Macintosh
operating system
(Mac OS)
What
is a notebook
computer?
47
What
is a tablet PC?
48
What
Calendar
Appointment book
Address book
Calculator
Notepad
49
What
What
Home
Large Business
Small Office/
Home Office (SOHO)
Mobile
Power
Webaccess
Entertainment
Communications
Personalfinancemanagement
What
Productivity software
Specialty software
Web usage
What
is available for
a mobile user?
Hardware
Software
Productivity
Presentation
Personal
information
manager
Notebook
computers
Handheld computers
Web-enabled
cellular phones
Web access
Public kiosk
Telecommuting
Network
Productivity software
Scheduling
Engineers
Architects
Desktop publishers
Graphic artists
What
Education
Finance
Government
Healthcare
Science
Publishing
Travel
Industry
Step 1.
People
develop
procedures
for processing
data
Step 3.
Software processes
data and directs
hardware to store and
or output information
Step 2.
People use software to
enter data into
computer (hardware)
Database:
a very large, integrated
collection of data.
Models a real-world enterprise
Entities (e.g., teams, games)
Relationships
(e.g., student grade and marks)
More recently, also includes active
components , often called business logic.
(e.g., ranking system)
A Database Management System (DBMS) is a
software system designed to store, manage,
and facilitate access to databases.
=
Thought Experiment 1:
You and your project partner are editing the
same file.
You both save it at the same time.
Whose changes survive?
A) Yours B) Partners
C) Both D) Neither
E) ???
Thought Experiment 2:
Youre updating a file.
The power goes out.
Which of your changes survive?
Users
Conceptual schema
defines logical
structure
Physical schema
describes the files
and indexes used.
View 2
View 3
Conceptual Schema
Physical Schema
DB
Conceptual schema:
Students(sid: string, name: string,
login: string, age: integer, gpa:real)
Courses(cid: string, cname:string,
View 1 View 2 View 3
credits:integer)
Enrolled(sid:string, cid:string,
Conceptual Schema
grade:string)
External Schema (View):
Physical Schema
Course_info(cid:string,
enrollment:integer)
DB
These layers
must consider
concurrency
control and
recovery
Query Optimization
and Execution
Relational Operators
Files and Access Methods
Buffer Management
Disk Space Management
DB
Problem definition
Method (how to solve it)
Algorithm
Data structure
Verification for correctness
Analysis for efficiency
Most difficult
Requires interaction between programmer
and user
Specs include:
Input data
Type, accuracy, units, range, format, location, sequence
What Is an Algorithm?
A step by step procedure for solving a problem in
a finite amount of time.
Problem-Solving Phase
Analysis and Specification
General Solution (Algorithm)
Verify
Implementation Phase
Concrete Solution (Program)
Test
Maintenance Phase
Use
Maintain
DEBUG
REVISE
REVISE
DEBUG
Sh
t?
u
c
ort
DEBUG
REVISE
CODE
GOAL
TEST
THINKING
CODE
Is NOT portable
ARE portable
Examples:
FORTRAN
JAVA
C++
myprog.cpp
myprog.obj
myprog.exe
SOURCE
OBJECT
EXECUTABLE
written
written in
in
C++
C++
written
written in
in
machine
machine
language
language
via compiler
written
written in
in
machine
machine
language
language
via linker
other
other code
code
from
from libraries,
libraries,
etc.
etc.
Statement
Statement
Statement
...
True Statement1
Condition
Stateme
False Statement2
nt
...
False
Condition
Tru
e
Statemen
t
...
SUBPROGRAM1
...
SUBPROGRAM1
a meaningful collection
of SEQUENCE,
SELECTION, LOOP,
SUBPROGRAM
Input
Output
Definiteness
Finiteness
Effectiveness
Add 1 to x
compute largest prime no. < 100
compute square root of x to 4 decimal
places
Bad examples:
divide 10 by x
compute largest prime
compute square root of x
devise
express
validate
analyze algorithms
Expressing an algorithm:
Validation of algorithm:
Analysis
of an algorithm:
Main Task
subtask1
subtask2
subtask3
Sequential (sequence)
entry
T1
T2
exit
Selection (test)
task1
Cond
Repetition
While
While (cond) do
endwhile
Do while /Repeat
Do
while (cond)
Ordered sequence
T1
T1, T2, T3
T2
T3
T1
T2
T3
5 times
resulting sequence is
T1, T2, T2,...until C is true,T3
T1
T2
C
T3
S1
C
S2
S3
S3
TAX
0
0+0.10*(INC-100000)
10000+0.20*(INC-200000)
30000+0.30*(INC-300000)
Here is an algorithm:
Step 1: Input INC;
Step 2: Compute tax, T;
Step 3: Output T
Input K;
Repeat these operations 5 times:
[Input (x, y);
If K = x then output (x, y)
]
Input n;
If n > 0 then
[Input K;
Repeat these operations n times:
[Input (x, y);
If K = x then output (x, y)
]
]
false
S3
stop
Problem 1:
Find the roots of a quadratic equation of the
form
a*x2 + b*x + c = 0
Formula:
fact = n * n-1 * n-2 * * 2
*1
Algorithm:
input n;
i = 0; initialization
fact = 1;
looping
while (i < n)
{
i = i + 1;
fact = i * fact;
}
output fact
Execution
Let n = 4;
i = 0; fact = 1;
while loop
0 < 4; i = i +1=1; fact = 1 *
1;
1 < 4; i = i +1=2; fact = 1 *
2;
2 < 4; i = i +1=3; fact = 2 *
3;
3 < 4; i = i +1=4; fact = 6 *
4
4 < 4 is false so
exit the while loop;
output fact = 24