Notes CS 2
Notes CS 2
A Computer is an electronic machine which is use for data processing. The output
which comes after processing data through computer is known as Information.
What are data and information?
Data : 1 Ahmad Jamshedpur Jharkhand
Information:
5 + 7 = 12
Input
Any data or
instructions you
enter into a
computer
Communication Process
The capability of Manipulate the
communicating input (data) to
with other produce output
computers (information)
Storage
Area in a computer Output
that Data that has
can hold data and been processed
information for into
future use information
What is an input device?
Any hardware component that allows a user to enter data and instructions into a
computer.
What is an output device?
Any hardware component that can convey information to a user
What characteristics make a computer powerful?
Storage : Enormous amounts of data can be stored and made available for
processing anytime it is needed.
Accuracy : If data is entered correctly and program works properly, the results are
error-free — garbage in, garbage out (GIGO) accuracy of output depends on
accuracy of input.
Classification Of Computers
PC (Personal Computer)
A PC can be defined as a small, relatively inexpensive computer designed for an
individual user. PCs are based on the microprocessor technology that enables
manufacturers to put an entire CPU on one chip. Businesses use personal computers
for word processing, accounting, desktop publishing, and for running spreadsheet
and database management applications. At home, the most popular use for personal
computers is playing games and surfing the Internet.
Although personal computers are designed as single-user systems, these systems are
normally linked together to form a network. In terms of power, nowadays high-end
models of the Macintosh and PC offer the same computing power and graphics
capability as low-end workstations by Sun Microsystems, Hewlett-Packard, and Dell.
Minicomputer
It is a midsize multi-processing system capable of supporting up to 250 users
simultaneously.
Mainframe
The mainframe is very large in size and is an expensive computer capable of supporting
hundreds or even thousands of users simultaneously. Mainframe executes many programs
concurrently and supports much simultaneous execution of programs.
Supercomputer
Supercomputers are one of the fastest computers currently available. Supercomputers
are very expensive and are employed for specialized applications that require an
immense amount of mathematical calculations (number-crunching). For example,
weather forecasting, scientific simulations, (animated)graphics, fluid dynamic
calculations, nuclear energy research, electronic design, and analysis of geological data
(e.g. in petrochemical prospecting).
Workstation
The workstation is a computer used for engineering applications (CAD/CAM), desktop
publishing, software development, and other such types of applications which require a
moderate amount of computing power and relatively high-quality graphics capabilities.
Workstations generally come with a large, high-resolution graphics screen, a large amount
of RAM, inbuilt network support, and a graphical user interface. Most workstations also
have mass storage device such as a disk drive, but a special type of workstation, called
diskless workstations, comes without a disk drive.
Common operating systems for workstations are UNIX and Windows NT. Like PC,
workstations are also single-user computers like PC but are typically linked together to
form a local area network, although they can also be used as stand-alone systems.
Application Of Computers
Home
Computers are used at homes for several purposes like online bill payment, watching
movies or shows at home, home tutoring, social media access, playing games, internet
access, etc.
Medical Field
Computers are used in hospitals to maintain a database of patients’ history, diagnosis, X-
rays, live monitoring of patients, etc.
Entertainment
Computers help to watch movies online, play games online; act as a virtual entertainer in
playing games, listening to music, etc. Videos can be fed from computers to full screen
televisions. Photo editors are available with fabulous features.
Industry
Computers are used to perform several tasks in industries like managing inventory,
designing purpose, creating virtual sample products, interior designing, video
conferencing, etc. Online marketing has seen a great revolution in its ability to sell various
products to inaccessible corners like interior or rural areas. Stock markets have seen
phenomenal participation from different levels of people through the use of computers.
Education
Computers are used in education sector through online classes, online examinations,
referring e-books, online tutoring, etc. They help in increased use of audio-visual aids in
the education field.
Government
In government sectors, computers are used in data processing, maintaining a database
of citizens and supporting a paperless environment. The country’s defense organizations
have greatly benefitted from computers in their use for missile development, satellites,
rocket launches, etc.
Banking
In the banking sector, computers are used to store details of customers and conduct
transactions, such as withdrawal and deposit of money through ATMs. Banks have
reduced manual errors and expenses to a great extent through extensive use of
computers.
Business
Nowadays, computers are totally integrated into business. The main objective of
business is transaction processing, which involves transactions with suppliers,
employees or customers. Computers can make these transactions easy and accurate.
People can analyze investments, sales, expenses, markets and other aspects of business
using computers.
Training
Many organizations use computer-based training to train their employees, to save
money and improve performance. Video conferencing through computers allows
saving of time and travelling costs by being able to connect people in various
locations.
Arts
Computers are extensively used in dance, photography, arts and culture. The fluid
movement of dance can be shown live via animation. Photos can be digitized using
computers.
1) Speed
This is one of the biggest advantages of computers. At present, the computer is no
longer just a calculating device. It is a part of almost every function of human life.
Computers have an incredible speed that helps a human to complete his tasks in some
time. It can handle trillions of instructions per second which is really incredible. With
its incredible speed, it can reduce the amount of time to perform any digital task.
2) Accuracy
Computers not only provide incredible speed, instead, they can also give you almost
100%accuracy. This means that computers allow users to handle complex numerical
calculations or tasks not only with speed but also with accuracy. This is another
important advantage of computers.
3) Multitasking
Multitasking is one of the major benefits of computers. A person can do many
different tasks at the same time while working on a computer. A computer allows you
to play songs, use a document, calculate numerical problems, use the Internet, check
e-mail, and find files in memory simultaneously.
4) Storage
Computers can store and access vast amounts of data or information. The storage
capacity of computers has increased these days compared to earlier days. Data can be
stored separately for years in computer storage.
The commonly used measurement units for calculating storage capacity are Mega-Byte
(MB),Giga-Bytes (GB), Tera-Bytes (TB), and Peta-bytes (PB).
5) Data Security
Data Security is the process of protecting your digital data such as files, databases, and
accounts, etc. The computer allows you to protect your data from destructive powers
and unwanted or unauthorized users. It includes features such as data encryption,
tokens, and key management that help users protect digital data on various applications
and platforms.
6) Automation
The computer can also be used to automate regular tasks such as launching specific
applications or software, sending emails, scanning for viruses, and many other
maintenance tasks, with the help of Task Scheduler. Apart from it, computers can also be
programmed for performing several complex tasks. For example, computers can be
connected to a camera to track the movement of specific objects. If there is any
movement, then computers can automatically send an alert and start recording if they
are programmed accordingly.
7) Reduced Cost
Computers can be considered as a low cost solution to earn money in many different ways.
It is cheaper to start many business digitally rather than having physically.
Disadvantages of Computer
The use of computers has also caused different problems in society. The following are the
main problems or disadvantages of the computer:
1) Unemployment
As we discussed above that computers can perform many tasks automatically, this reduces
the need for people and increases unemployment in the society. It has also negatively
affected many others who do not have knowledge of working on computer systems.
2) Health Issues
Improper and prolonged use of computers can negatively affect your health. For example,
if you are constantly working on the computer, your eyes will become dry, which can result
in eyestrain, headache, etc? In addition, sitting too long can also cause pain in your neck or
back, which can result in serious injury in the future. Therefore, follow the appropriate
precautions and take a few minutes break after 30 minutes of computer use.
3) Cyber Crimes
There are some people who use computers and the Internet for negative activities.
They attempt to break the computer's security system and gain unauthorized access to
hack credit card details and other personal information. By accessing information, they
violate all laws and misuse the information for their own benefit. These types of
actions are covered under online cyber-crimes. In addition, hacking is the process of
gaining unauthorized access to computers for certain illegal purposes. Viruses are
usually transferred via email, internet download, or removable devices.
4) Improper Use
Most people do not understand the real need for computers. They just use computers
without any positive motive. They keep using computers to play games, chat with
friends on social media platforms, etc. However, a computer is a good source of
entertainment. But, if used without a schedule, it is not good for their studies and
their health. This also leads to a waste of time, energy and other resources.
Output Devices
The output devices produce or generate the desired result according to our input, such as
a printer, monitor, etc. These devices convert the data into a human-readable form
from binary code.
The computer system is linked or connected to the outside world with the help of
output devices. The primary examples of output devices are a printer, projector, etc.
These devices have various features which are given below:
These devices receive or accept the data in the binary form.
The output devices convert the binary code into the human-readable form.
These devices produce the converted result and show to the user.
5GLs are centered on solving problems using constraints given to the program,
rather than using an algorithm written by a programmer.
Most constraint-based and logic programming languages and some declarative
languages form a part of the fifth-generation languages.
5GLs are widely used in artificial intelligence research.
Typical examples of a 5GL include Prolog, OPS5, and Mercury.
Another aspect of a 5GL is that it contains visual tools to help develop a program. A
good example of a fifth generation language is Visual Basic.
With 5GL, the programmer only needs to worry about what problems need to be
solved and what conditions need to be met, without worrying about how to
implement a routine or algorithm to solve them.
A compiler is a special type of program that transforms source code written in a
programming language (the source language) into machine language comprising of just
two digits- 1s and 0s (the target language). The resultant code in 1s and 0s is known as the
object code. The object code is the one which will be used to create an executable
program.
If the source code contains errors then the compiler will not be able to its intended task.
Errors that limit the compiler in understanding a program are called syntax errors. Syntax
errors are like spelling mistakes, typing mistakes, etc. Another type of error is logic error
which occurs when the program does not function accurately. Logic errors are much harder
to locate and correct.
Interpreter: Like the compiler, the interpreter also executes instructions written in a high-
level language. While the compiler translates instructions written in high level
programming language directly into the machine language; the interpreter on the other
hand, translates the instructions into an intermediate form, which it then executes.
Usually, a compiled program executes faster than an interpreted program. However, the big
advantage of an interpreter is that it does not need to go through the compilation stage
during which machine instructions are generated. This process can be time-consuming if
the program is long. Moreover, the interpreter can immediately execute high-level
programs.