Computer – Components

Computer - Components
Computer – Components

All types of computers follow the same basic logical structure and perform the following five basic operations for converting raw input data into information useful to their users.

S.No. Operation Description
1 Take Input The process of entering data and instructions into the computer system.
2 Store Data Saving data and instructions so that they are available for processing as and when required.
3 Processing Data Performing arithmetic, and logical operations on data in order to convert them into useful information.
4 Output Information The process of producing useful information or results for the user, such as a printed report or visual display.
5 Control the workflow Directs the manner and sequence in which all of the above operations are performed.

 

Input Unit

This unit contains devices with the help of which we enter data into the computer. This unit creates a link between the user and the computer. The input devices translate the information into a form understandable by the computer.

CPU (Central Processing Unit)

CPU is considered as the brain of the computer. CPU performs all types of data processing operations. It stores data, intermediate results, and instructions (program). It controls the operation of all parts of the computer.

CPU itself has the following three components −

  • ALU (Arithmetic Logic Unit)
  • Memory Unit
  • Control Unit

Output Unit

The output unit consists of devices with the help of which we get the information from the computer. This unit is a link between the computer and the users. Output devices translate the computer’s output into a form understandable by the users.

Computer – Input Devices

Computer - Input Devices
Computer – Input Devices

Following are some of the important input devices which are used in a computer −

  • Keyboard
  • Mouse
  • Joy Stick
  • Light pen
  • Track Ball
  • Scanner
  • Graphic Tablet
  • Microphone
  • Magnetic Ink Card Reader(MICR)
  • Optical Character Reader(OCR)
  • Bar Code Reader
  • Optical Mark Reader(OMR)

Keyboard

Keyboard is the most common and very popular input device which helps to input data to the computer. The layout of the keyboard is like that of traditional typewriter, although there are some additional keys provided for performing additional functions.

Keyboards are of two sizes 84 keys or 101/102 keys, but now keyboards with 104 keys or 108 keys are also available for Windows and Internet.

The keys on the keyboard are as follows −

S.No Keys & Description
1

Typing Keys

These keys include the letter keys (A-Z) and digit keys (09) which generally give the same layout as that of typewriters.

2

Numeric Keypad

It is used to enter the numeric data or cursor movement. Generally, it consists of a set of 17 keys that are laid out in the same configuration used by most adding machines and calculators.

3

Function Keys

The twelve function keys are present on the keyboard which are arranged in a row at the top of the keyboard. Each function key has a unique meaning and is used for some specific purpose.

4

Control keys

These keys provide cursor and screen control. It includes four directional arrow keys. Control keys also include Home, End, Insert, Delete, Page Up, Page Down, Control(Ctrl), Alternate(Alt), Escape(Esc).

5

Special Purpose Keys

Keyboard also contains some special purpose keys such as Enter, Shift, Caps Lock, Num Lock, Space bar, Tab, and Print Screen.

Mouse

Mouse is the most popular pointing device. It is a very famous cursor-control device having a small palm size box with a round ball at its base, which senses the movement of the mouse and sends corresponding signals to the CPU when the mouse buttons are pressed.

Generally, it has two buttons called the left and the right button and a wheel is present between the buttons. A mouse can be used to control the position of the cursor on the screen, but it cannot be used to enter text into the computer.

Advantages

  • Easy to use
  • Not very expensive
  • Moves the cursor faster than the arrow keys of the keyboard.

Joystick

Joystick is also a pointing device, which is used to move the cursor position on a monitor screen. It is a stick having a spherical ball at its both lower and upper ends. The lower spherical ball moves in a socket. The joystick can be moved in all four directions.

The function of the joystick is similar to that of a mouse. It is mainly used in Computer Aided Designing (CAD) and playing computer games.

Light Pen

Light pen is a pointing device similar to a pen. It is used to select a displayed menu item or draw pictures on the monitor screen. It consists of a photocell and an optical system placed in a small tube.

When the tip of a light pen is moved over the monitor screen and the pen button is pressed, its photocell sensing element detects the screen location and sends the corresponding signal to the CPU.

Track Ball

Track ball is an input device that is mostly used in notebook or laptop computer, instead of a mouse. This is a ball which is half inserted and by moving fingers on the ball, the pointer can be moved.

Since the whole device is not moved, a track ball requires less space than a mouse. A track ball comes in various shapes like a ball, a button, or a square.

Scanner

Scanner is an input device, which works more like a photocopy machine. It is used when some information is available on paper and it is to be transferred to the hard disk of the computer for further manipulation.

Scanner captures images from the source which are then converted into a digital form that can be stored on the disk. These images can be edited before they are printed.

Digitizer

Digitizer is an input device which converts analog information into digital form. Digitizer can convert a signal from the television or camera into a series of numbers that could be stored in a computer. They can be used by the computer to create a picture of whatever the camera had been pointed at.

Digitizer is also known as Tablet or Graphics Tablet as it converts graphics and pictorial data into binary inputs. A graphic tablet as digitizer is used for fine works of drawing and image manipulation applications.

Microphone

Microphone is an input device to input sound that is then stored in a digital form.

The microphone is used for various applications such as adding sound to a multimedia presentation or for mixing music.

Magnetic Ink Card Reader (MICR)

MICR input device is generally used in banks as there are large number of cheques to be processed every day. The bank’s code number and cheque number are printed on the cheques with a special type of ink that contains particles of magnetic material that are machine readable.

This reading process is called Magnetic Ink Character Recognition (MICR). The main advantages of MICR is that it is fast and less error prone.

Optical Character Reader (OCR)

OCR is an input device used to read a printed text.

OCR scans the text optically, character by character, converts them into a machine readable code, and stores the text on the system memory.

Bar Code Readers

Bar Code Reader is a device used for reading bar coded data (data in the form of light and dark lines). Bar coded data is generally used in labelling goods, numbering the books, etc. It may be a handheld scanner or may be embedded in a stationary scanner.

Bar Code Reader scans a bar code image, converts it into an alphanumeric value, which is then fed to the computer that the bar code reader is connected to.

Optical Mark Reader (OMR)

OMR is a special type of optical scanner used to recognize the type of mark made by pen or pencil. It is used where one out of a few alternatives is to be selected and marked.

It is specially used for checking the answer sheets of examinations having multiple choice questions.

Computer – Generations

Computer - Generations
Computer – Generations

Generation in computer terminology is a change in technology a computer is/was being used. Initially, the generation term was used to distinguish between varying hardware technologies. Nowadays, generation includes both hardware and software, which together make up an entire computer system.

There are five computer generations known till date. Each generation has been discussed in detail along with their time period and characteristics. In the following table, approximate dates against each generation has been mentioned, which are normally accepted.

Following are the main five generations of computers.

S.No Generation & Description
1 First Generation

The period of first generation: 1946-1959. Vacuum tube based.

2 Second Generation

The period of second generation: 1959-1965. Transistor based.

3 Third Generation

The period of third generation: 1965-1971. Integrated Circuit based.

4 Fourth Generation

The period of fourth generation: 1971-1980. VLSI microprocessor based.

5 Fifth Generation

The period of fifth generation: 1980-onwards. ULSI microprocessor based.

Computer – Applications

Computer - Applications
Computer – Applications

In this chapter, we will discuss the application of computers in various fields.

Business

A computer has high speed of calculation, diligence, accuracy, reliability, or versatility which has made it an integrated part in all business organizations.

Computer is used in business organizations for −

  • Payroll calculations
  • Budgeting
  • Sales analysis
  • Financial forecasting
  • Managing employee database
  • Maintenance of stocks, etc.

Banking

Today, banking is almost totally dependent on computers.

Banks provide the following facilities −

  • Online accounting facility, which includes checking current balance, making deposits and overdrafts, checking interest charges, shares, and trustee records.

  • ATM machines which are completely automated are making it even easier for customers to deal with banks.

Insurance

Insurance companies are keeping all records up-to-date with the help of computers. Insurance companies, finance houses, and stock broking firms are widely using computers for their concerns.

Insurance companies are maintaining a database of all clients with information showing −

  • Procedure to continue with policies
  • Starting date of the policies
  • Next due installment of a policy
  • Maturity date
  • Interests due
  • Survival benefits
  • Bonus

Education

The computer helps in providing a lot of facilities in the education system.

  • The computer provides a tool in the education system known as CBE (Computer Based Education).

  • CBE involves control, delivery, and evaluation of learning.

  • Computer education is rapidly increasing the graph of number of computer students.

  • There are a number of methods in which educational institutions can use a computer to educate the students.

  • It is used to prepare a database about performance of a student and analysis is carried out on this basis.

Marketing

In marketing, uses of the computer are following −

  • Advertising − With computers, advertising professionals create art and graphics, write and revise copy, and print and disseminate ads with the goal of selling more products.

  • Home Shopping − Home shopping has been made possible through the use of computerized catalogues that provide access to product information and permit direct entry of orders to be filled by the customers.

Healthcare

Computers have become an important part in hospitals, labs, and dispensaries. They are being used in hospitals to keep the record of patients and medicines. It is also used in scanning and diagnosing different diseases. ECG, EEG, ultrasounds and CT scans, etc. are also done by computerized machines.

Following are some major fields of health care in which computers are used.

  • Diagnostic System − Computers are used to collect data and identify the cause of illness.

  • Lab-diagnostic System − All tests can be done and the reports are prepared by computer.

  • Patient Monitoring System − These are used to check the patient’s signs for abnormality such as in Cardiac Arrest, ECG, etc.

  • Pharma Information System − Computer is used to check drug labels, expiry dates, harmful side effects, etc.

  • Surgery − Nowadays, computers are also used in performing surgery.

Engineering Design

Computers are widely used for Engineering purpose.

One of the major areas is CAD (Computer Aided Design) that provides creation and modification of images. Some of the fields are −

  • Structural Engineering − Requires stress and strain analysis for design of ships, buildings, budgets, airplanes, etc.

  • Industrial Engineering − Computers deal with design, implementation, and improvement of integrated systems of people, materials, and equipment.

  • Architectural Engineering − Computers help in planning towns, designing buildings, determining a range of buildings on a site using both 2D and 3D drawings.

Military

Computers are largely used in defence. Modern tanks, missiles, weapons, etc. Military also employs computerized control systems. Some military areas where a computer has been used are −

  • Missile Control
  • Military Communication
  • Military Operation and Planning
  • Smart Weapons

Communication

Communication is a way to convey a message, an idea, a picture, or speech that is received and understood clearly and correctly by the person for whom it is meant. Some main areas in this category are −

  • E-mail
  • Chatting
  • Usenet
  • FTP
  • Telnet
  • Video-conferencing

Government

Computers play an important role in government services. Some major fields in this category are −

  • Budgets
  • Sales tax department
  • Income tax department
  • Computation of male/female ratio
  • Computerization of voters lists
  • Computerization of PAN card
  • Weather forecasting

Computer – Memory Units

Computer - Memory Units
Computer – Memory Units


Memory unit is the amount of data that can be stored in the storage unit. This storage capacity is expressed in terms of Bytes.

The following table explains the main memory storage units −

S.No. Unit & Description
1

Bit (Binary Digit)

A binary digit is logical 0 and 1 representing a passive or an active state of a component in an electric circuit.

2

Nibble

A group of 4 bits is called nibble.

3

Byte

A group of 8 bits is called byte. A byte is the smallest unit, which can represent a data item or a character.

4

Word

A computer word, like a byte, is a group of fixed number of bits processed as a unit, which varies from computer to computer but is fixed for each computer.

The length of a computer word is called word-size or word length. It may be as small as 8 bits or may be as long as 96 bits. A computer stores the information in the form of computer words.

The following table lists some higher storage units −

S.No. Unit & Description
1

Kilobyte (KB)

1 KB = 1024 Bytes

2

Megabyte (MB)

1 MB = 1024 KB

3

GigaByte (GB)

1 GB = 1024 MB

4

TeraByte (TB)

1 TB = 1024 GB

5

PetaByte (PB)

1 PB = 1024 TB

How to Hard Reset Samsung Galaxy A52s 5G?

How to Hard Reset Samsung Galaxy A52s 5G?
How to Hard Reset Samsung Galaxy A52s 5G?

There are two methods to perform a hard reset on your Samsung Galaxy A52s 5G. One is through the settings menu, and the other is through the recovery mode. Here are the steps for each method:

Through the settings menu:

Go to Settings > General management > Reset.

Tap on Factory data reset.

Scroll down and tap on Reset.

Enter your PIN, password, or pattern if prompted.

Tap on Delete all.

Wait for the process to complete and your phone will restart.


Through the recovery mode:

Turn off your phone.

Press and hold Volume up + Power + Home buttons simultaneously until the Samsung logo appears.

Release the Power button but keep holding the other two buttons until you see the Android recovery menu.

Use the Volume buttons to navigate and select Wipe data/factory reset.

Press the Power button to confirm.

Select Factory data reset and press the Power button to confirm again.

Select Reboot system now and press the Power button to restart your phone.

Please note that a hard reset will erase all your data and settings on your phone, so make sure you back up any important files before you proceed. Also, if you have a Google account or a Samsung account linked to your phone, you may need to enter your credentials after the reset to unlock your phone.

Technology Trends in 2023: What to Expect and How to Prepare

 

Technology Trends in 2023: What to Expect and How to Prepare
Technology Trends in 2023: What to Expect and How to Prepare

Technology is constantly evolving and changing the way we live, work, and communicate. Every year, new innovations and breakthroughs emerge that challenge our assumptions and expectations. In this article, we will explore some of the technology trends that are shaping the world in 2023, and how they can impact your personal and professional life.

Artificial Intelligence (AI) and Machine Learning (ML)

AI and ML are not new concepts, but they have become more advanced and accessible in recent years. AI refers to the ability of machines to perform tasks that normally require human intelligence, such as reasoning, learning, decision making, and natural language processing. ML is a subset of AI that enables machines to learn from data and improve their performance without explicit programming.

AI and ML have many applications across various domains, such as healthcare, education, entertainment, business, and security. Some examples of AI and ML in action are:

  • Virtual assistants: These are software programs that can interact with users through voice or text, and provide information, services, or entertainment. Examples of virtual assistants are Siri, Alexa, Cortana, Google Assistant, and Bing.
  • Facial recognition: This is a technology that can identify or verify a person’s identity based on their facial features. Facial recognition can be used for security purposes, such as unlocking devices or accessing restricted areas, or for social purposes, such as tagging photos or applying filters.
  • Self-driving cars: These are vehicles that can drive themselves without human intervention, using sensors, cameras, GPS, and AI algorithms. Self-driving cars can offer many benefits, such as reducing traffic accidents, saving fuel, and improving mobility.
  • Recommendation systems: These are systems that can suggest products, services, or content to users based on their preferences, behavior, or context. Examples of recommendation systems are Netflix, Spotify, Amazon, and YouTube.

AI and ML are expected to grow further in 2023, as more data becomes available and more powerful computing resources become affordable. Some of the challenges that AI and ML face are ethical issues, such as privacy, bias, accountability, and transparency; technical issues, such as scalability, reliability, and security; and social issues, such as job displacement, human-machine interaction, and social impact.

To prepare for the AI and ML revolution in 2023, you should:

  • Stay updated: Keep yourself informed about the latest developments and trends in AI and ML by reading blogs, newsletters, podcasts, books, or courses.
  • Be curious: Experiment with different AI and ML tools and platforms that are available online or on your devices. For example, you can try Google’s Teachable Machine, which lets you create your own machine learning models with your webcam; or Microsoft’s Cognitive Services, which offers various APIs for vision, speech, language, knowledge, and search.
  • Be creative: Think of how you can use AI and ML to solve problems or enhance your life. For example, you can use AI to create art, music, or stories; or use ML to analyze data, optimize performance, or predict outcomes.

Internet of Things (IoT) and Edge Computing

IoT refers to the network of physical objects that are embedded with sensors, actuators, and communication devices that enable them to collect, process, and exchange data with other devices or systems over the internet. Examples of IoT devices are smart watches, smart phones, smart speakers, smart lights, smart thermostats, smart locks, and smart cameras.

Edge computing refers to the practice of processing data near the source of generation, rather than sending it to a central server or cloud. This can reduce latency, bandwidth consumption, and security risks, and improve performance, reliability, and privacy. Examples of edge computing devices are routers, gateways, microservers, and microdata centers.

IoT and edge computing have many applications across various domains, such as healthcare, agriculture, manufacturing, transportation, and smart cities. Some examples of IoT and edge computing in action are:

  • Remote health monitoring: This is a technology that allows patients to monitor their vital signs, such as blood pressure, heart rate, glucose level, and oxygen saturation, using wearable devices that transmit data to their doctors or caregivers over the internet. This can improve patient outcomes, reduce healthcare costs, and increase access to healthcare services.
  • Precision farming: This is a technology that uses IoT devices, such as sensors, drones, cameras, and robots, to collect data on soil conditions, crop health, weather patterns, and pest infestations, and use edge computing to analyze the data and provide real-time feedback or actions to farmers. This can increase crop yield, reduce environmental impact, and optimize resource use.
  • Smart manufacturing: This is a technology that uses IoT devices, such as sensors, cameras, RFID tags, and robots, to collect data on production processes, quality control, inventory management, and supply chain management, and use edge computing to analyze the data and provide real-time feedback or actions to manufacturers. This can improve productivity, efficiency, safety, and customer satisfaction.
  • Intelligent transportation: This is a technology that uses IoT devices, such as sensors, cameras, GPS, and V2X communication, to collect data on traffic conditions, road safety, vehicle performance, and driver behavior, and use edge computing to analyze the data and provide real-time feedback or actions to drivers or authorities. This can reduce congestion, accidents, emissions, and fuel consumption.

