Docsity

Introduction to Computer, Lecture notes of Computer Science

Toggle sidebar
bg1
Lecture: Introduction to Computer and Its Basic
Components
Introduction to Computing
Lecture Topics:
1. What is a computer?
2. Applications of Computers
3. Types of Computers
4. RAM (Random Access Memory)
5. Input Devices
6. Output Devices
7. Storage Devices
8. CPU (Central Processing Unit)
9. Difference Between Hardware and Software
10. How a Computer Works (Input–Process–Output)
1. What is a computer?
A computer is an electronic device that accepts data, processes that data, stores
information, and produces useful results.
In simple words:
A computer is a machine that takes information from us, works on it according to
instructions, and gives us the result.
Let's understand this with a real-life example.
Example: Student Result System
Suppose a teacher wants to calculate the total marks of a student.
Input: Teacher enters marks (80, 75, 90).
Processing: Computer adds all three numbers.
Output: Computer displays the total (245).
Storage: Computer saves the student's result for future use.
This is how a computer works.
Important characteristics of a computer
1. Speed
A computer performs millions or billions of operations very quickly.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download Introduction to Computer and more Lecture notes Computer Science in PDF only on Docsity!

Lecture: Introduction to Computer and Its Basic

Components

Introduction to Computing

Lecture Topics:

  1. What is a computer?
  2. Applications of Computers
  3. Types of Computers
  4. RAM (Random Access Memory)
  5. Input Devices
  6. Output Devices
  7. Storage Devices
  8. CPU (Central Processing Unit)
  9. Difference Between Hardware and Software
  10. How a Computer Works (Input–Process–Output) 1. What is a computer? A computer is an electronic device that accepts data, processes that data, stores information, and produces useful results. In simple words: A computer is a machine that takes information from us, works on it according to instructions, and gives us the result. Let's understand this with a real-life example. Example: Student Result System Suppose a teacher wants to calculate the total marks of a student.  Input: Teacher enters marks (80, 75, 90).  Processing: Computer adds all three numbers.  Output: Computer displays the total (245).  Storage: Computer saves the student's result for future use. This is how a computer works. **Important characteristics of a computer
  11. Speed** A computer performs millions or billions of operations very quickly.

Example: It can calculate the results of hundreds of students much faster than calculating them manually.

2. Accuracy A computer can produce accurate results when the data and instructions are correct. Example: If we enter 50 + 50, the computer gives 100. 3. Storage A computer can save a large amount of information. Example: We can store thousands of pictures, documents and videos. 4. Automation A computer can perform tasks automatically after receiving instructions. Example: A computer can automatically calculate students' grades using a prepared formula. 5. Multitasking A computer can handle multiple tasks at the same time. Example: We can listen to music, download a file and prepare a Word document at the same time. 6. Diligence A computer does not get tired or bored while performing repetitive tasks. Example: It can calculate the salaries of thousands of employees repeatedly. Important point A computer does not have its own human intelligence or feelings. It follows instructions given through programs. 2. Applications of Computers Applications of computers means the different areas where computers are used to perform useful tasks. Today, computers are used in almost every field of life. 1. Education Computers are used in schools, colleges and universities for teaching and learning. Examples:  Online classes.  Preparing assignments.  Making presentations.  Online examinations.  Research and learning.

 Online meetings.  Instant messaging. Real-life example: A teacher can conduct an online class with students through a video conferencing application.

6. Entertainment Computers provide different types of entertainment. Examples:  Watching movies.  Playing games.  Listening to music.  Editing pictures and videos. 7. Science and Research Scientists use computers to analyse information, perform calculations and conduct research. Real-life example: Weather scientists use computers to analyse weather data and prepare forecasts. 8. Transportation Computers are used to manage transportation systems. Examples:  Airline ticket booking.  Railway reservations.  Traffic management.  Navigation systems. Class question: Can you imagine a bank, hospital or university working without computers? What difficulties would they face? 3. Types of Computers Computers can be classified according to their size, processing power and purpose. There are four major types based on size and processing capacity. 1. Supercomputer A supercomputer is an extremely powerful computer that performs very complex calculations at very high speed. Uses:  Weather forecasting.  Space research.  Scientific experiments.

 Climate research.  Complex simulations. Real-life example: Scientists use supercomputers to study climate changes and predict weather conditions. Easy explanation: A supercomputer is like thousands of powerful computers working together to solve very difficult problems.

