100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

Class notes Programing

Rating
-
Sold
-
Pages
4
Uploaded on
08-12-2023
Written in
2023/2024

Class notes Programing uts all about programing Concepts

Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Course

Document information

Uploaded on
December 8, 2023
Number of pages
4
Written in
2023/2024
Type
Class notes
Professor(s)
Vino
Contains
All classes

Subjects

Content preview

Basic Programming Concepts
Objectives


By the end of this reading you should be able to answer the following questions:

What are the three concepts fundamental to programming, regardless of the language?
Understand when each of these concepts might apply when writing a program.
Name two strategies that can be helpful in planning your program.

● What is Programming?
In the most basic sense, programming means creating a set of instructions for completing
some specific task. In this sense, many of our daily activities can be described as
programmatic—they involve specific steps that often follow a set order. For instance, if you
get home from school and want to make yourself a peanut butter and jelly sandwich, you
know that you will have to get two slices of bread, butter each piece, spread peanut butter on
one slice and jelly on the other, and finally put the two together. If you leave out a step you
might end up with something other than a PB&J sandwich. If you do things out of
order—say, you put the slices of bread together before you spread the peanut butter—you'll
end up with a mess.

● Apple pie recipe
In this general sense, our lives are filled with programs and programming. When you make
your bed you follow certain steps in a programmatic fashion. The steps must be the correct
ones and they must be in the correct order. If you want to make your grandmother's favorite
apple pie, you would ask her how to do it, and she would most likely send you a program—a
recipe. A program is therefore also useful for replicating a product even if you are far
removed from the original creator of the product.

But programs are not only useful for reproducing products. Humans—even young
children—have a remarkable capacity for mastering programmatic processes and behaviors.
Take the familiar children's game, One Potato, Two Potato. This chant is a common way for
children to choose who is going to be "it" in a game. The children will all stand in a circle
around the counter and hold their fists out in front of them. The counter recites the rhyme,
striking each fist in the circle in turn for each word of the rhyme. When the counter strikes a
fist on the last word of the rhyme—"...seven potato, more."—that fist is knocked out of the
game. The counter then repeats the rhyme, each time knocking out another fist. The last
person with a fist remaining raised is "it". This simple game has all of the elements of a
program—a set sequence of events, actions performed based on the outcome of a process,
and repetition.

In the context of computing, programming means creating a set of instructions not for a
person but for a computer, in order to accomplish a specific task. To do so you use a set of
directives—a programming language—known to both the programmer and the computer
operating system. The kind of things we program computers to do is different from what we
“program” ourselves to do. Usually a set of instructions, or program, for a computer is
intended to complete a task that:
$9.49
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
vinodkbm

Get to know the seller

Seller avatar
vinodkbm Asa College
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
2 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions