The Cyber-Spy.Com Usenet Archive Feeds DirectlyFrom The Open And Publicly Available NewsgroupSci.Electronics.Design

This Group And Thousands Of Others Are AvailableOn Most IS NNTP News Servers On Port 119.

Cyber-Spy.Com Is NOT Responsible For Any Topic,Opinions Or Content Posted To This Or Any OtherNewsgroup. This Web Archive Of The Newsgroup AndPosts Are For Informational Purposes Only.

Message-ID: <3D84920E.8D8FA184@nospam.com>
From: Fred Bloggs
X-Mailer: Mozilla 4.7 [en]C-CCK-MCD EBM-Compaq1 (Win95; U)
X-Accept-Language: en
Newsgroups: sci.electronics.design
Subject: Re: bits question
References:
Date: Sun, 15 Sep 2002 13:58:16 GMT
NNTP-Posting-Host: 63.188.40.26
NNTP-Posting-Date: Sun, 15 Sep 2002 06:58:16 PDT
Organization: EarthLink Inc. -- http://www.EarthLink.net
John wrote:
>
> hi
> can you please answer this question:
>
> a computer represents information in groups of 48 bits, how many different
> integeres can be represented in
>
> a) binary
> b) BCD
> C)8bit ASCII
>
> all using 48 bits?
The number is always S^(48/B) where B is the number of bits used per
symbol in the integer representation under consideration, and S is the
number of symbols available in the representation. So for example in BCD
you have ten symbols, 0...9, and 4 bits per symbol making
10^(48/4)=10^12 possible integers. In 8-bit ASCII, you have ten symbols
for decimal representation again, and B=8 bits per symbol for a total of
10^6 decimal integer representations; you have 16 symbols for hex
integers and B=8 again for 16^6 hexadecimal integer representations; and
similarly, you 8^6 octal integers and 2^6 binary ASCII integer
representations. In straight binary, you have S=2 and B=1 making 2^48
integer representations.