Computer Fundamentals and Programming
Computer Fundamentals and Programming
Computer - is an advanced electronic device that takes raw data as input from the
user and processes it under the control of a set of instructions, gives the result
(output), and saves it for future use.
Advantages
1) High Speed
- The computer has units of speed in microseconds,
nanoseconds, and even picoseconds.
- It can perform millions of calculations in a few seconds as compared
to a man who will spend many months doing the same task.
2)Accuracy
-The calculations are 100% error-free.
- Computers perform all jobs with 100% accuracy provided that
correct input has been given.
3)Storage Capability
- A computer has much more storage capacity than human beings.
- It can store any type of data such as images, videos, text, audio,
and many others.
4)Diligence
- computer is free from monotony, tiredness, and lack of
concentration.
- It can work continuously without any error and boredom.
5)Versatility
- A computer is very flexible in performing the jobs to be done.
6)Reliability
- Modern electronic components have long lives.
- Computers are designed to make maintenance easy.
7)Automation
- Automation means the ability to perform a given task
automatically.
9)Reduction in Cost
- Though the initial investment for installing a computer is high,
it substantially reduces the cost of each of its transactions.
Disadvantages
1)No I.Q
- A computer is a machine that has no intelligence to perform
any task.
- A computer cannot make any decision on its own.
2)Dependency
- It functions as per a user’s instruction, so it is fully dependent on
human beings
3)Environment
-The operating environment of a computer should be dust-free
and suitable.
4)No Feeling
- Computers have no feelings or emotions.
- It cannot make a judgment
Input Unit
- contains devices with the help of which we enter data into the computer.
- This unit links the user and computer.
Input devices
- translate the information into a form understandable by computer.
Keyboard - the most common and very popular input device which helps in inputting data to the
computer.
Joystick - also a pointing device that is used to move the cursor position on a monitor screen.
Output Unit
- consists of devices with the help of which we get the information from the computer.
- This unit is a link between computers and users.
Output Devices
- translate the computer's output into a form understandable by users.
Types of Computer
Computers can be broadly classified by their speed and computing power.
1. PC (Personal Computer)
- It is a single-user computer having a moderately powerful microprocessor
2. Work Station
-Similar to a personal computer but has a more powerful microprocessor
3. Mini Computer
- Multi-user computer system which is capable of supporting (250) users
simultaneously
4. Main Frame
- Software technology is different from minicomputers
5. Super Computer
- It is an extremely fast computer which can execute hundreds of millions of
instructions per second
Computer Memory
Memory - used to store the information that the computer is currently using.
- It is sometimes called primary memory.
Types Of ROM
1)MROM (Masked ROM)
- The very first ROMs were hard-wired devices that contained a pre-programmed
set of data or instructions.
Computer virus - a program or piece of code that is loaded onto your computer
without your knowledge and runs against your wishes.
2. Multipartite Viruses - distributed through infected media and usually hide in the
memory.
3. Direct Action Viruses - the purpose is to replicate and take action when it is executed.
6. Macro Virus - infect files that are created using certain applications or programs that
contain macros.
7. Directory Virus - change the paths that indicate the location of a file.
Computer Language
- 1950’s first computer language
- Machine Language
- Assembly Language
- High-Level Language
Number System
- A number system is a writing system for expressing a number
- The number of distinct symbols used in a number system is known as its Radix or Base.
Decimal number
- system is a base 10 number system having 10 digits from 0 to 9.
- Also called a position value system
Hexadecimal Number System - also a positional value system where each digit has its value
expressed in powers of 16.
Position
- is the power of a base. The value of position will determine the position of the digit in a
number system.
Weight
- is the product of the base raised to the power or the position.
Magnitude
- Magnitude is the sum of "digit * weight". The final product of the conversion.
Algorithm
- relates to the name of the mathematician Al-khowarizmi, which means a procedure or a
technique.
- A programming algorithm is a procedure or formula used for solving a problem.
Flowchart
- is a graphical representation of the steps a program takes to process data. It is
another commonly used programming tool.
Oval/ Terminal
- Used to represent the start and end of the flowchart.
Parallelogram/ Data
- Used for input and output operation
Rectangle/Process
- Used for input and output operation
Diamond/ Decision
- Used to represent the operation in which there are two/three alternatives,
true and false etc.
Pseudo
- greek "pseudes", meaning false.
- is a detailed yet readable description of what a computer program or algorithm must do.
- It uses a mixture of English and informal program constructs, which provides a
high-level understanding.
Sequence
- A sequence is the order of tasks in an algorithm.
IF-THEN-ELSE - is a construct that describes part of an algorithm with two potential outcomes.
CASE - is the construct for conditional statements with multiple outcomes.
FOR - is a command that shows a repeating action or a loop.
REPEAT-UNTIL - construct is a loop that continues until a particular situation
happens.
WHILE - is a looping element that explains the limits of the loop at the beginning of the
statement.
lauta