IoT and edge computing are expected to grow further in 2023, as more devices become connected and more data becomes available. Some of the challenges that IoT and edge computing face are technical issues, such as interoperability, scalability, reliability, and security; ethical issues, such as privacy, consent, ownership, and governance; and social issues, such as user acceptance, education, and regulation.

To prepare for the IoT and edge computing revolution in 2023, you should:

  • Stay connected: Keep yourself updated about the latest developments and trends in IoT and edge computing by reading blogs, newsletters, podcasts, books, or courses.
  • Be smart: Experiment with different IoT and edge computing devices and platforms that are available online or on your devices. For example, you can try Raspberry Pi, which is a low-cost computer that can run various IoT projects; or Azure IoT Edge, which is a cloud service that enables edge computing on IoT devices.
  • Be innovative: Think of how you can use IoT and edge computing to solve problems or enhance your life. For example, you can use IoT to create smart home, smart garden, or smart pet systems; or use edge computing to create augmented reality, virtual reality, or gaming experiences.

Computer – Ports

Computer - Ports
Computer – Ports

A port is a physical docking point using which an external device can be connected to the computer. It can also be programmatic docking point through which information flows from a program to the computer or over the Internet.

Characteristics of Ports

A port has the following characteristics −

  • External devices are connected to a computer using cables and ports.

  • Ports are slots on the motherboard into which a cable of external device is plugged in.

  • Examples of external devices attached via ports are the mouse, keyboard, monitor, microphone, speakers, etc.

 

Let us now discuss a few important types of ports −

Serial Port

  • Used for external modems and older computer mouse

  • Two versions: 9 pin, 25 pin model

  • Data travels at 115 kilobits per second

Parallel Port

  • Used for scanners and printers

  • Also called printer port

  • 25 pin model

  • IEEE 1284-compliant Centronics port

PS/2 Port

  • Used for old computer keyboard and mouse

  • Also called mouse port

  • Most of the old computers provide two PS/2 port, each for the mouse and keyboard

  • IEEE 1284-compliant Centronics port

Universal Serial Bus (or USB) Port

  • It can connect all kinds of external USB devices such as external hard disk, printer, scanner, mouse, keyboard, etc.

  • It was introduced in 1997.

  • Most of the computers provide two USB ports as minimum.

  • Data travels at 12 megabits per seconds.

  • USB compliant devices can get power from a USB port.

VGA Port

  • Connects monitor to a computer’s video card.

  • It has 15 holes.

  • Similar to the serial port connector. However, serial port connector has pins, VGA port has holes.

Power Connector

  • Three-pronged plug.

  • Connects to the computer’s power cable that plugs into a power bar or wall socket.

Firewire Port

  • Transfers large amount of data at very fast speed.

  • Connects camcorders and video equipment to the computer.

  • Data travels at 400 to 800 megabits per seconds.

  • Invented by Apple.

  • It has three variants: 4-Pin FireWire 400 connector, 6-Pin FireWire 400 connector, and 9-Pin FireWire 800 connector.

Modem Port

  • Connects a PC’s modem to the telephone network.

Ethernet Port

  • Connects to a network and high speed Internet.

  • Connects the network cable to a computer.

  • This port resides on an Ethernet Card.

  • Data travels at 10 megabits to 1000 megabits per seconds depending upon the network bandwidth.

Game Port

  • Connect a joystick to a PC

  • Now replaced by USB

Digital Video Interface, DVI port

  • Connects Flat panel LCD monitor to the computer’s high-end video graphic cards.

  • Very popular among video card manufacturers.

Sockets

  • Sockets connect the microphone and speakers to the sound card of the computer.

Computer – Number System

Computer - Number System
Computer – Number System

