计算机导论第二章讲稿

计算机导论第二章讲稿

ID:34149449

大小:513.83 KB

页数:51页

时间:2019-03-03

计算机导论第二章讲稿_第1页
计算机导论第二章讲稿_第2页
计算机导论第二章讲稿_第3页
计算机导论第二章讲稿_第4页
计算机导论第二章讲稿_第5页
资源描述:

《计算机导论第二章讲稿》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、FoundationsofComputerScienceSecondEditionBEHROUZFOROUZANFIROUZMOSHARRAFChapter2NumberSystems1OutlinesòIntroductionòPositionalNumberSystems–Base10,2,8,16.òNonpositionalNumberSystems–RomanNumerals2CSIM@PUObjectivesAfterstudyingthischapter,thestudentshouldunderstand:òThecon

2、ceptofnumbersystems.òNon-positionalandpositionalnumbersystems.òDecimal,Binary,HexadecimalandOctalsystem.òConvertanumberamongbinary,octal,hexadecimal,anddecimalsystems.òFindthenumberofdigitsneededineachsystemtorepresentaparticularvalue.3CSIM@PU1-1Introduction4TheDefinitio

3、nofNumberSystem•Anumbercanberepresentedusingdistinctsymbolsanddifferentlyindifferentsystems.•Forexample,•Thetwonumbers(2A)and(52)bothreferto168thesamequantity,(42),buttheir10representationsaredifferent•Twogroups•positionalandnon-positionalsystems5CSIM@PU1-2PositionNumber

4、Systems6OverviewòInapositionalnumbersystem,anumberrepresentedas:hasthevalueof:inwhichSisthesetofsymbols,bisthebase(orradix).TheBaseincludesBase10(Decimal),Base2(Binary),Base16(Hexadecimal),orBase8(octal)。7CSIM@PUThedecimalsystem(base10)òTheworddecimalisderivedfromtheLati

5、nrootdecem(ten).–baseb=10,and–tensymbols:S={0,1,2,3,4,5,6,7,8,9}òThesymbolsinthissystemareoftenreferredtoasdecimaldigitsorjustdigits.–Integerexamples–Realexamples8Base10–Integers(1)Figure2.1Placevaluesforanintegerinthedecimalsystem9Base10–Integers(2)òExample2.1showsthepl

6、acevaluesfortheinteger+224inthedecimalsystemòExample2.2showstheplacevaluesforthedecimalnumber−7508()Values10Base10–RealsòAreal–anumberwithafractionalpartòExample2.3showstheplacevaluesfortherealnumber+24.13.11Thebinarysystem(base2)òThewordbinaryisderivedfromtheLatinrootbi

7、ni(ortwobytwo).–baseb=2,and–twosymbols,S={0,1}òThesymbolsinthissystemareoftenreferredtoasbinarydigitsorbits(binarydigit).–Integerexamples–Realexamples12Base2–Integers(1)òWecanrepresentanIntegeras:Figure2.2Placevaluesforanintegerinthebinarysystem13Base2–Integers(2)òExampl

8、e2.4showsthatthenumber(11001)2inbinaryisthesameas25indecimal.Thesubscript2showsthatthebaseis2.Theequiva

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。