0% found this document useful (0 votes)
15 views3 pages

Document (1) ASSIGNMENT FOR THIS WEEK

The document explains the process of converting the decimal number 281 into binary, octal, and hexadecimal representations, providing step-by-step calculations for each. It emphasizes the importance of proficiency in different number systems for technical jobs, particularly in programming, data representation, and communication. Additionally, it discusses the necessity of using various coding representations like ASCII and Unicode for compatibility and data accuracy, recommending Unicode for its extensive character set and flexibility.

Uploaded by

hhzw5qq8cw
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views3 pages

Document (1) ASSIGNMENT FOR THIS WEEK

The document explains the process of converting the decimal number 281 into binary, octal, and hexadecimal representations, providing step-by-step calculations for each. It emphasizes the importance of proficiency in different number systems for technical jobs, particularly in programming, data representation, and communication. Additionally, it discusses the necessity of using various coding representations like ASCII and Unicode for compatibility and data accuracy, recommending Unicode for its extensive character set and flexibility.

Uploaded by

hhzw5qq8cw
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

Explain the process you would follow to convert the given


decimal numbers to binary, octal, and hexadecimal
representations. Take the first 3 digits of your birth date as an
example. (For example, if your birthdate is 28-11-1982 then
take 281 as number for the conversions)

Birth Date: 281


Here's the step-by-step process to convert it to binary, octal, and hexadecimal:

Binary Conversion: since binary means two therefore;


1. We have to divide the number by 2 and write the remainder.
2. Then divide the quotient by 2 until it reaches 0.
3.Then write remainders from downwards to upwards.
Solution
281 ÷ 2 = 140 remainder 1
140 ÷ 2 = 70 remainder 0
70 ÷ 2 = 35 remainder 0
35 ÷ 2 = 17 remainder 1
17 ÷ 2 = 8 remainder 1
8 ÷ 2 = 4 remainder 0
4 ÷ 2 = 2 remainder 0
2 ÷ 2 = 1 remainder 0
1 ÷ 2 = 0 remainder 1
Binary representation: 100011001

Octal Conversion: since octal is eight therefore;


1. We have to divide the number by 8 and write the remainder.
2. Then divide the quotient by 8 until we get 0.
3. Then write the remainders from downwards to upwards.
Solution
281 ÷ 8 = 35 remainder 1
35 ÷ 8 = 4 remainder 3
4 ÷ 8 = 0 remainder 4
Octal representation: 431

Hexadecimal Conversion: using hexadecimal conversion;


1. Then we divide the number by 16 and write the remainder.
2. Continue dividing the quotient by 16 until it reaches 0.
3. Write the remainders in reverse order.
Solution
281 ÷ 16 = 17 remainder 9
17 ÷ 16 = 1 remainder 1
1 ÷ 16 = 0 remainder 1
Hexadecimal representation: 119

So, the representations of the number 281 are:


- Binary: 100011001
- Octal: 431
- Hexadecimal: 119
Reference: “Number System by Charles Petzold” (2000)
2. Why is it important to be proficient in converting between
different number systems in a technical industry job?

Being skillful in changing in the middle of dissimilar number systems is


essential in technical industry jobs for several reasons:

1. Programming and Coding


2. Data Representation
3. Communication

3. In this scenario, why might it be necessary to use different


coding representations like ASCII, Unicode, or BCD for different
aspects of the project? How would you choose which
representation to use?

For instance, using different coding representations like ASCII, Unicode,


or BCD might be necessary for several reasons, device compatibility,
data storage and so on.
To choose the appropriate representation, I would consider data type and
format.

4 Provide an example of a situation where choosing the right coding


representation could be crucial for the success of a project.

Here's an example: Advancing a mobile payment app for a world e-


commerce company, assisting users in many nations with so many
languages and currencies.

Scenario: The app needs to transfer monetary data, including currency


symbols and amounts, between the user's device and the company's
servers.

Incorrect Choice: Using only ASCII coding representation, which:


- Doesn't support non-English characters and currency symbols (e.g., €, £,
¥)

Consequences
- Incorrect displays of currency and financial data may be occurre in non-
English speaking countries.

Correct Choice: Using Unicode (UTF-8) coding representation,


which:
- Assists a wide range of languages and characters.

Importance
- It helps us to have reliable transmission of economic data.

5. Compare and contrast the character set size, compatibility,


and usage of ASCII, Unicode, Gray code, BCD, and EBCDIC in
the context of this project. Which coding representation
would you recommend for this particular task and why?
Here's a contrast of the character set size, compatibility, and usage of
each coding representation:

ASCII:

 Character set size: 128 characters.


 Compatibility: widely assisted.
 Usage: Early computing.

Gray Code

 Character set size: not applicable.


 Compatibility: Limited.
 Usage: Error correction.

Unicode (UTF-8):

 Character set size: Over 143,000 characters.


 Compatibility: Widely Assisted.
 Usage: modern computing.

BCD (Binary-Coded Decimal):

 Character set size: 10 decimal digits.


 Compatibility: Limited.
 Usage: Legacy applications.

EBCDIC (Extended Binary-Coded Decimal Interchange Code):

 Character set size: 256 characters.


 Compatibility: Limited.
 Usage: Legacy IBM mainframe.

I would recommend Unicode (UTF-8) for this project due to its;

High compatibility and Flexibility.

You might also like