When we type some letters or words, the computer translates them in numbers as computers can understand only numbers. A computer can understand the positional number system where there are only a few symbols called digits and these symbols represent different values depending on the position they occupy in the number.

(toc)

The value of each digit in a number can be determined using −

  • The digit

  • The position of the digit in the number

  • The base of the number system (where the base is defined as the total number of digits available in the number system)

Decimal Number System

The number system that we use in our day-to-day life is the decimal number system. Decimal number system has base 10 as it uses 10 digits from 0 to 9. In decimal number system, the successive positions to the left of the decimal point represent units, tens, hundreds, thousands, and so on.

Each position represents a specific power of the base (10). For example, the decimal number 1234 consists of the digit 4 in the units position, 3 in the tens position, 2 in the hundreds position, and 1 in the thousands position. Its value can be written as

(1 x 1000)+ (2 x 100)+ (3 x 10)+ (4 x l) (1 x 103)+ (2 x 102)+ (3 x 101)+ (4 x l00) 1000 + 200 + 30 + 4 1234 

As a computer programmer or an IT professional, you should understand the following number systems which are frequently used in computers.

S.No. Number System and Description
1

Binary Number System

Base 2. Digits used : 0, 1

2

Octal Number System

Base 8. Digits used : 0 to 7

3

Hexa Decimal Number System

Base 16. Digits used: 0 to 9, Letters used : A- F

Binary Number System

Characteristics of the binary number system are as follows −

  • Uses two digits, 0 and 1

  • Also called as base 2 number system

  • Each position in a binary number represents a 0 power of the base (2). Example 20

  • Last position in a binary number represents a x power of the base (2). Example 2x where x represents the last position – 1.

Example

Binary Number: 101012

Calculating Decimal Equivalent −

Step Binary Number Decimal Number
Step 1 101012 ((1 x 24) + (0 x 23) + (1 x 22) + (0 x 21) + (1 x 20))10
Step 2 101012 (16 + 0 + 4 + 0 + 1)10
Step 3 101012 2110

Note − 101012 is normally written as 10101.

Octal Number System

Characteristics of the octal number system are as follows −

  • Uses eight digits, 0,1,2,3,4,5,6,7

  • Also called as base 8 number system

  • Each position in an octal number represents a 0 power of the base (8). Example 80

  • Last position in an octal number represents a x power of the base (8). Example 8x where x represents the last position – 1

Example

Octal Number: 125708

Calculating Decimal Equivalent −

Step Octal Number Decimal Number
Step 1 125708 ((1 x 84) + (2 x 83) + (5 x 82) + (7 x 81) + (0 x 80))10
Step 2 125708 (4096 + 1024 + 320 + 56 + 0)10
Step 3 125708 549610

Note − 125708 is normally written as 12570.

Hexadecimal Number System

Characteristics of hexadecimal number system are as follows −

  • Uses 10 digits and 6 letters, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F

  • Letters represent the numbers starting from 10. A = 10. B = 11, C = 12, D = 13, E = 14, F = 15

  • Also called as base 16 number system

  • Each position in a hexadecimal number represents a 0 power of the base (16). Example, 160

  • Last position in a hexadecimal number represents a x power of the base (16). Example 16x where x represents the last position – 1

Example

Hexadecimal Number: 19FDE16

Calculating Decimal Equivalent −

Step Binary Number Decimal Number
Step 1 19FDE16 ((1 x 164) + (9 x 163) + (F x 162) + (D x 161) + (E x 160))10
Step 2 19FDE16 ((1 x 164) + (9 x 163) + (15 x 162) + (13 x 161) + (14 x 160))10
Step 3 19FDE16 (65536+ 36864 + 3840 + 208 + 14)10
Step 4 19FDE16 10646210

Note − 19FDE16 is normally written as 19FDE.

Computer – Number Conversion

Computer - Number Conversion
Computer – Number Conversion

There are many methods or techniques which can be used to convert numbers from one base to another. In this chapter, we’ll demonstrate the following −

  • Decimal to Other Base System
  • Other Base System to Decimal
  • Other Base System to Non-Decimal
  • Shortcut method – Binary to Octal
  • Shortcut method – Octal to Binary
  • Shortcut method – Binary to Hexadecimal
  • Shortcut method – Hexadecimal to Binary

Decimal to Other Base System

Step 1 − Divide the decimal number to be converted by the value of the new base.

Step 2 − Get the remainder from Step 1 as the rightmost digit (least significant digit) of the new base number.