2. Mainframe Computer A mainframe is a large and powerful computer designed to process huge amounts of data and support many users at the same time. Uses:  Banks.  Airlines.  Government organizations.  Large business systems. Real-life example: A large bank uses mainframe systems to manage millions of customer accounts and transactions. Easy explanation: A mainframe is designed to handle a large number of users and transactions reliably. 3. Minicomputer A minicomputer is a medium-sized computer that historically provided computing services to multiple users in organizations. Uses:  Industrial environments.  Laboratories.  Department-level computing. Real-life example: A factory may use a midrange computer system to manage production activities. Easy explanation: It is smaller than traditional mainframes and generally less powerful. Note: Minicomputers are mostly a historical classification. Modern servers and midrange systems have replaced many of their traditional roles. 4. Microcomputer A microcomputer is a computer that uses a microprocessor as its CPU and is generally designed for individual use. Examples:  Desktop computer.

1. Temporary Memory RAM stores information while the computer is running. 2. Volatile Memory Volatile means that the stored information is lost when power is turned off. Example: Unsaved work in an application may be lost if the computer suddenly shuts down. 3. Fast Access RAM provides the CPU with quick access to the data and instructions it needs. 4. Multitasking More available RAM can help a computer run several applications smoothly. Types of RAM There are two commonly discussed categories: 1. SRAM (Static RAM)  Very fast memory.  More expensive.  Commonly used in CPU cache memory. 2. DRAM (Dynamic RAM)  Commonly used as the main memory of computers.  Needs continuous refreshing to retain its data.  Usually less expensive than SRAM. What happens when RAM is full? When RAM becomes heavily occupied, the computer may become slow because the operating system may need to move some data between RAM and storage. Real-life example: If your study table is full of books, you have to move some books back to the shelf before placing new ones. RAM vs Storage RAM Storage Temporary working memory Long-term data storage Usually faster Generally slower than RAM Loses data when power is off Keeps data without power Used by currently running programs Stores files and applications Example: 8 GB RAM Example: 512 GB SSD Important: RAM and storage are not the same thing. An 8 GB RAM computer and a 512 GB storage computer have two different types of memory capacity.

5. Input Devices An input device is a hardware component used to enter data and instructions into a computer. In simple words: Input devices help us communicate with the computer and give it information. For example, when you type your name using a keyboard, the keyboard sends that information to the computer. **Types of Input Devices

  1. Keyboard** A keyboard is an input device used to enter text, numbers and symbols into a computer. Uses:  Typing documents.  Entering passwords.  Writing emails.  Entering numbers. Real-life example: A teacher types students' names and marks using a keyboard. Important keys of a keyboard: Key Function Enter Moves to the next line or confirms an action Spacebar Gives space between words Backspace Deletes the character before the cursor Shift Types capital letters or upper symbols Caps Lock Turns capital letter typing on or off Ctrl Used with other keys for shortcuts Delete Deletes selected content or the next character 2. Mouse A mouse is an input device used to control the pointer on the computer screen. Uses:  Selecting files.  Opening folders.  Clicking icons.  Dragging and dropping items.

Keyboard Enters text and numbers Mouse Controls the pointer Scanner Converts paper documents into digital form Microphone Captures sound Webcam Captures images and videos Touchscreen Accepts touch commands Barcode reader Reads product barcodes Ask students: If we want to enter our name into a computer, which input device will we use? Answer: Keyboard.

