unit 1

Computers are almost everywhere today, but this was not always the case. Here is a brief timeline of computers and computing.

  • 1940's-1950's -The first computers began to be built. These were made with very large components and took up entire rooms and generated a lot of heat.
  • 1971- The microprocessor was invented, which allowed engineers to design 'small' computers that would fit in a cabinet, but these were not affordable to small businesses or for personal use.
  • 1970's- Home computers were sold in kits that had to be assembled. Often they were attached to a television instead of a monitor. These computers were considered to be a hobby.
  • 1981- The PC (personal computer) was introduced by IBM (International Business Machines). These were the first computers that were affordable to small business, at about $1500. As a comparison, the cost of a new car was less than $9000.

So many of our daily activities have been changed by computers and smart devices, including:

  • Travel

  • Shopping

  • Education

  • Entertainment

    Computers are made of several different components, like the motherboard, mouse, memory, monitor, etc. These parts can be purchased separately, then assembled to make a computer. In this lesson, we will introduce different computer components. Even though laptop and desktop computers may look different, they still have many of the same components.

    Each of the items discussed below are considered hardware. Hardware consists of physical devices, like the ones shown below. Hardware does physical and electronic tasks, like displaying images, storing and retrieving data, printing, connecting to a network. By contrast, software provides the instructions to do these tasks.