Step 3 − Divide the quotient of the previous divide by the new base.

Step 4 − Record the remainder from Step 3 as the next digit (to the left) of the new base number.

Repeat Steps 3 and 4, getting remainders from right to left, until the quotient becomes zero in Step 3.

The last remainder thus obtained will be the Most Significant Digit (MSD) of the new base number.

Example

Decimal Number: 2910

Calculating Binary Equivalent −

Step Operation Result Remainder
Step 1 29 / 2 14 1
Step 2 14 / 2 7 0
Step 3 7 / 2 3 1
Step 4 3 / 2 1 1
Step 5 1 / 2 0 1

As mentioned in Steps 2 and 4, the remainders have to be arranged in the reverse order so that the first remainder becomes the Least Significant Digit (LSD) and the last remainder becomes the Most Significant Digit (MSD).

Decimal Number : 2910 = Binary Number : 111012.

Other Base System to Decimal System

Step 1 − Determine the column (positional) value of each digit (this depends on the position of the digit and the base of the number system).

Step 2 − Multiply the obtained column values (in Step 1) by the digits in the corresponding columns.

Step 3 − Sum the products calculated in Step 2. The total is the equivalent value in decimal.

Example

Binary Number: 111012

Calculating Decimal Equivalent −

Step Binary Number Decimal Number
Step 1 111012 ((1 x 24) + (1 x 23) + (1 x 22) + (0 x 21) + (1 x 20))10
Step 2 111012 (16 + 8 + 4 + 0 + 1)10
Step 3 111012 2910

Binary Number : 111012 = Decimal Number : 2910

Other Base System to Non-Decimal System

Step 1 − Convert the original number to a decimal number (base 10).

Step 2 − Convert the decimal number so obtained to the new base number.

Example

Octal Number : 258

Calculating Binary Equivalent −

Step 1 – Convert to Decimal

Step Octal Number Decimal Number
Step 1 258 ((2 x 81) + (5 x 80))10
Step 2 258 (16 + 5)10
Step 3 258 2110

Octal Number : 258 = Decimal Number : 2110

Step 2 – Convert Decimal to Binary

Step Operation Result Remainder
Step 1 21 / 2 10 1
Step 2 10 / 2 5 0
Step 3 5 / 2 2 1
Step 4 2 / 2 1 0
Step 5 1 / 2 0 1

Decimal Number : 2110 = Binary Number : 101012

Octal Number : 258 = Binary Number : 101012

Shortcut Method ─ Binary to Octal

Step 1 − Divide the binary digits into groups of three (starting from the right).

Step 2 − Convert each group of three binary digits to one octal digit.

Example

Binary Number : 101012

Calculating Octal Equivalent −

Step Binary Number Octal Number
Step 1 101012 010 101
Step 2 101012 28 58
Step 3 101012 258

Binary Number : 101012 = Octal Number : 258

Shortcut Method ─ Octal to Binary

Step 1 − Convert each octal digit to a 3-digit binary number (the octal digits may be treated as decimal for this conversion).

Step 2 − Combine all the resulting binary groups (of 3 digits each) into a single binary number.

Example

Octal Number : 258

Calculating Binary Equivalent −

Step Octal Number Binary Number
Step 1 258 210 510
Step 2 258 0102 1012
Step 3 258 0101012

Octal Number : 258 = Binary Number : 101012

Shortcut Method ─ Binary to Hexadecimal

Step 1 − Divide the binary digits into groups of four (starting from the right).

Step 2 − Convert each group of four binary digits to one hexadecimal symbol.

Example

Binary Number : 101012

Calculating hexadecimal Equivalent −

Step Binary Number Hexadecimal Number
Step 1 101012 0001 0101
Step 2 101012 110 510
Step 3 101012 1516

Binary Number : 101012 = Hexadecimal Number : 1516

Shortcut Method – Hexadecimal to Binary

Step 1 − Convert each hexadecimal digit to a 4-digit binary number (the hexadecimal digits may be treated as decimal for this conversion).

Step 2 − Combine all the resulting binary groups (of 4 digits each) into a single binary number.

Example

Hexadecimal Number : 1516

Calculating Binary Equivalent −

Step Hexadecimal Number Binary Number
Step 1 1516 110 510
Step 2 1516 00012 01012
Step 3 1516 000101012

Hexadecimal Number : 1516 = Binary Number : 101012