0% found this document useful (0 votes)
5 views6 pages

Programming Basics with Real-Life Examples

Programming involves translating ideas into a series of logical steps using basic control structures like sequence, decision, and repetition that are analogous to everyday activities. These structures allow programmers to break problems down into step-by-step instructions to solve problems. Programming concepts are based on common sense and are simpler to understand than other technical fields.

Uploaded by

3rlidhar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views6 pages

Programming Basics with Real-Life Examples

Programming involves translating ideas into a series of logical steps using basic control structures like sequence, decision, and repetition that are analogous to everyday activities. These structures allow programmers to break problems down into step-by-step instructions to solve problems. Programming concepts are based on common sense and are simpler to understand than other technical fields.

Uploaded by

3rlidhar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Programming Basics

using
Real-life examples
Dr. Jeyakesavan Veerasamy
CS faculty, UT Dallas, USA
jeyv@[Link]
What is programming?
• Translating idea to steps in “restricted” English
langauge
• Logical Thinking & execution
• simpler than logic puzzles
• lot simpler than learning a foreign language
• Not a cryptic activity
• Underlying concepts are similar to daily activities
• Technical Common Sense
Activities
• Recipe to make your favorite food
• Assembly instructions for a toy
• Getting ready in the morning
• Going from one place to another

What is common to all of these?


Sequence of steps
More activities
• Go by car or take the bus?
• Go for a movie or study?
• Fly or drive?
• Carry a lunch-box or get lunch in café?

What is common to all of these?


Selection / decision / IF statement
Even more activities
• Eat cookies from a box
• Answer an exam that has several questions
• Get a list of items at the grocery store
• Moving all items from one room to another

What is common to all of these?


repetition / loop / iteration
Summary
• All programs have only 3 control structures:
Sequence, decision & repetition
• These are similar to activities we do every day.
• Problem description  High level idea 
Detailed Pseudocode  Implement in specific
language  Executable program

You might also like