CPU (processor)The Central Processing Unit (CPU) is the brain of the computer. It makes all of the decisions by following software instructions. It is sometimes just called the processor. It is a single chip and it is installed on the motherboard.The processor only runs one instruction at a time.The speed at which the processor runs is also called the 'clock speed'. It is measured in hertz, which is one cycle per second. Megahertz is a million cycles per second. Gigahertz is a billion cycles per second. For example 1.5GHz means 1.5 gigahertz. That is one and a half billion cycles per second.The processor only understands machine language (also called 'machine code').  Each type of processor has its own machine code.Increasing a computer's clock speed can make the CPU run faster, but that will cause the CPU to get hotter and may damage it.
MotherboardThe motherboard is inside of the computer case. It is connected to a power supply that is also inside of the case. The motherboard has electronic circuits that support the CPU chip. It also has slots where the memory cards can be plugged in. Typically, all communication between devices in the computer (like the hard drive, the monitor, the keyboard, and other devices, takes place on the motherboard. Some motherboards also have a graphics controller to run the monitor, some have a slot that allows the user to install a separate graphics controller.
MemoryAll information and instructions are stored in memory before they are retrieved by the CPU. Memory is the working space for programs that are running on the computer. When the computer is turned off, anything stored in memory is lost. Only information stored on the hard drive is saved.There are two main types of memory: ROM and RAM.ROMThis is 'read only memory.'ROM does not lose data when the power is turned off, but it also does not store new information.The information stored in ROM is instructions to tell the computer what to do when it first starts running.There is only enough ROM in a computer to hold the start-up instructions.RAMThis is 'random access memory.'RAM cards are inserted into the motherboard. If there are empty slots, more memory can be addedIt stores all of the information and instructions for the programs that the computer is currently running. It loses all its data when the power is turned off.Its capacity to store data is measured in bytes. A byte is the smallest piece of information. A megabyte is a million bytes. A gigabyte is a billion bytes. A terabyte is a trillion bytes.When RAM can not hold any more data, some of it is moved to the hard drive. This is known as 'paging'.RAM is much faster at storing and retrieving data than the hard drive, but it is also more expensive.Memory Card
Hard DriveHard drives typically have much more storage space than memory. The hard drive retains information even if power is turned off. Hard drives are usually inside of the computer case, but external hard drives may be added for additional storage. There may be more than one hard drive.
  • Hard drive storage capacity is measured in megabytes (MB), gigabytes (GB), and terabytes (TB).
  • The hard drive is slower than memory at storing and retrieving data, but it is cheaper.
  • The CPU does not use data directly from the hard drive, it first retrieves it into the RAM.
  • \
PeripheralsPeripheral devices are in generally divided into three categories.Input devices include mouse and keyboard.Output devices include printers and monitors.Storage devices are hard drives and flash drives.
PeripheralsPeripheral devices are in generally divided into three categories.Input devices include mouse and keyboard.Output devices include printers and monitors.Storage devices are hard drives and flash drives.

Computer hardware would not be very useful by itself. Software contains instructions that tell the hardware what to do. The term 'software' covers a wide range of products. We will explain three categories:

  • Operating Systems
  • Software Applications
  • Computer Languages

Employment in the software industry has grown much faster than most other fields. In this course, we will learn computer programming, one of the essential software skills. Another goal of this course is to help you find out if you like programming.

Operating SystemUsually, this is just called the 'OS'. This is the software that manages the hardware of the computer. For example, if you print something, the OS is the software that sends information to the printer. This is true even if you are using a word processor to create a document. The word processing software must make a request to the OS to do the printing. Examples of OS's include Windows, Linux, and macOS.The operating system manages all of the computer's resources, including memory, hard drive, CPU, and peripherals.The OS gives each program an area in memory to use.The OS schedules CPU time for each program that is running on the computer.The OS handles requests from programs to get access to computer resources, like memory and peripherals.
Software ApplicationsFrequently, these are just called 'applications' or just 'apps.' This category contains a wide variety of software, including games, databases, word processors, digital spreadsheets, web browsers, and almost anything else that runs on a computing device. Applications run 'on top' of the OS, meaning that they do not control the computer directly, but they make requests for the computer to give access to memory, hard drive, and other computer resources. Google Chrome, Microsoft Excel, and Call of Duty are all applications.Applications can not access computer resources directly, they make requests to the OSIt may seem like many applications are running at the same time, but the OS schedules them one at a time to run on the CPU, then re-schedules more time for each one, based on priority.
Computer LanguagesThis type of software is the foundation of creating, or 'writing' new applications or OS's. Computer languages may be created to solve problems in a particular area. For instance, the language 'C' was developed to be used with the Unix operating system. The language 'perl' was originally developed to process reports. Most languages have common features, including ways to make decisions, ways to repeat a process, and ways to store and manipulate information. We will be learning the language called 'Java.'The CPU does not understand various computer languages, it only understands instructions in 'machine language'.Code written in a computer language must be converted into 'machine language', also known as 'machine code.'There are two basic types languages: compiled and interpreted.CompiledPrograms written in these types of languages are 'compiled' into machine code before they are run (also known as 'executed').Compiled programs run faster.A program is compiled to make machine code for a specific type of CPU. It will not run on a different type of CPU because it has a different set of machine code.Programs that have already been compiled are known as 'executables.'C and C++ are both compiled languages.InterpretedPrograms written in these types of languages are 'interpreted' one line at a time into machine code, each time they are run.Interpreted programs tend to run more slowly than compiled languages.Programs that are interpreted can be moved to computers with a different CPU because the conversion to machine code does not happen until the file is executed,Perl and JavaScript are interpreted languages.Some languages are both compiled and interpreted. Some offer options to do one or the other. Java is one such language that is compiled and interpreted.
The Boot-Up ProcessWhen a computer first starts up, it looks for instructions in the ROM (read-only memory). Following these first instructions is known as 'boot-up'. Instructions in the ROM will tell the computer where the operating system should be loaded from. Usually, this is on the hard drive,Some boot-up sequences allow the computer to load the OS from a flash drive.

Kilobyte - Thousands \n Megabyte - Millions \n Gigabyte - Billions \n Terabyte - Trillions

Item Is it a peripheral? Y/N Is it input, output, both, or neither? \n CPU Not peripheral neither \n Hard Drive peripheral storage \n Memory Not peripheral storage \n Monitor peripheral Output, unless it is a touchscreen \n Mouse peripheral input \n Printer peripheral output

Device Does it hold data when \n power is turned off? Y/N \n Is this the quickest to \n access data? \n When memory is too full, does data \n get stored here until it is needed? \n Y/N \n Does this store instruct \n be used when the comp \n on? Y/N \n Hard Drive Y N Y Y \n RAM N Y N N \n ROM Y Y N Y

Characteristic Operating System Computer Language Software Application \n Moves data from hard drive to \n memory? Y / N Y N N \n Used as a basic building block to \n create programs? Y / N N Y N \n Might be used to browse the \n internet? Y / N N N Y \n Schedules time for instructions to \n run on the CPU? Y / N Y N N \n Must be compiled or interpreted to \n run? Y / N N Y N

Which software manages computer resources? operating system,only the OS has direct access to computer resources. All other applications must make requests through the OS.

Where is data stored when the CPU reads it? memory,data is moved to the memory before the CPU reads it. This makes execution faster because the hard drive is much slower to access than memory.

What is a printer considered to be?   peripheral,other examples of peripherals are hard drive, mouse, keyboard, monitor, etc.

What is Java considered to be?computer language, other examples of computer languages are Perl, Python, JavaScript, C++, etc.#

What is Microsoft Windows considered to be?   operating system,other operating systems would be mac)S, Linux, Unix, etc.

What does a programming language do? It is used to create new software applications and operating systems,all apps and operating systems are built using computer languages.

Which device can store data when the power is turned off? hard drive,

How does the computer execute instructions?The CPU executes one instruction at a time, but it does it very quickly,The CPU only reads and executes one instruction at a time. Multi-core processors have more than one CPU, but each CPU can only execute one instruction at a time.

Choose the storage capacity from least to most-kilobyte, megabyte, gigabyte, terabyte

kilo = thousand

mega = million

giga = billion

tera = trillion

Which of the following is true? The CPU is installed in the motherboard,The motherboard provides a secure location to install the CPU and the memory. In addition to that, cables to all of the peripherals are plugged into the motherboard.

\n