Docsity

Introduction to Computer Science: A Comprehensive Overview, Lecture notes of Computer Science

Partial preview of the text

Download Introduction to Computer Science: A Comprehensive Overview and more Lecture notes Computer Science in PDF only on Docsity!

NATIONAL OPEN UNIVERSITY OF NIGERIA

SCHOOL OF SCIENCE AND TECHNOLOGY

COURSE CODE: AGE 202

COURSE CODE: INTRODUCTION TO COMPUTER

SCIENCE

ii

Unit 3 Computer Applications in Government, Science,

MAIN

  • Module 1 Understanding the Computer …………………… CONTENTS PAGE
  • Unit 1 Basic Concepts……………………………….…..…
  • Unit 2 A Historical Overview of the Computer……………
  • Unit 3 Classification of Computers…………………….…..
  • Module 2 Computer Hardware …………………………….
  • Unit 1 Hardware Components (1)………………………...
  • Unit 2 Hardware Components (2) – Peripheral Devices….
  • Unit 3 Auxiliary Equipment…………………………....….
  • Module 3 Computer Software …………………………..….
  • Unit 1 Computer Software (1)………………………….…
  • Unit 2 Computer Software (2)…………………………..…
  • Module 4 Programming the Computer …………………….
  • Unit 1 Computer Languages……………………………....
  • Unit 2 Basic Principles of Computer Programming…….....
  • Unit 3 Flowcharts and Algorithms……………………….…
    • Visual Basic ………………………………………. Module 5 Computer Application Programming Using
  • Unit 1 Programming in Visual Basic (1)……………...….
  • Unit 2 Visual Basic Project Window…………………….
  • Unit 3 Creating Menu Applications……………………...
  • Unit 4 Analysing Visual Basic Data…………………..….
  • Module 6 Areas of Application of Computers …………..….
  • Unit 1 Application of Computers in Education………..….
  • Unit 2 Computer Applications in Business and Industry - Recreation and the Military …………………………. Engineering, Transport, Communications,
  • Module 7 Threats to the Computer ………………………...…
  • Unit 1 Computer Virus…………………………………..…

iv

National Open University of Nigeria Headquarters 14/16 Ahmadu Bello Way Victoria Island, Lagos

Abuja Office: 5, Dar es Salaam Street Off Aminu Kano Crescent Wuse II, Abuja

e-mail: [email protected] URL: www.nou.edu.ng

Published by National Open University of Nigeria

Printed 2008

Reprinted 2014

ISBN: 978-058-258-

All Rights Reserved

v

CONTENTS PAGE

Introduction …………………………………………....... iv Course Contents………………………………………..... iv Course Aims……………………………………………... iv Course Objectives……………………………………..… v Working through the Course……………………………. v Course Materials………………………………………… v Study Units……………………………………………… vi Textbooks and References………………………………. viii Assessment …………………………….………………... x Tutor-Marked Assignment……………………………… x Final Examination and Grading………………………… x Summary………………………………………………… x

AGE 202 MODULE 7

INTRODUCTION

The computer is fast becoming the universal machine of the twenty-first century. Early computers were large in size and too expensive to be owned by individuals. Thus they were confined to the laboratories and few research institutes. They could only be programmed by computer engineers. The basic applications were confined to undertaking complex calculations in science and engineering. Today, the computer is no longer confined to the laboratory. Computers, and indeed, computing have become embedded in almost every item we use. Computing is fast becoming ubiquitous. Its application transcends science, engineering, communication, space science, aviation, financial institutions, social sciences, humanities, the military, transportation, manufacturing, the extractive industries to mention but a few.

Also, early computers were designed to accept numeric data, but over the years computers have been developed to accept not only numeric data, but we also able to process multimedia data – text, audio and video. The combination of computer technology and communications technology gave birth to what is now widely known as Information and Communication Technologies (ICT). ICT has changed the face of virtually all fields of human endeavour, ranging from science to engineering, commerce and industry, international trade, transportation, culture and tourism, education and research, among others. Nowadays, literacy is not only measured by the ability to read and write, but also includes computer literacy. The wave of globlisation which has been largely propelled by the collapse of barriers of distance between nations and peoples in the world as a result of ICT, makes it imperative for the modern man to have at least the basic knowledge of computers. This course is meant to introduce students to the historical evolution of computers, the basic components of computers, and some of its applications in society.

COURSE CONTENT

This Course Guide tells you what to expect from reading this material. The study of computers is not only of academic importance but is also a universal tool of the twenty-first century. This course, therefore, is a systematic approach to the understanding of computers and their applications.

COURSE AIMS

The aim of this course is to provide students with the basic understanding of the computer and its applications in everyday life.

AGE 202 INTRODUCTION TO COMPUTER SCIENCE

COURSE OBJECTIVES

The specific objectives of this course are to:

 Provide basic understanding of the historical evolution of the computer, types of computers and the classification of computers.  Enable the students to understand the components of the computer – the hardware and software.  Help students to identify the different categories of computer software and their uses.  Introduce students to computer programming with emphasis on the building blocks and stages of programming and writing of computer programs using visual basic.  Enable students to identify and appreciate the areas of application of computers in society, thereby stimulating their thought to regard the computer as a tool for human use rather than a master.  Create awareness at the early stage of the study of computers about the potential threats that computer viruses pose to the smooth operations of computers.

WORKING THROUGH THE COURSE

This course requires that you spend a lot of time to read. The material though presented in simple language, coherent and in logical sequence, requires diligent study. The material is comprehensive and would require full commitment and dedication to study on the part of the student. You are, therefore, advised to avail yourself the opportunity of attending the tutorial sessions where you would have the opportunity of comparing knowledge with your peers.

COURSE MATERIALS

You will be provided with the following materials:

 Course Guide  Modules  Study units  List of recommended textbooks which will serve as compliments to the course material

AGE 202 INTRODUCTION TO COMPUTER SCIENCE

Unit 1 Computer Virus

Synopses of the Study Units

Module 1 Unit 1: This unit presents the definition of the computer, basic understanding of data processing, the concept of data and information, methods of data processing and the characteristics of a computer.

Module 1 Unit 2 : It gives the brief history of the computer technology, evolution of computer and the generations of computers.

Module 1 Unit 3 : You are introduced to the classification of computers. This involves classification based on size, type of signal and purpose. At the end of the unit you will be able to differentiate between one classes of computer from the others.

Module 2 Unit 1 : In this unit you will be familiarised with hardware components of the computer. This will enable you to appreciate the importance of each component to the overall smooth operation of the computer.

Module 2 Unit 2: in this unit, you are introduced to the peripheral devices. Also, you will be able to get deeper understanding of the functions of the input and output units. The knowledge acquired in this unit will give you a guide on the type of input and output units suitable to a particular computing environment.

Module 2 Unit 3: The unit discusses the computer auxiliary equipment such as the air conditioner, voltage stabiliser and the Uninterruptible Power Supply System (UPS).

Module 3 Unit 1: This unit introduces the computer software in some detail. You will learn about the system software, language translators such as compliers and the utility software.

Module 3 Unit 2: This unit builds on the knowledge acquired in the previous unit by discussing various types of language translators, utility programs and application programs in greater detail.

Module 4 Unit 1: In this unit you will learn about computer programming languages such as low level language (machine language and assemblers) and the high level languages.

AGE 202 MODULE 7

Module 4 Unit 2 : You will be introduced to computer programming in this unit. Topics covered include the concept of problem solving with computers, principles of programming and stages of programming.

Module 4 Unit 3: This unit advances further on unit 10 by discussing the use of flowcharts and algorithms in computer programming. These two concepts are essential ingredients to the writing of well structured computer programs.

Module 5 Unit 1: This unit begins our discussions on programming the computer in Visual Basic. Units 12 through 15 are dedicated to this subject. The discussions are practical in nature. The materials presented in these four units are in the form of hands-on-practice. You will benefit more and, in fact, enjoy it better if you can try them using a personal computer. The steps involved are simple and explicit. By the time you run through the four units you should be able to write simple visual basic application programs. Specifically, unit 12 introduces the concept of working with graphical objects, general visual basic programming concepts, how to design a project from application wizard, and how to use the toolbox.

Module 5 Unit 2: In this unit you will learn about the visual basic project window. This will enable you to gain more mastery of the visual basic programming environment.

Module 5 Unit 3: In this unit you will learn how to create menu applications. The menu system is one of the high points of object oriented programming languages. It makes the application user-friendly and interactive. This unit, therefore, equips you with the principles and steps involved in creating visual basic applications with menu.

Module 5 Unit 4: This unit concludes the discussions on programming computers in visual basic. Specifically, this unit takes you through the analysis of visual basic data. If you have truly followed all the principles and steps discussed in the three previous units you should at this stage be able to plan, design, code and implement a simple but complete visual basic application.

Module 6 Unit 1: This unit begins the series of presentations on the areas of application of computers in society. The main aim is to identify some areas of application to society at large. It is also meant to enlighten you on the various job opportunities for computer literate persons in the

AGE 202 MODULE 7

Richard H. Austin and Lillian Cassel (1986). Computers in Focus. Monterey, California: Books/Cole Publication Company.

Tunji and Dokun (1993). Data Processing: Principles and Concepts. Lagos: Informatics Books.

In addition to these books, you can browse on the Internet to get additional materials on the topics covered in this course.

ASSESSMENT

There are two components of assessment for this course. The Tutor - Marked Assignment (TMA), and the end of course examination.

TUTOR-MARKED ASSIGNMENT

The TMA is the continuous assessment component of your course. It accounts for 30% of the total score. You will be given six (6) TMAs to answer. They must be answered before you are allowed to sit for the end of course examination. The TMAs would be given to you by your facilitators at the appropriate time during the course.

