Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

To convert a positive decimal fraction x 1 to its binary equivalent x = ( a 1 a 2 a 3 dots ) 2 begin

To convert a positive decimal fraction x1 to its binary equivalent
x=(a1a2a3dots)2
begin by writing
x=a1*2-1+a2*2-2+a3*2-3+cdots
Based on this, use the following algorithm.
(i)x1:=x;j:=1
(ii) While xj0, Do the following:
aj:= Integer part of2*xj
xj+1:= Fractional part of2*xj
j:=j+1
While
End While
Apply this algorithm to convert the following decimal numbers to their binary equivalents.
(a).8125
(b)12.0625
(c).1
(d).2
(e).4
(f)17=.142857142857dots
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Show that (p q) and p q are logically equivalent.

Answered: 1 week ago