Question

In: Computer Science

Please provide computation for each conversion and Don't use large/big values. Thank you! Give a value...

Please provide computation for each conversion and Don't use large/big values. Thank you!

Give a value for each number system (decimal, binary, octal and hexa-decimal) then convert each value to each number system (example: given value is decimal, convert the given value to binary, octal and hexa-decimal and vice-versa).

Solutions

Expert Solution

Conversion methodologies (along with the examples) below:

Decimal to Binary

Divide the given decimal number by 2. Keep the remainder for the binary digit. Calculate the integer quotient for the next iteration. Keep doing this until the quotient is 0.

Example:

Converting 500 (in decimal) to binary:

The left column represents the number that is used as a divisor. The red digits are the remainders except the last one which is the quotient.

The final binary number is to be read from downwards (as per the arrow represented above).

500 -> 111110100

Binary to decimal

Converting the above number back to decimal:

Row A - this is the binary number that needs to be converted

Row B - this needs to be set starting with the right most bit. set this at 2^0 and the moving to the left increasing the power by 1.

Finally to get to the decimal number by multiply A by B:

2^8 * 1 + 2^7 * 1 + 2^6 * 1 + 2^5 * 1 + 2^4 * 1 + 2^3 * 0 + 2^2 * 1 + 2^1 * 0 + 2^0 * 0 = 500

Decimal to Octal

Divide the given decimal number by 8. Keep the remainder for the octal digit. Calculate the integer quotient for the next iteration. Keep doing this until the quotient is 0.

Example:

Converting 500 (in decimal) to octal:

The left column represents the number that is used as a divisor. The red digits are the remainders except the last one which is the quotient.

The final octal number is to be read from downwards (as per the arrow represented above).

500 -> 764

Octal to decimal

Converting the above number back to decimal:

Row A - this is the octal number that needs to be converted

Row B - this needs to be set starting with the right most bit. set this at 8^0 and the moving to the left increasing the power by 1.

Finally to get to the decimal number by multiply A by B:

8^2 * 7 + 8^1 * 6 + 8^0 * 4 = 500

Decimal to Hexa-decimal

Divide the given decimal number by 16. Keep the remainder for the hexa-decimal digit. Calculate the integer quotient for the next iteration. Keep doing this until the quotient is 0.

Example:

Converting 500 (in decimal) to hexa-decimal:

The left column represents the number that is used as a divisor. The red digits are the remainders except the last one which is the quotient.

The final hexa-decimal number is to be read from downwards (as per the arrow represented above).

500 -> 1 15 4

However, for hexa-decimal, the representation is as below:

As a result, the above digit 15 will be represented as F.

Final hexa-decimal value - 1F4

Hexa-decimal to decimal

Converting the above number back to decimal:

Row A - this is the hexa-decimal number that needs to be converted

Row B - this needs to be set starting with the right most bit. set this at 16^0 and the moving to the left increasing the power by 1.

Finally to get to the decimal number by multiply A by B:

16^2 * 1 + 16^1 * 15 (value of F i.e. 15) + 16^0 * 4 = 500

Let me know if anything is not clear.


Related Solutions

Please Use your keyboard (Don't use handwriting) Thank you .. Write a report for:- Determine the...
Please Use your keyboard (Don't use handwriting) Thank you .. Write a report for:- Determine the relationship between those factors and how these factors can affect the adoption of e-HRM in the Palestinian companies.
Please Use your keyboard (Don't use handwriting) Thank you.. Courses Name: Introduction to Biostatistics Please answer...
Please Use your keyboard (Don't use handwriting) Thank you.. Courses Name: Introduction to Biostatistics Please answer the following questions: I need new and unique answers, please. (Use your own words, don't copy and paste) i need more than 500 words pleasssse Q1. Discuss the tools to measure central tendency. Q2. a) Discuss parametric and nonparametric test used for hypothesis testing. b) In a cross sectional study on coronary heart disease (CHD), the smoking and CHD status is summarized below. Use...
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please. (Use your own words, don't copy and paste) IT243 Course name: System Analysis and Design ***********Please i need more details and more Explain********** Q1: What are the roles of a project sponsor and the approval committee during the different SDLC phases? Q2: As the project sponsor, you suggested that your company that runs multiple local supermarkets should provide an online shopping service to increase...
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please. (Use your own words, don't copy and paste) IT243 Course name: System Analysis and Design ***********Please i need more details and more Explain********** Q2: As the project sponsor, you suggested that your company that runs multiple local supermarkets should provide an online shopping service to increase sales during COVID-19 pandemic. Write a system request to propose this project. System request Project Sponsor Business Need...
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please. (Use your own words, don't copy and paste) HCI 314 Write a page and a half (400-600 words) in an essay style answer to respond to the following question: Disruptive innovation is a driver for change in public health informatics. As a Health Informatics professional which innovation do you think has the greatest impact during COVID-19 pandemic and why? _____ please re -write my...
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please. (Use your own words, don't copy and paste) IT243 Course name: System Analysis and Design Q2: As the project sponsor, you suggested that your company that runs multiple local supermarkets should provide an online shopping service to increase sales during COVID-19 pandemic. Write a system request to propose this project. System request Project Sponsor Business Need Business Requirements Business Value Special Issues or Constraints...
Please Use your keyboard (Don't use handwriting) Thank you.. Courses Name: Ethics and Regulations in Heal...
Please Use your keyboard (Don't use handwriting) Thank you.. Courses Name: Ethics and Regulations in Heal ***Please complete my answer to be 500 words .. I need new and unique answers, please. (Use your own words, don't copy and paste) Question: 1: In certain cases it's legally and ethically appropriate for health professionals to proceed with a treatment without consent or proceed with a treatment that is against the patient decision, give your opinion in detail and examples. Question: 2:...
Please Use your keyboard (Don't use handwriting) Thank you.. Courses Name: Introduction to Anatomy and Physiology...
Please Use your keyboard (Don't use handwriting) Thank you.. Courses Name: Introduction to Anatomy and Physiology BIOL102 yeeees .. For HUMAN CIRCULATORY SYSTEM please re-write my answer by (Use your own words, don't copy and paste) Q) Choose any system of the human body and prepare a response to the following questions in 1-2 pages: Introduction(Explain the system with the components) Body(Explain how the system relates to achieve homeostasis in human body) Conclusion( Choose any disease common in KSA and...
Please Use your keyboard (Don't use handwriting) Thank you.. Courses Name: Introduction to Biostatistics PHC 121...
Please Use your keyboard (Don't use handwriting) Thank you.. Courses Name: Introduction to Biostatistics PHC 121 Please answer the following questions: ***Please i need more than 500 words .. I need new and unique answers, please. (Use your own words, don't copy and paste) Q1. Discuss the tools to measure central tendency? Q2. a) Discuss parametric and nonparametric test used for hypothesis testing.     b) In a cross sectional study on coronary heart disease (CHD), the smoking and CHD status...
Please Use your keyboard (Don't use handwriting) Thank you.. Courses Name: Introduction to Biostatistics PHC 121...
Please Use your keyboard (Don't use handwriting) Thank you.. Courses Name: Introduction to Biostatistics PHC 121 Please answer the following questions: ***Please i need 500 words .. I need new and unique answers, please. (Use your own words, don't copy and paste) Q1. Discuss the tools to measure central tendency? Q2. a) Discuss parametric and nonparametric test used for    hypothesis testing.     b) In a cross sectional study on coronary heart disease (CHD), the smoking and CHD status is summarized...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT