CS 1111-01 Unit 2
CS 1111-01 Unit 2
When converting decimal numbers to binary, octal, and hexadecimal, there is a consistent
process that involves dividing the decimal number by the target base and recording the
remainders. Let’s assume that the first three digits of my birthdate are 281.
Decimal to Binary: To convert 281 to binary, divide the number by 2 and record the
remainder:
This conversion process is vital for software development tasks, especially when dealing with
lower-level systems like hardware or embedded devices that communicate in binary or
hexadecimal formats.
The conversion of number systems is essential in the technical profession for a number of
reasons. First, devices or systems in general have different formats such as binary which is
for machine operating level, Hexadecimal which is for memory addressing and octal which is
for Unix Folders permission. Without interrogating the conversion aspect of these different
number structures, it would prove difficult in reading the data properly or performing the low
level duties such as hardware interaction or software system understanding.
Take, for example, the case of computer networking people, who must often encode data in
the binary format for transmission. In the same manner, when developing software, the
operations of assigning and removing memories are done mostly using the hexadecimal
system. In these types of situations, proficiency in number systems conversion allows
professionals to accurately implement and test such systems, hence avoiding unnecessary
mistakes that would have been in total wastage of resources and the efficacy of resources
management enhanced.
Project of this nature demands the use of appropriate coding representation because different
system’s and devices may call for different coding format. ASCII code is a standard 7 bit
code for the representation of alphanumeric text and symbols. It works well with older
machine systems but contains few characters. Whereas a lot of people will have encountered
the unicode standard, it is an extended code which can store characters of various languages
making it very relevant in internationalization projects or projects that have a lot of users.
Various BCD systems enable and support 100 pure tests of BCD internally where it codes
decimal digits, driven by binary numbers. This functionality of BCD’s way of working is also
advantageous because it is used in systems whereby accuracy matters like in the financial
systems because it minimizes the unavoidable inaccuracies associated with binary floating
points.
It is likely that where such encoding is implemented in the project, ASCII will be used for
simple text encoding in obsolete systems whereas Unicode will be required in any application
having content for all manifestations. Precision is of critical concern due to the nature of the
systems, one of which is a BCD that was utilized for high accuracy data interchange between
the systems that were working on billing.
Let us assume one scenario where a company is developing a worldwide payment system. It
is very important to utilize Unicode, as names and addresses are stored in different languages
and users from other countries can write and see the information they entered. However,
while representing amounts related to financial transactions, encoding in BCD would be
appropriate as this helps in maintaining accuracy of digits; this is very critical especially
where huge figures are involved such as when counting money and should especially avoid
rounding up due to its risk of generating errors on the financial details.
On the other hand, if Number one represented things in ASCII, problems would arise because
most other languages do not consist of characters in English hence recalling normal
characters would cause damage or loss of information when working with people all over the
globe. This example establishes the importance of using stating the specific techniques used
in the representation of the data based on the number of issues or requirements of the
particular project.
ASCII: This is a 7 bit encoding that accommodates 128 characters best and it is applicable in
text processing where little is required in terms of language or symbol representation .
Unicode: Has 140000 over characters and coming from various languages and scripts. Thus
very fortified and one should recommend for use where businesses have usage for
international expansion and other interactions such applications are required.
Gray Code is a heuristic which most of the time serves the purpose of eradicating error in the
transmission of information and in some hardware set ups. It lessens the risk of information
loss when changes occur which is good when converting an image from analog to digital.
BCD. This technique is good for easier methods of showing numbers without making
blunders of converting them to binary especially in methods where numbers are core such as
finance.
EBCDIC. This is an older encoding scheme owned mainly by IBM computers. EBCDIC is
being less used than earlier because of the advent of ASCII and Unicode expansion with
regards to the number of characters.
Considering the problem of the project within the given conditions, it can be concluded that
Unicode is the most optimal in terms of text structure due to its universality and range of
supporting characters in all regions. On the other hand, during information interchange, the
BCD format would be critical in encoding information in digits, as such would be significant
in industries such as finance or technology where the information contained is sensitive and
important.
Conclusion
In this project, the ability to equate and express the values in different number systems and
select the appropriate coding representation is key in enhancing system to system and device
to device interaction. The practical aspects of each of the encoding systems help shaped
development by allowing for the right encoding to be chosen which directly bears on the
success of the project. There is therefore no contention as to the idea of using Unicode for
text and BCD for numeric data as they are both acceptable.