Chapter 1 Fl14
Transcript of Chapter 1 Fl14
-
7/24/2019 Chapter 1 Fl14
1/29
Copyright 2012 Pearson Education, Inc.
Chapter 1
INTRODCTION
TO CO!PTIN"
#ND EN"INEERIN"
PRO$%E! &O%'IN"
-
7/24/2019 Chapter 1 Fl14
2/29
2Copyright 2012 Pearson Education, Inc.
Out(ine
1. O)*ecti+es
2. Coputing &ystes
-. #n Engineering Pro)(e&o(+ing
!ethodo(ogy
-
7/24/2019 Chapter 1 Fl14
3/29
-Copyright 2012 Pearson Education, Inc.
O)*ecti+es
/ Introduce coputing and engineering
pro)(e so(+ing, inc(uding
# discussion o hard3are and sot3are
# i+estep pro)(eso(+ing ethodo(ogy4
-
7/24/2019 Chapter 1 Fl14
4/29
5
Coputing &ystes
/ # coputing syste is a cop(ete 3or6ing
syste that inc(udes
7ard3are8h93:
&ot3are 8s93:
Copyright 2012 Pearson Education, Inc.
-
7/24/2019 Chapter 1 Fl14
5/29
;
7ard3are
7ard3are8h93: 8i.e. they can actua((y )e
touched:
/ Physica( parts o the coputing syste
that ha+e ass/ Coputer
/ Disp(ay
/ !ouse/ Printer
/ on +on Neuann coputing ode(
1. Input de+ice8s:
2. Output de+ice8s:
-. !eory nit
5. CP 8Centra( Processing
Unit: consisting o
/ Contro( nit
/ #% 8Arithetic Logic Unit:
Copyright 2012 Pearson Education, Inc.
C
P
-
7/24/2019 Chapter 1 Fl14
7/29?
7ard3are
>on +on Neuann coputing ode(
1. Input de+ice8s:
2. Output de+ice8s:
Copyright 2012 Pearson Education, Inc.
-
7/24/2019 Chapter 1 Fl14
8/29@
7ard3are
>on +on Neuann coputing ode(
-. !eory nit
&tores data
5. CP8Centra( Processing nit:
Contro(s the transer and the process o the
data
/ Contro( nit
/ #% 8#rithetic %ogic nit:
Copyright 2012 Pearson Education, Inc.
-
7/24/2019 Chapter 1 Fl14
9/29A
&ot3are
Copyright 2012 Pearson Education, Inc.
/ Coputer sot3are reers to prograsthat reside and eBecute electronically
on the hard3are.
Operating systes e.g. indo3s, niB, %inuB,.. Pro+ide the 7CI 8Huan Coputer Interace:
#pp(ication progras Pro+ide pro)(e so(utions e.g. !.&. ord, EBce(,
!at(a)
-
7/24/2019 Chapter 1 Fl14
10/2910
Coputer %anguages
/ Coputer %anguages three (e+e(s
!achine %anguage 3ritten using the digits 0s and 1s
8)inary:.
#sse)(y %anguage 3ritten in sy)o(ic stateents
7igh%e+e( %anguage C, >a+a, $asic,< 8Eng(ish
(i6e coands.:
Copyright 2012 Pearson Education, Inc.
-
7/24/2019 Chapter 1 Fl14
11/2911
Coputer %anguages
Copyright 2012 Pearson Education, Inc.
-
7/24/2019 Chapter 1 Fl14
12/29
12
&ot3are Interace to
Coputer 7ard3are
Copyright 2012 Pearson Education, Inc.
-
7/24/2019 Chapter 1 Fl14
13/291-
$ui(ding a Progra
/ Coputers on(y understand achine
(anguage. High-level languages (i6e C
ust )e trans(ated to achine (anguage
or eBecution.
Copyright 2012 Pearson Education, Inc.
-
7/24/2019 Chapter 1 Fl14
14/2915
$ui(ding a Progra
Copyright 2012 Pearson Education, Inc.
/ progra 3ritten in a high(e+e( (anguage such as C ust )e trans(ated into achine (anguage
/ Copi(er Con+erts sourceprogra to objectprogra
/ %in6er Con+erts objectprogra to executableprogra
-
7/24/2019 Chapter 1 Fl14
15/291;
ey Ters
Copyright 2012 Pearson Education, Inc.
/ &ource Progra
printa)(eFReada)(e Progra i(e
/ O)*ect Progra
nonprinta)(e achine reada)(e i(e
/ EBecuta)(e Progra
nonprinta)(e eBecuta)(e code
-
7/24/2019 Chapter 1 Fl14
16/291=
Errors in Progras
/ &yntaBFParse Errors
!ista6es 3ith the (anguage.
#(3ays reported )y the copi(er
/ %in6ing Errors !issing pieces pre+ent the ina( asse)(y o an
eBecuta)(e progra.
/ Runtie Errors Occur 3hen progra is eBecuting.
!ay or ay not )e reported.
Copyright 2012 Pearson Education, Inc.
-
7/24/2019 Chapter 1 Fl14
17/291?
%ogic Errors
/ Can )e diicu(t to ind.
/ De)ugging can )e tie consuing.
$etter too(s or ind )ugs
/ It is iportant to careu((y chec6 the output
o your progras or errors.
E+en progras that appear to 3or6 correct(yay ha+e )ugsG
Copyright 2012 Pearson Education, Inc.
-
7/24/2019 Chapter 1 Fl14
18/291@
De)ugging
/ Process o e(iinating (ogic errors
8i.e. )ugs: ro progras.
/ serriend(y prograing en+ironents
such as !icrosot 'isua( C integrate the
copi(er 3ith teBt processors and code editors
specia( too(s to he(p ind )ugs in progras 8de)ugger:
testing too(s
and uch ore