Converting binary fractions to rational numbers (decimal fractions)
π To convert binary fractions to their decimal equivalents, all we have to do is multiply each bit with its power of 2 position.
π Note: To convert octal and hexadecimal fractions to their decimal equivalents we follow the same steps
we used above except we change the multiplier(Base) to 8 and 16 respectively.
Converting rational numbers to Baes B fractions
πTo convert rational numbers to their Base B fraction equivalent we will follow the following steps.
Step 1: Multiply the number after decimal point by B
Step 2: Take number before the decimal point from the result.
Step 3: repeat steps 1 and 2 until there is no decimal point to multiply
@Computer_science_course
π To convert binary fractions to their decimal equivalents, all we have to do is multiply each bit with its power of 2 position.
π Note: To convert octal and hexadecimal fractions to their decimal equivalents we follow the same steps
we used above except we change the multiplier(Base) to 8 and 16 respectively.
Converting rational numbers to Baes B fractions
πTo convert rational numbers to their Base B fraction equivalent we will follow the following steps.
Step 1: Multiply the number after decimal point by B
Step 2: Take number before the decimal point from the result.
Step 3: repeat steps 1 and 2 until there is no decimal point to multiply
@Computer_science_course
Computer Arithmetic
Now that binary numbers are discussed, itβs time to look at how their arithmetic works. But
there are two basic binary number representations so far. Unsigned binary numbers and binary
numbers that are represented using the sign and magnitude method.
@Computer_science_course
Now that binary numbers are discussed, itβs time to look at how their arithmetic works. But
there are two basic binary number representations so far. Unsigned binary numbers and binary
numbers that are represented using the sign and magnitude method.
@Computer_science_course
Addition & subtraction for signed binary integers (using sign and magnitude)
πIf the binary numbers are signed then addition and subtraction can be expressed using just the
addition operation.
πTake a look at the following equations.
πX β Y = X + (- Y )
π-X β Y = (- X ) + (- Y)
πRecap: The first bit of the binary number indicates sign, 0 for positive and 1 for negative
πRules:
1. Identify the sign of each binary number [ the sign bit is excluded for the calculation]
A. If they both have the same sign
πAdd the two binaries.
πApply the sign to the result.
@Computer_science_course
πIf the binary numbers are signed then addition and subtraction can be expressed using just the
addition operation.
πTake a look at the following equations.
πX β Y = X + (- Y )
π-X β Y = (- X ) + (- Y)
πRecap: The first bit of the binary number indicates sign, 0 for positive and 1 for negative
πRules:
1. Identify the sign of each binary number [ the sign bit is excluded for the calculation]
A. If they both have the same sign
πAdd the two binaries.
πApply the sign to the result.
@Computer_science_course
3) Multiplication for unsigned integers is straight
forward,
πFind out the number of bits needed n
π Represent both numbers with n
π apply decimal multiplication rule
π apply the unsigned binary addition rule
πcut-off unnecessary bits
@Computer_science_course
forward,
πFind out the number of bits needed n
π Represent both numbers with n
π apply decimal multiplication rule
π apply the unsigned binary addition rule
πcut-off unnecessary bits
@Computer_science_course
Division Rules:
πAssumption
o n= number of bits of the divisor db1
o db2= dividend
πcut n from db2 to create a smaller binary b
π if b is less than db1 then multiply db1 by 1
πif b is greater than db1 then multiply db1 by 0
πsubtract and continue until the dividend is exhausted
πapply the subtraction rule for unsigned integers
πtrim unnecessary bits
@Computer_science_course
πAssumption
o n= number of bits of the divisor db1
o db2= dividend
πcut n from db2 to create a smaller binary b
π if b is less than db1 then multiply db1 by 1
πif b is greater than db1 then multiply db1 by 0
πsubtract and continue until the dividend is exhausted
πapply the subtraction rule for unsigned integers
πtrim unnecessary bits
@Computer_science_course
Binary Complements
Complements are used to represent negative integers in a binary form.
πPositive integers are
represented in the normal binary from.
β 1βs complement
Simply convert 0s to 1s and 1s to 0s.
@Computer_science_course
Complements are used to represent negative integers in a binary form.
πPositive integers are
represented in the normal binary from.
β 1βs complement
Simply convert 0s to 1s and 1s to 0s.
@Computer_science_course
Subtraction using 1βs complement.
πSince every negative integer can be represented uniquely subtraction can be replaced with addition. Like previously
X β Y = X + (-Y).
πRule: If there is a remainder at the end itβs added to the result.
@Computer_science_course
πSince every negative integer can be represented uniquely subtraction can be replaced with addition. Like previously
X β Y = X + (-Y).
πRule: If there is a remainder at the end itβs added to the result.
@Computer_science_course
2βs compliment
πThis is a more refined version of 1βs compliment.
πIt solves the problem of 1βs complement.
πTo find the 2βs complement of a negative integer, first find the 1βs complement the add 1.
@Computer_science_course
πThis is a more refined version of 1βs compliment.
πIt solves the problem of 1βs complement.
πTo find the 2βs complement of a negative integer, first find the 1βs complement the add 1.
@Computer_science_course
Steps in SDLC
πSDLC can be made up of multiple steps.
There is no concrete set number of steps involved.
πAround seven or eight steps appear commonly;
however, there can be anywhere from five upwards to 12.
Typically, the more steps defined in an SDLC model,
the more granular the stages are.
πIn general, an SDLC methodology follows these following steps:
@Computer_science_course
πSDLC can be made up of multiple steps.
There is no concrete set number of steps involved.
πAround seven or eight steps appear commonly;
however, there can be anywhere from five upwards to 12.
Typically, the more steps defined in an SDLC model,
the more granular the stages are.
πIn general, an SDLC methodology follows these following steps:
@Computer_science_course
Steps in SDLC
πSDLC can be made up of multiple steps.
There is no concrete set number of steps involved.
πAround seven or eight steps appear commonly;
however, there can be anywhere from five upwards to 12.
Typically, the more steps defined in an SDLC model,
the more granular the stages are.
πIn general, an SDLC methodology follows these following steps:
@Computer_science_course
πSDLC can be made up of multiple steps.
There is no concrete set number of steps involved.
πAround seven or eight steps appear commonly;
however, there can be anywhere from five upwards to 12.
Typically, the more steps defined in an SDLC model,
the more granular the stages are.
πIn general, an SDLC methodology follows these following steps:
@Computer_science_course
1.Plan and requirements:
πThe new system requirements are defined. In particular, the deficiencies in the existing system must be addressed with specific proposals for improvement. Other factors defined include needed features, functions and capabilities.
@Computer_science_course
πThe new system requirements are defined. In particular, the deficiencies in the existing system must be addressed with specific proposals for improvement. Other factors defined include needed features, functions and capabilities.
@Computer_science_course