You are on page 1of 4

JA-IV. :l.

,2 R, l)~~
IVASING, GWYN£7H A-NN€
I
P.
B5J~ 1-8

[We.Ek 2.] Bes 11 l/ C.OMPUTE-/12 FUNOAM~N7,+L'5


,4NI> PRDGRA-MMI )JG
PRDSLEMS:
See ,J'
7
you can do this 1
Part I. Conwrt 91·wn. values b-r.,low h ofher ha~~ number &'rlon,; ·
'ipuify on -Hu $/GU a.f.l.tr ' ' u:,nwrt t7J : ,, #,-t. nam~ of -l:J,-t.
n um bt.r 9r5k h1 you IVC:111-f fo l-<Y1 v·uf . ,4 nd w r, :u_ yotH ..P,;,o I cm $/Wr
on -fi1'l c,pcu~ afi.-tr ·· CDnwrtul Valu-t : '' ~J,oUJ yof,lr s1/un'or1 on
iM. t:;pQce j)IT)t//'du/ Ii:,,,- tiich co,, VV'g,1bn ·

Giw.n nwmh-t r # -, 202Dg

Co,iv-ut; ai : D-ecirnc, / 11) Ccnv-e rtul {la/u.t. : 10'+ 010

Ocfo/ Number~ u,unt Numbt-P; -from f'r)Wf.r / EYf)o-,;u_,;, t U) -( If,' CA°t.M -t


ri9ht -It.ft

D 0 0 x 8'" '° D Ao;;. D

:i. 1 -< ")( g I '"


AI ;;. fl,
0 0X 82 0
-< = A?_ =-0
.3 )< g3:: /D~t./ A~ = 10;:;y
7DTA-L 104-DiD

t-,, : fkx.ade(imal-,, VJIJl/'t rfu:I 1/a/lA.,l 4101<-


Coh!Hft

2 0 2 0
DiD opo ODD

4 i 0
.
Contl'Ui b: 8il'ICHY2 C-onw.rk.d Va/LU.. : tooooo10000 2

2. 0 2 0

- ~o
010 ODO

000
010
010
000
DOD
{, itN. n 1' 2 : :2 0 ;;.i Ou.,

{,,or, w rl : Duiml4 I 10 u,11 wrkJ t,t,,lut : i ' 2 2,., 10

(µff,'u',(,,llt
H"t,,x.Qr)-tu'rnc. I Numbu, Coo,t,t AJu,.,Ju,r, Pt> w< , / f '>tf"n01 t
{nm r,·,ht

D 0')'-/(,°=-0 Ao= D
D
;;._ >< /"
I
= 32 A,= 32
1
0 2 Dy... I~ z = 0 Az = 0
i 3 ). )( 1, J ::: g 1CJ2 _A3 = 8'1'12

1otol 8, 22Lf 10

Conll'(.rt tr;, : B1',,ary 2 u,rwtriul 'la /1,U.. : IO OD ODO DI OODDO 2.

2 0 2 0
2_Q ID DODO DOI() OO0D
ID DODO ODID DODO
wnv-ut tr> _. Oc.t-a/ i' Lon /N,l"k.d (/aiiM. : 200403 .

I
2
0/010
16
: /ooap
12
r oo
Jo
10
: oEoo I ,

I~ / O/0 DOD ODD I DO ()00

A 2 D () q 0

.JI. Po-for,n ll,-t_ follbWln!J op-tra b 'o/1$ (111'(,i wn'{..,_ yoHr ,;oluniM 617 #Lt...
Sft¥U pY1J111.titd · Ybu ca,, (),,co&-l. whit.h cf fk rpw.11 11(1/wf Y""' waHf TD
l<)nV"tlr fr> p-trlbf'IYI -#Lt bf'tJ't'niJYI · ~how tk l,ru~I output ,i,, all th-t. l:,Q5,e f'/UJH./,,(r
sy<:.-1-llns .

opu0ttion # I : ~oz or - 2 o"2. o 10

Solulior1 :
Conwrt 202D10 to Oc.,m./'il : 37LjL/g
Ntm,btl" (il,fot,·u,-t, /u.ma,ntkr u,-t ff,''-"•'U\ t
2020 /g 2 5"2 6- 5 >< S = q Ao = i./
252 Is 31 () . S" X 8' = lf A, =- if
3l / R 3 o.'nSx lf-= 7 Az = 7
3/'6 0 o. 375 x%'c: 3 A:~,: 3
.So/N
- 374L/f{

2 o '2.Dir
- 37'-l!Jg
1- I 7 2l/ s l

-1724 8 b, C>e-cir>i~l, 0 : - qgo, 0


(J dtA I NIA W\ b-t+s Uunt Nwmh-u, furn Pvw-tr/~t ui·df,t,,:'{,,.#1 t
H'lrt - Jtlt

4 0 q )< go ., <./ Ao~~


2
7 2
' 2 7- &" = It

7 i- f{ 2 4qg
A,~ "
A1 = '-14 'i5
I 3 / )( 8 '3 :; 512 A~-:; 512
total q g--0 10

_ J7 2 l/ -& to Binary 2. : - 111 I OID IDO 2

7 2. '--I
- QQI Ill DID 100

- J7 2 g h> He,ca duinu;1/ ff# - ? DLf 1"

- I 7 2 L.f
- 001 fu Djo 100
3 D q

In dto'rnal: - 180,12 In 1,,·nrp,I: - ll l/ OtDIOO z


In octal : - I r 2 Lf 8 In h-exackcimal: n
- -.11) ' ' "
56/t,.-ff OYI:

u,nlN-rl 2.D 20," to 9it11:tYV.,


, " 10 DD DDD () I DOD DD 2..

2 0 2 0
DDID 0000 0010 0000
S olV'! IODOODOOID0000 2
+ IJIIII0OID/ 2

I0ODDO0DI000 DO 2.

t I/I lllOOIDl 2

I IOI 000000 0 01 Vl 2 I
I 0I 0 DO O DO 0 D I O I 2 to /)u;n, c,. I 10 : / O 24610

Bir1aty Wu"'1h-u-s Cow.vtt Nl,(~bu-$


frt,wt n 'o,kt

1 X 2°:;: I Ao I
I 0
D I ox 1
2 ,:: 0 4,-= 0
I 2 I)( 22. -=4 A2 = 4
0 :,c.. 2'3 :: 0 A,-= 0 ,
D 3
0 '-I oxz" --o A~-= 0
D r 0><2s- -;D Ar= O
0><2' ::o
0
0 l " O:,x:2 7 :;o
A,= 0
A1 = 0
0 3 oxzs- -=o A.,:- 0
0 q O:x2q =o Aq-: o
0 lo 0 l lb: 0 A,o =D
I II I :>c 2 '' :: 2 0 '-f 8 A,, ~zo4g
0 n. D,<. 2 ,z. = 0 A1z = 0

I 13 \ )( 2 ,~:; ~/Cf2 A ,1-:; 8192

1oioil ID 2t.J5 10

10/DDOD OD00/0/ 2 to Octa/ 1 : 2£.fODSg

/0 JOD DOD 00D I DI


2 4 0 D 5
I DID DOD O ODO IO/ 2 to l-hx.01,r:1J.dmAl11, : 2 8 0 5' 11,

ID fooo 0000 DIDI


2.. D 5
A AJSWi R FOR. # 2.
f rJ d fumq J = 102q5u, /;, binary : IO / 0000 0 00 0 l D f 2
In 0 tto.f : 24oo5s
In l,~xal:f.tt.11H.a/. 2a,-OS
0' ,,

You might also like