6. Output Devices An output device is a hardware component that receives processed information from a computer and presents the result to the user. In simple words: Output devices show us the results produced by the computer. For example, when you type a document and see it on the screen, the monitor displays the output. **Types of Output Devices

  1. Monitor** A monitor is an output device that displays text, pictures, videos and other information. Real-life example: When a student opens a PowerPoint presentation, the monitor displays the slides. Important word: Display means showing information visually on a screen. 2. Printer A printer is an output device that produces information on paper. Real-life example: A teacher prints students' examination results using a printer. There are two common types: Inkjet Printer  Uses liquid ink.  Commonly used for home printing.  Can print pictures and documents.

Laser Printer  Uses toner powder and laser-based printing technology.  Commonly used in offices.  Suitable for fast document printing.

3. Speakers Speakers are output devices that produce sound from a computer. Real-life example: When you play a video on your computer, speakers produce its audio. 4. Headphones Headphones are output devices that allow users to listen to sound privately. Real-life example: Students use headphones during online lectures so they can hear the teacher without disturbing others. 5. Projector A projector displays computer images and videos on a large screen or wall. Real-life example: A teacher connects a laptop to a projector to display lecture slides to the whole class. Types of Output Output can be presented in different forms: Output Type Meaning Example Visual Information shown on a screen Monitor Printed Information printed on paper Printer Audio Information presented as sound Speakers Difference Between Input and Output Devices Input Devices Output Devices Send data to the computer. Receive results from the computer. Used to enter information. Used to display or present information. Keyboard Monitor Mouse Printer Microphone Speakers Scanner Projector Important concept: Some devices can perform both input and output functions. Example: A touchscreen displays information (output) and accepts touch commands (input).

Cache is a small, very fast memory that stores frequently needed data and instructions so the CPU can access them quickly. Real-life example: Imagine you are studying and repeatedly using the same book. Instead of putting it back on the bookshelf every time, you keep it near you. Similarly, cache keeps frequently needed information close to the CPU. B. Secondary Storage Secondary storage is used to store data and programs for a long period, even when the computer is turned off. Examples:

1. Hard Disk Drive (HDD) HDD stands for Hard Disk Drive. It is a storage device that uses rotating magnetic disks to store data. Features:  Stores large amounts of data.  Commonly used in desktop computers.  Usually cheaper per GB than SSDs.  Has moving mechanical parts. Real-life example: A computer uses an HDD to save movies, documents, pictures and software. 2. Solid State Drive (SSD) SSD stands for Solid State Drive. It is a storage device that uses flash memory to store data. It does not have the moving mechanical disks found in an HDD. Features:  Faster than traditional HDDs in many everyday tasks.  No moving mechanical parts.  Generally more resistant to physical shock.  Commonly used in modern laptops. Real-life example: When a laptop has an SSD, it can usually start the operating system and open applications faster than a similar laptop with an HDD. 3. USB Flash Drive A USB flash drive is a small portable storage device used to save and transfer data. Real-life example: A teacher saves lecture slides on a USB drive and takes them to another classroom computer.

4. Memory Card A memory card is a small storage device commonly used in cameras, smartphones and other electronic devices. Real-life example: A digital camera uses an SD card to save photographs. 5. Optical Discs Optical discs store data using laser technology. Examples:  CD (Compact Disc).  DVD (Digital Versatile Disc).  Blu-ray Disc. Real-life example: DVDs were commonly used to store movies, videos and software. HDD vs SSD HDD SSD Uses rotating disks. Uses flash memory. Has moving mechanical parts. Has no moving mechanical parts. Generally slower. Generally faster. Usually cheaper per GB. Usually more expensive per GB. Can make mechanical noise. Operates silently. Storage Units Students should understand how computer storage is measured. Unit Meaning Bit Smallest unit of digital data Byte 8 bits KB Kilobyte MB Megabyte GB Gigabyte TB Terabyte A simplified classroom conversion:  1 Byte = 8 Bits  1 KB = 1024 Bytes  1 MB = 1024 KB

CPU can compare values and make logical decisions according to program instructions. Example: A program checks whether a student's marks are greater than or equal to 50. Main Components of CPU The CPU has three important components:

