Essays

1665 words - 7 pages

Binary Decimal Octal and Hexadecimal number systems

A number can be represented with different base values. We are familiar with the numbers in the base 10 (known as decimal numbers), with digits taking values 0,1,2,…,8,9. A computer uses a Binary number system which has a base 2 and digits can have only TWO values: 0 and 1. A decimal number with a few digits can be expressed in binary form using a large number of digits. Thus the number 65 can be expressed in binary form as 1000001. The binary form can be expressed more compactly by grouping 3 binary digits together to form an octal number. An octal number with base 8 makes use of the EIGHT digits 0,1,2,3,4,5,6 and 7. A more compact ...view middle of the document...

Then we print the remainders in reverse order. Example: convert (68)10 to binary 68/2 = 34 remainder is 0 34/ 2 = 17 remainder is 0 17 / 2 = 8 remainder is 1 8 / 2 = 4 remainder is 0 4 / 2 = 2 remainder is 0 2 / 2 = 1 remainder is 0 1 / 2 = 0 remainder is 1 We stop here as the number has been reduced to zero and collect the remainders in reverse order. Answer = 1 0 0 0 1 0 0 Note: the answer is read from bottom (MSB, most significant bit) to top (LSB least significant bit) as (1000100)2 . You should be able to write a recursive function to convert a binary integer into its decimal equivalent.

Conversion of binary fraction to decimal fraction
In a binary fraction, the position of each digit(bit) indicates its relative weight as was the case with the integer part, except the weights to in the reverse direction. Thus after the decimal point, the first digit (bit) has a weight of ½ , the next one has a weight of ¼ , followed by 1/8 and so on.

20

.

2-1 . 1

2-2 0

2-3 1

2-4 1

… 0

.... 0

0

The decimal equivalent of this binary number 0.1011 can be worked out by considering the weight of each bit. Thus in this case it turns out to be (1/2) x 1 + (1/4) x 0 + (1/8) x 1 + (1/16) x 1.

Conversion of decimal fraction to binary fraction
To convert a decimal fraction to its binary fraction, multiplication by 2 is carried out repetitively and the integer part of the result is saved and placed after the decimal point. The fractional part is taken and multiplied by 2. The process can be stopped any time after the desired accuracy has been achieved. Example: convert ( 0.68)10 to binary fraction. 0.68 * 2 = 1.36 integer part is 1 Take the fractional part and continue the process 0.36 * 2 = 0.72 integer part is 0 0.72 * 2 = 1.44 integer part is 1 0.44 * 2 = 0.88 integer part is 0 The digits are placed in the order in which they are generated, and not in the reverse order. Let us say we need the accuracy up to 4 decimal places. Here is the result. Answer = 0. 1 0 1 0….. Example: convert ( 70.68)10 to binary equivalent. First convert 70 into its binary form which is 1000110. Then convert 0.68 into binary form upto 4 decimal places to get 0.1010. Now put the two parts together. Answer = 1 0 0 0 1 1 0 . 1 0 1 0….

Octal Number System
•Base or radix 8 number system. •1 octal digit is equivalent to 3 bits. •Octal numbers are 0 to7. (see the chart down below) •Numbers are expressed as powers of 8. See this table

8n-1

8n-2

…… …… 83

82 6

81 3

80 2

Conversion of octal to decimal ( base 8 to base 10)
Example: convert (632)8 to decimal = (6 x 82) + (3 x 81) + (2 x 80) = (6 x 64) + (3 x 8) + (2 x 1) = 384 + 24 + 2 = (410)10

Conversion of decimal to octal ( base 10 to base 8)
Example: convert (177)10 to octal equivalent 177 / 8 = 22 remainder is 1 22 / 8 = 2 remainder is 6 2 / 8 = 0 remainder is 2 Answer = 2 6 1 Note: the answer is read from bottom to top as (261)8, the same as with the binary case.

...

Other assignments on Essays

Religion Veil - Uk Essays

397 words - 2 pages Muslim scholars argue that both male and female faithful ought to maintain modest dress. This kind of dressing entails covering the area between the navel and the knee, as well as wearing of silk by men. On the other hand, female dressing has caused controversy for a long time with some believing that the hands and face must ordinarily appear during the day, and the exposure of the full face is not required. In Quran versus, Muhammad instructs

Essays For Stipend

890 words - 4 pages Essay #1 ( One objective of the state stipend program is to recruit students who know and understand the underserved communities served by the public mental health system. Explain how you meet this objective) I understand the struggle underserve communities, such as minorities face because I am part of that population. I grew up in a poor neighborhood were resources were limited and we struggle to get access to government health agencies. There

Essays Of College Assurance Plan