FINAL EXAMINATION AND GRADING

This examination concludes the assessment for the course. It constitutes 70% of the whole course. You will be informed of the time for the examination. It may or may not coincide with the university semester examination.

SUMMARY

This course intends to introduce you to the basic understanding of the computer and its application in various areas of human endeavour. By the time you complete studying this course, you should be able to answer basic questions such as:

 What is the computer?  What are the evolutionary trends in the development of the computer?  What are the different components of computers?  What are the different categories of computer software?  What are the areas of application of computers in society?  How could you use the computer to create user-friendly, menu- driven and interactive applications?

AGE 202 INTRODUCTION TO COMPUTER SCIENCE

 What are the threats to the smooth operation of the computer?  How can you detect, prevent and cure computer viruses?

We wish you success in this course. We do hope that this course will give you a good head start in the understanding and use of computers.

Best wishes as you enjoy the course.

AGE 202 INTRODUCTION TO COMPUTER SCIENCE

2.0 OBJECTIVES

At the end of this unit you should be able to:

 define the computer  explain data processing  explain data and information  identify methods of data processing  mention the characteristics of a computer.

3.0 MAIN CONTENT

3.1 Definitions

Computer : A computer is basically defined as a tool or machine used for processing data to give required information. It is capable of:

 taking input data through the keyboard (input unit),  storing the input data in a diskette, hard disk or other medium,  processing it in the central processing unit (CPU) and  giving out the result (output) on the screen or the Visual Display Unit (VDU).

(DATA) (INFORMATION)

Fig. 1: A schematic diagram to define a computer

Data: The term data refers to facts about a person, object or place, e.g. name, age, complexion, school, class, height etc.

Information: This is referred to as processed data or a meaningful statement, e.g. net pay of workers, examination results of students, list of successful candidates in an examination or interview etc.

3.2 Methods of Data Processing

The following are the three major methods that have been widely used for data processing over the years:

 The Manual method,

INPUT PROCESSING OUTPUT

AGE 202 MODULE 7

 The Mechanical method and  The Computer method.

The Manual Method

The manual method of data processing involves the use of chalk, wall, pen, pencil and the like. These devices, machines or tools facilitate human efforts in recording, classifying, manipulating, sorting and presenting data or information. The manual data processing operations entail considerable manual efforts. Thus, the manual method is cumbersome, tiresome, boring, frustrating and time consuming. Furthermore, the processing of data by the manual method is likely to be affected by human errors. When there are errors, then the reliability, accuracy, neatness, tidiness, and validity of the data would be in doubt. The manual method does not allow for the processing of large volumes of data on a regular and timely basis.

The Mechanical Method

The mechanical method of data processing involves the use of machines such as the typewriter, roneo machines, adding machines and the like. These machines facilitate human efforts in recording, classifying, manipulating, sorting and presenting data or information. The mechanical operations are basically routine in nature. There is virtually no creative thinking. Mechanical operations are noisy, hazardous, error prone and untidy. The mechanical method does not allow for the processing of large volumes of data continuously and timely.

The Computer Method

The computer method of carrying out data processing has the following major features:

 Data can be steadily and continuously processed  The operations are practically not noisy  There is a store where data and instructions can be stored temporarily and permanent.  Errors can be easily and neatly corrected.  Output reports are usually very neat, decent and can be produced in various forms such as adding graphs, diagrams and pictures etc.  Accuracy and reliability are highly enhanced  Below are further attributes of a computer which make an indispensable tool for humans.

AGE 202 MODULE 7

The output unit is made up of those media through which data, instructions for processing the data (program), and the result of the processing operation are displayed for the user to see. Examples of the output unit are the monitor (Visual Display Unit) and the printer.

Software

Computer software is the series of instructions that enable the computer to perform a task or group of tasks. A program is made up of a group of instructions to perform a task. Series of programs linked together make up software. Computer programs could be categorised into system software, utility software, and application programs.

Computer Users

Computer users are the different categories of personnel that operate the computer. We have expert users and casual users. The expert users could be further categorised into computer engineers, computer programmers and computer operators.

The Computing Environment

The computing environment includes the building housing the other elements of the computing system namely the computer and the users, the furniture, auxiliary devices such as the voltage stabiliser, the Uninterruptible Power Supply System (UPS), the fans, the air conditioners etc. The schematic diagram of the computing system is presented in Fig. 2a. to Fig. 2d.

The computing system

Hardware Software Users The computing environment

Fig 2a: A Schematic diagram of the computing system

AGE 202 INTRODUCTION TO COMPUTER SCIENCE

Software

System software Utility software Application software

Operating system

Anti virus

Scandisk Word processor

Spread sheet

Statistical packages

Fig. 2b: Computer software

Computer users

Expert users End users Casual users

System engineers

Programmers Computer operators

Data entry clerks

Fig. 2c: Computer users