1. ALU (Arithmetic Logic Unit) ALU stands for Arithmetic Logic Unit. It performs mathematical calculations and logical comparisons. Arithmetic Operations:  Addition.  Subtraction.  Multiplication.  Division. Logical Operations:  Greater than.  Less than.  Equal to. Real-life example: Suppose a teacher enters:  English = 80  Mathematics = 90 The ALU helps perform the addition: 80 + 90 = 170 It can also compare marks to determine which value is greater. Easy words: ALU is the calculator part of the CPU. 2. CU (Control Unit) CU stands for Control Unit. The Control Unit manages and coordinates the activities of different computer components. It controls how instructions are carried out and how data moves between the CPU, memory and other components. Real-life example: Imagine a traffic police officer controlling traffic at a busy intersection. The officer directs vehicles and controls their movement. Similarly, the Control Unit coordinates different computer operations.

Easy words: CU is the manager of the CPU.

3. Registers Registers are very small and extremely fast storage locations inside the CPU. They temporarily hold data, instructions and results that the CPU needs immediately. Real-life example: Imagine a teacher solving a mathematics problem on a whiteboard. The teacher keeps the current numbers in mind while solving the problem. Similarly, registers hold the information the CPU is currently working with. Easy words: Registers are the CPU's immediate working storage. Comparison of CPU Components Component Main Function Easy Example ALU Performs calculations and comparisons Calculator CU Controls and coordinates operations Manager Registers Hold immediately needed data Working notes How Does CPU Work? The CPU generally works through three main stages: 1. Fetch CPU gets an instruction from memory. 2. Decode CPU understands what the instruction means. 3. Execute CPU performs the required operation. This process is called the Fetch–Decode–Execute Cycle. Example: Adding Two Numbers Suppose the computer needs to calculate 10 + 20. 1. Fetch: CPU gets the required instructions and data. 2. Decode: CPU understands that it needs to perform addition. 3. Execute: ALU performs the addition. 4. Result: The answer 30 becomes available for the program to display or store. Difficult words:  Fetch = To get something.  Decode = To understand an instruction.

 Windows.  Linux.  macOS.  Device drivers. Real-life example: Windows manages computer resources and helps applications run.

2. Application Software Application software is designed to help users perform specific tasks. Examples:  MS Word for writing documents.  Excel for calculations.  PowerPoint for presentations.  Chrome for browsing the internet. Real-life example: A teacher uses MS Word to prepare examination papers. Difference Between Hardware and Software Hardware Software Physical parts of a computer. Programs and instructions. Can be touched. Cannot be physically touched. Has a physical form. Has no physical form. Example: Keyboard. Example: MS Word. Example: Monitor. Example: Windows. Important concept: Hardware and software depend on each other. Hardware needs software instructions to perform useful tasks, while software needs hardware to run. 10. How Does a Computer Work? (Input–Process–Output) This is one of the most important concepts in Introduction to Computing. A computer works through three basic stages: 1. Input. 2. Processing. 3. Output. It can also store information for future use. Working of a Computer INPUT Data entered using keyboard, mouse or scanner.

PROCESS

CPU processes data according to instructions. OUTPUT Monitor displays the result or printer prints it. STORAGE Results and information can be saved for future use. Real-Life Example: Calculating Student Marks Suppose a teacher wants to calculate the total marks of a student. Step 1: Input Teacher enters:English = 80Mathematics = 90Computer = 85 Step 2: Processing CPU performs the addition: 80 + 90 + 85 = 255 Step 3: Output The monitor displays: Total Marks = 255 Step 4: Storage The result can be saved in a file or database for future use. Another Real-Life Example: ATM Stage ATM Example Input User enters PIN and withdrawal amount. Processing ATM system checks the information and processes the request. Output ATM displays the result and provides cash if approved. Storage Transaction information is recorded. This shows that the input–process–output cycle is used in many real-life systems.

11. How All Computer Components Work Together Now let's connect all the concepts. Suppose you are preparing an assignment on your computer. Here is what happens: