<< Chapter < Page Chapter >> Page >

General background information

An overview of computer programming

I recognize that some of you may not be ready for the kind of technical detail that I will provide in this section. If so, feel free to skipahead to the section titled Preview of the Scratch program . Just remember that this material is here waiting for you to come back and studyit when you are ready.

Not especially difficult

Computer programming is not especially difficult. However, it does require an aptitude for solving problems. In fact, a computer program is usually a modelfor a solution to someone's problem.

One step at a time

If you can learn to program a Digital Video Recorder (DVR), you can probably also learn to program a computer. Of course, a computer is more complicated than a DVR, so there is moreto learn. The important thing is to take the learning process in deliberate steps making certain that you understand each step before moving on to the nextone.

The hard work is often done for us

Fortunately, when we write programs using a high-level programming language such as Scratch, much of the hard work is done for us behind thescenes. For example, we don't have to perform the small incremental steps that are required to divide one number by another number.

As programmers, we are more like conductors than musicians. The various parts of the computer represent the musicians. We tell them what to play, and when toplay it, and if we do our job well, we produce a solution to someone's problem.

Memory

All computers contain memory of one type or another. When we speak of human memory, we are usually speaking of the things that the human remembers.However, when we speak of computer memory, we are usually speaking of physical devices where data is stored for later retrieval. Most modern computers containmemory of a type that is often referred to as RAM (more on RAM later) .

All data is stored in a computer as numeric values. Computer programs do what they do by executing a series of operations on the numeric data.

Numeric data Even the text in this module is stored as numeric data in your computer. For example, theupper-case character A is commonly represented by the numeric value 65.

The operations that are performed on the numeric data generally consist of calculations and comparisons. It is the order and the pattern of those operations that distinguishes one computerprogram from another.

Random access versus sequential memory

The reason the memory in most modern computers is called random access memory (RAM) is that it can be accessed in any order. Some types of memory, such as a magnetic tape, can only be accessed in sequential order. (Yes, I did use computers with magnetic tape memory in my younger days during the sixties andseventies.)

Sequential access means that to get a piece of data that is stored deep inside the memory, it is necessary to start at the beginning and examine every piece of data until the correct one is found. Thisis typically a slow process.

Combination random/sequential memory

Other types of memory, such as disks provide a combination of sequential and random access. For example, the data on a disk is stored in tracks that formconcentric circles on the disk. The individual tracks can be accessed in random order, but the data within a track must be accessed sequentially starting at aspecific point on the track. While faster than magnetic tape, even this process is usually slower than true random access memory.

Questions & Answers

how does Neisseria cause meningitis
Nyibol Reply
what is microbiologist
Muhammad Reply
what is errata
Muhammad
is the branch of biology that deals with the study of microorganisms.
Ntefuni Reply
What is microbiology
Mercy Reply
studies of microbes
Louisiaste
when we takee the specimen which lumbar,spin,
Ziyad Reply
How bacteria create energy to survive?
Muhamad Reply
Bacteria doesn't produce energy they are dependent upon their substrate in case of lack of nutrients they are able to make spores which helps them to sustain in harsh environments
_Adnan
But not all bacteria make spores, l mean Eukaryotic cells have Mitochondria which acts as powerhouse for them, since bacteria don't have it, what is the substitution for it?
Muhamad
they make spores
Louisiaste
what is sporadic nd endemic, epidemic
Aminu Reply
the significance of food webs for disease transmission
Abreham
food webs brings about an infection as an individual depends on number of diseased foods or carriers dully.
Mark
explain assimilatory nitrate reduction
Esinniobiwa Reply
Assimilatory nitrate reduction is a process that occurs in some microorganisms, such as bacteria and archaea, in which nitrate (NO3-) is reduced to nitrite (NO2-), and then further reduced to ammonia (NH3).
Elkana
This process is called assimilatory nitrate reduction because the nitrogen that is produced is incorporated in the cells of microorganisms where it can be used in the synthesis of amino acids and other nitrogen products
Elkana
Examples of thermophilic organisms
Shu Reply
Give Examples of thermophilic organisms
Shu
advantages of normal Flora to the host
Micheal Reply
Prevent foreign microbes to the host
Abubakar
they provide healthier benefits to their hosts
ayesha
They are friends to host only when Host immune system is strong and become enemies when the host immune system is weakened . very bad relationship!
Mark
what is cell
faisal Reply
cell is the smallest unit of life
Fauziya
cell is the smallest unit of life
Akanni
ok
Innocent
cell is the structural and functional unit of life
Hasan
is the fundamental units of Life
Musa
what are emergency diseases
Micheal Reply
There are nothing like emergency disease but there are some common medical emergency which can occur simultaneously like Bleeding,heart attack,Breathing difficulties,severe pain heart stock.Hope you will get my point .Have a nice day ❣️
_Adnan
define infection ,prevention and control
Innocent
I think infection prevention and control is the avoidance of all things we do that gives out break of infections and promotion of health practices that promote life
Lubega
Heyy Lubega hussein where are u from?
_Adnan
en français
Adama
which site have a normal flora
ESTHER Reply
Many sites of the body have it Skin Nasal cavity Oral cavity Gastro intestinal tract
Safaa
skin
Asiina
skin,Oral,Nasal,GIt
Sadik
How can Commensal can Bacteria change into pathogen?
Sadik
How can Commensal Bacteria change into pathogen?
Sadik
all
Tesfaye
by fussion
Asiina
what are the advantages of normal Flora to the host
Micheal
what are the ways of control and prevention of nosocomial infection in the hospital
Micheal
what is inflammation
Shelly Reply
part of a tissue or an organ being wounded or bruised.
Wilfred
what term is used to name and classify microorganisms?
Micheal Reply
Binomial nomenclature
adeolu
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Teaching beginners to code. OpenStax CNX. May 27, 2013 Download for free at http://cnx.org/content/col11498/1.20
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Teaching beginners to code' conversation and receive update notifications?

Ask