1626 words - 7 pages Table of Contents A. OJT DOCUMENTATION I. Introduction i. Importance of the Plant Practice ii. Objectives iii. Place and Duration of the Plant Practice II. Nature of the Company i. History III. Plant Details i. Plant Location and Description ii. Mode of Operation iii. Plant lay-out Map IV. Processing Operation/Nature of Activities i. Equipment used in the assigned area V

Exam 3 Essays - Mgt 314

664 words - 3 pages Management 314 Exam 3: Essay Question Due: 11 December 2014 Essay 1: Equity theory is based on the notion that individuals compare their inputs and outcomes with those of relevant others. If inequity is apparent based on the ratios, tension is created amongst individuals and one individual will be motivated to reduce the inequity by working less hard. One of the most important types of equity for compensation is internal equity, which

My Essays For My French Test

447 words - 2 pages Friendship is one of the feelings in the world * Pour moi, l’amitié est très importante. * Je me souviens d’avoir lu quelque part « Tout le monde entend ce que tu dis; tes amis écoutent ce que tu dis; mais tes meilleurs amis découvrent ce que tu ne dis pas. » * J’ai deux ou trois amis que je connais depuis l’école primaire et on se voit tout le temps. * On se connaît très bien, on se dit tout sur notre vie sentimentale

Benefast

265 words - 2 pages "Essays" redirects here. For other uses, see Essays (disambiguation). John Locke's 1690 Essay Concerning Human Understanding. An essay is a piece of writing which is often written from an author's personal point of view. Essays can consist of a number of elements, including: literary criticism, political manifestos, learned arguments, observations of daily life, recollections, and reflections of the author. The definition of an essay is

Essay Style

444 words - 2 pages Welcome to Writing Essays, the RLF’s online guide to everything you wanted to know but were afraid to ask about writing undergraduate essays. The guide is a toolbox of essay writing skills and resources that you can choose from to suit your particular needs. It combines descriptive and practical elements. That is, it tells you what things mean and what they are; and it uses examples to show you how they work. Writing Essays takes you

What Is An Essay?

815 words - 4 pages An essay is a piece of writing which is often written from an author's personal point of view. Essays can consist of a number of elements, including: literary criticism, political manifestos, learned arguments, observations of daily life, recollections, and reflections of the author. The definition of an essay is vague, overlapping with those of an article and a short story. Almost all modern essays are written in prose, but works in verse have

Characteristics Pf Expository Essay

1032 words - 5 pages Axia College Material Characteristics of the Expository Essay What Is an Essay? An essay, or personal-opinion paper, is an important part of your college experience because it requires critical thinking as well as organization and research. Essay is a broad term. Sometimes an essay is just a page long; sometimes, essays are five pages or longer. Essays, however, focus on a single subject and idea. They also have different purposes: to

Review Of A Time To Kill

676 words - 3 pages Search Type in your essay topic: ex. Vietnam War JOIN LOGIN CUSTOM ESSAYS HELP CONTACT A time to kill Essay Below is a free essay on "A time to kill" from Anti Essays, your source for free research papers, essays, and term paper examples. “JUSTICE CAN BE COLOR BLIND” “A Time to Kill” takes place in a small Mississippi town, where two white Men kidnap, rape, and nearly beat to death a young black girl. The men are caught, but the

Researchblower

633 words - 3 pages Below is a free essay on "Whistleblowing" from Anti Essays, your source for free research papers, essays, and term paper examples. Whistleblowing is a highly controversial and widely discussed topic in today’s society due to many high profile cases including the circumstances surrounding the Space Shuttle Challenger explosion and what was documented in the movie The Insider about the tobacco industry. Ethically, the decision for someone to

Similar Documents

Essays

1007 words - 5 pages is controversial. Proponents argue that it teaches students how to organize their thoughts clearly in writing; opponents characterize its structure as rigid and repetitive. [edit] Academic essays Longer academic essays (often with a word limit of between 2,000 and 5,000 words) are often more discursive. They sometimes begin with a short summary analysis of what has previously been written on a topic, which is often called a literature review

2 Essays

519 words - 3 pages destructive. This mood is learning for children to obtain directives, carry on a reliable tempo and effort with other people. It pushes up children to get pleasure from developing music and pays attention to music. (Sanwick, 1988). Reference: http://www.ukessays.com/essays/young-people/the-creativity-and-imagination-children-and-young-people-essay.php#ixzz3z2grop1R

Essays

1619 words - 7 pages Module 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation System Generation Common System Components Process Management Main Memory Management Secondary-Storage Management I/O System Management File Management Protection System Networking

Stylistic Analysis Of Various Types Of Essays

2587 words - 11 pages STYLISTIC ANALYSIS OF VARIOUS TYPES OF ESSAYS In this chapter we describe different forms and styles of essay writing. These forms and styles are used by a range of authors, including university students and professional essayists. To characterize the peculiar features of the admission essay we would like to make stylistic analyses of an article. App. 1] The beginning of an essay, paragraph 1, is essential to making