Tags:
create new tag
view all tags

Solutions to exercise session 1

Solutions to the calculations:

101 001 110 = 0516 (octal) = 334 (decimal) = 0x14e (hexadecimal)

07 + 05 = 014 (all numbers in octal)

0345 (octal) = 229 (decimal)

0x83ab (hexadecimal) = 1000 0011 1010 1011 (binary)

0x5 + 0x7 = 0xc

The Linux calculator

You should be able to calculate these exercises by hand! Once you know how to do this, have a look at the tools Linux offers you. It has a calculator which can be switched from basic mode

calculatorBasic.png

to programming mode in which case you can use it to perform all the calculations asked for.

calculatorProg.png

-- Uli Raich - 2018-09-17

Comments

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng calculatorBasic.png r1 manage 18.0 K 2018-09-17 - 18:28 UliRaich  
PNGpng calculatorProg.png r1 manage 41.9 K 2018-09-17 - 18:28 UliRaich  
Topic revision: r1 - 2018-09-17 - UliRaich
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback