SlideShare a Scribd company logo
Introduction to Programming Concepts Jussi Pohjolainen TAMK University of Applied Sciences
Computer Program Computer program are  instructions  for a computer Computer executes the program in CPU Program has an executable form Computer program gets  input  from the user Computer program can generate information to the user, this information is called  output
Input and Output Computer Program input output
Designing, Implementing and Testing Specification ("What we are suppose to implement?") 1) Design the program Structure, Algorithms, Architecture 2) Implement according to the design Implement using some programming language 3) Test the program Is the program the same than in specification?
Specification Before implementing, one must know  what to implement Specification is very important What is the possible input and output of the program? If specification contains errors, it's very hard to correct the program...
Designing Computer Program Architecture UML Diagrams (If OO) Data Structures Algorithms
Compiling and Running Programs Implementing Programs
Computer and Operating System The basic parts of the computer Processor, RAM, Hard Drive, input and output devices.... The instructions you give to the processor are given in  machine language Operating system hosts the programs
Machine Language Computer program is just instructions to the CPU These instructions are given only in  machine language,  and this is the only language that the CPU understands Machine language  is very hard to implement
Computer Language Because machine language is so hard to implement, programmers do not use it Instead of using  machine language , programmers use some  high level (compiler) language... ...  but the computer  does not  understand  anything but the machine language! Compiler  comes to the rescue! Compiler  translates high level language to machine language
Miscommunication 010101010111011111010101010101101010101010101010101 I just wanna a program that would calculate my body mass index? Okay? ?
Solution 010101010111011111010101010101101010101010101010101 I wanna a BMI  app. (but I don't want the results) int weight; int height; cin >> weight; cin >> height; ... Compiler
Programming Languages There are many high level languages C, C++, C#, Perl, PHP, Java, Smalltalk, Objective-C Almost  all of these languages  have the same principals if, while, for, functions, methods...
Programming Environment The source code of the program is Written Compiled (Linked) Into a computer program The source code is written with some text editor and it is compiled with some compiler
Writing the program Source Code Source Code Compiling Machine Language Machine Language Linking Executable
Compiling Java Programs Image from  The Java Technology Phenomenon http://java.sun.com/docs/books/tutorial/getStarted/intro/definition.html
Compiling Java Programs Image from  The Java Technology Phenomenon http://java.sun.com/docs/books/tutorial/getStarted/intro/definition.html
ALGORITHMS
Algorithms Algorithm is a method for solving problem using instructions Algorithms can be written using pseudocode Pseudocode is intended for  human reading  rather than machine reading The use of natural language and structural convention of programming language
Pseudocode Pseudocode consists of Clear natural human readable language Three rules sequence choice (if) repeat (while)
1. Sequence Sequence means that the given instructions are executed in the same order that they were given print to the screen "What is your name?" read the answer and store it into variable NAME print to the screen "You have a funny name, " print to the screen NAME print to the screen "!"
2. Choice With choice, one can choose which instructions are executed print to the screen "What is your name?" read the answer and store it into variable NAME if(NAME = "Jussi") print to the screen "What a stupid name!" else print to the screen "Nice name you have!"
Example of Choice print "What grade did you get?" grade := getInput() if(grade = 4) print "FAIL!"; else if(grade = 5) print "You are an idiot!"; else if(grade = 6) print "Lazy or and idiot?"; ...
3. Repeat In repeat one executes instructions based on condition while(there is food on the plate) Eat food
Example of Repeat i := 0 while(i < 3) print &quot;Hello World!&quot; i := i + 1
Three basic rules 1) Sequence Get up from bed Dress up Go to the shower Go to work 2) Choice If car is broken, go to work by bus. Otherwise go to work by car 3) Repeat Drink until the bottle is empty
Pseudocode Exercise Write an algorithm with pseudocode that asks from the user two numbers. If the sum of those numbers are greater than 12, program outputs &quot;Big numbers you gave&quot;. Otherwise the program outputs &quot;Small numbers you gave&quot;.
Ad

More Related Content

What's hot (20)

Programming languages
Programming languagesProgramming languages
Programming languages
Simon Mui
ย 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
Neeru Mittal
ย 
Computer Programming
Computer ProgrammingComputer Programming
Computer Programming
Syed Zaid Irshad
ย 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentation
fazli khaliq
ย 
Programming Fundamentals lecture 1
Programming Fundamentals lecture 1Programming Fundamentals lecture 1
Programming Fundamentals lecture 1
REHAN IJAZ
ย 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
NSU-Biliran Campus
ย 
Compiler design
Compiler designCompiler design
Compiler design
Thakur Ganeshsingh Thakur
ย 
Computer Language Translator
Computer Language TranslatorComputer Language Translator
Computer Language Translator
Ranjeet Kumar
ย 
Compilers
CompilersCompilers
Compilers
Bense Tony
ย 
Introduction of c programming
Introduction of c programmingIntroduction of c programming
Introduction of c programming
Tarun Sharma
ย 
Programming languages
Programming languagesProgramming languages
Programming languages
www.myassignmenthelp.net
ย 
Classification of Programming Languages
Classification of Programming LanguagesClassification of Programming Languages
Classification of Programming Languages
Project Student
ย 
Chapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to ProgrammingChapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to Programming
mshellman
ย 
Computer languages 11
Computer languages 11Computer languages 11
Computer languages 11
Muhammad Ramzan
ย 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
Gaditek
ย 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1
Arslan Hussain
ย 
Introduction to Compiler Construction
Introduction to Compiler Construction Introduction to Compiler Construction
Introduction to Compiler Construction
Sarmad Ali
ย 
Pseudocode
PseudocodePseudocode
Pseudocode
grahamwell
ย 
Programming paradigm
Programming paradigmProgramming paradigm
Programming paradigm
busyking03
ย 
Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2
Raja Hamid
ย 
Programming languages
Programming languagesProgramming languages
Programming languages
Simon Mui
ย 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
Neeru Mittal
ย 
Computer Programming
Computer ProgrammingComputer Programming
Computer Programming
Syed Zaid Irshad
ย 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentation
fazli khaliq
ย 
Programming Fundamentals lecture 1
Programming Fundamentals lecture 1Programming Fundamentals lecture 1
Programming Fundamentals lecture 1
REHAN IJAZ
ย 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
NSU-Biliran Campus
ย 
Computer Language Translator
Computer Language TranslatorComputer Language Translator
Computer Language Translator
Ranjeet Kumar
ย 
Compilers
CompilersCompilers
Compilers
Bense Tony
ย 
Introduction of c programming
Introduction of c programmingIntroduction of c programming
Introduction of c programming
Tarun Sharma
ย 
Classification of Programming Languages
Classification of Programming LanguagesClassification of Programming Languages
Classification of Programming Languages
Project Student
ย 
Chapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to ProgrammingChapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to Programming
mshellman
ย 
Computer languages 11
Computer languages 11Computer languages 11
Computer languages 11
Muhammad Ramzan
ย 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
Gaditek
ย 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1
Arslan Hussain
ย 
Introduction to Compiler Construction
Introduction to Compiler Construction Introduction to Compiler Construction
Introduction to Compiler Construction
Sarmad Ali
ย 
Pseudocode
PseudocodePseudocode
Pseudocode
grahamwell
ย 
Programming paradigm
Programming paradigmProgramming paradigm
Programming paradigm
busyking03
ย 
Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2
Raja Hamid
ย 

Similar to Intro To Programming Concepts (20)

L1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfL1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdf
MMRF2
ย 
notes on Programming fundamentals
notes on Programming fundamentals notes on Programming fundamentals
notes on Programming fundamentals
ArghodeepPaul
ย 
01 Programming Fundamentals.pptx
01 Programming Fundamentals.pptx01 Programming Fundamentals.pptx
01 Programming Fundamentals.pptx
JustineLincopinesAlm
ย 
Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12
Sehrish Rafiq
ย 
Computer programming
Computer programmingComputer programming
Computer programming
Mohamed Asarudeen
ย 
Chapter 2.pptx
Chapter 2.pptxChapter 2.pptx
Chapter 2.pptx
TamiratDejene1
ย 
Computer and programing basics.pptx
Computer and programing basics.pptxComputer and programing basics.pptx
Computer and programing basics.pptx
gaafergoda
ย 
BIS07 Application Development - I
BIS07 Application Development - IBIS07 Application Development - I
BIS07 Application Development - I
Prithwis Mukerjee
ย 
Power Point Introduction To Programming 1
Power Point Introduction To Programming 1Power Point Introduction To Programming 1
Power Point Introduction To Programming 1
FabianDaffa3
ย 
10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz
Shahbaz Ahmad
ย 
Basic Computer Programming
Basic Computer ProgrammingBasic Computer Programming
Basic Computer Programming
Allen de Castro
ย 
Types of errors 2019
Types of errors 2019Types of errors 2019
Types of errors 2019
Osama Ghandour Geris
ย 
1 2 programming
1 2 programming1 2 programming
1 2 programming
azimuthal
ย 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and development
Ali Raza
ย 
Software development slides
Software development slidesSoftware development slides
Software development slides
iarthur
ย 
Learn C Programming Full Course Free
Learn C Programming Full Course FreeLearn C Programming Full Course Free
Learn C Programming Full Course Free
Dheeraj Patidar
ย 
Lesson 1 Computer Program (INTRO TO JAVA)
Lesson 1 Computer Program (INTRO TO JAVA)Lesson 1 Computer Program (INTRO TO JAVA)
Lesson 1 Computer Program (INTRO TO JAVA)
KiRe6
ย 
Slide 01
Slide 01Slide 01
Slide 01
Dash Chan
ย 
Processing
ProcessingProcessing
Processing
simart
ย 
Algorithms - Introduction to computer programming
Algorithms - Introduction to computer programmingAlgorithms - Introduction to computer programming
Algorithms - Introduction to computer programming
baabtra.com - No. 1 supplier of quality freshers
ย 
L1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfL1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdf
MMRF2
ย 
notes on Programming fundamentals
notes on Programming fundamentals notes on Programming fundamentals
notes on Programming fundamentals
ArghodeepPaul
ย 
01 Programming Fundamentals.pptx
01 Programming Fundamentals.pptx01 Programming Fundamentals.pptx
01 Programming Fundamentals.pptx
JustineLincopinesAlm
ย 
Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12
Sehrish Rafiq
ย 
Computer programming
Computer programmingComputer programming
Computer programming
Mohamed Asarudeen
ย 
Chapter 2.pptx
Chapter 2.pptxChapter 2.pptx
Chapter 2.pptx
TamiratDejene1
ย 
Computer and programing basics.pptx
Computer and programing basics.pptxComputer and programing basics.pptx
Computer and programing basics.pptx
gaafergoda
ย 
BIS07 Application Development - I
BIS07 Application Development - IBIS07 Application Development - I
BIS07 Application Development - I
Prithwis Mukerjee
ย 
Power Point Introduction To Programming 1
Power Point Introduction To Programming 1Power Point Introduction To Programming 1
Power Point Introduction To Programming 1
FabianDaffa3
ย 
10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz
Shahbaz Ahmad
ย 
Basic Computer Programming
Basic Computer ProgrammingBasic Computer Programming
Basic Computer Programming
Allen de Castro
ย 
1 2 programming
1 2 programming1 2 programming
1 2 programming
azimuthal
ย 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and development
Ali Raza
ย 
Software development slides
Software development slidesSoftware development slides
Software development slides
iarthur
ย 
Learn C Programming Full Course Free
Learn C Programming Full Course FreeLearn C Programming Full Course Free
Learn C Programming Full Course Free
Dheeraj Patidar
ย 
Lesson 1 Computer Program (INTRO TO JAVA)
Lesson 1 Computer Program (INTRO TO JAVA)Lesson 1 Computer Program (INTRO TO JAVA)
Lesson 1 Computer Program (INTRO TO JAVA)
KiRe6
ย 
Slide 01
Slide 01Slide 01
Slide 01
Dash Chan
ย 
Processing
ProcessingProcessing
Processing
simart
ย 
Ad

More from Jussi Pohjolainen (20)

Moved to Speakerdeck
Moved to SpeakerdeckMoved to Speakerdeck
Moved to Speakerdeck
Jussi Pohjolainen
ย 
Java Web Services
Java Web ServicesJava Web Services
Java Web Services
Jussi Pohjolainen
ย 
Box2D and libGDX
Box2D and libGDXBox2D and libGDX
Box2D and libGDX
Jussi Pohjolainen
ย 
libGDX: Screens, Fonts and Preferences
libGDX: Screens, Fonts and PreferenceslibGDX: Screens, Fonts and Preferences
libGDX: Screens, Fonts and Preferences
Jussi Pohjolainen
ย 
libGDX: Tiled Maps
libGDX: Tiled MapslibGDX: Tiled Maps
libGDX: Tiled Maps
Jussi Pohjolainen
ย 
libGDX: User Input and Frame by Frame Animation
libGDX: User Input and Frame by Frame AnimationlibGDX: User Input and Frame by Frame Animation
libGDX: User Input and Frame by Frame Animation
Jussi Pohjolainen
ย 
Intro to Building Android Games using libGDX
Intro to Building Android Games using libGDXIntro to Building Android Games using libGDX
Intro to Building Android Games using libGDX
Jussi Pohjolainen
ย 
Advanced JavaScript Development
Advanced JavaScript DevelopmentAdvanced JavaScript Development
Advanced JavaScript Development
Jussi Pohjolainen
ย 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
Jussi Pohjolainen
ย 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
Jussi Pohjolainen
ย 
libGDX: Scene2D
libGDX: Scene2DlibGDX: Scene2D
libGDX: Scene2D
Jussi Pohjolainen
ย 
libGDX: Simple Frame Animation
libGDX: Simple Frame AnimationlibGDX: Simple Frame Animation
libGDX: Simple Frame Animation
Jussi Pohjolainen
ย 
libGDX: Simple Frame Animation
libGDX: Simple Frame AnimationlibGDX: Simple Frame Animation
libGDX: Simple Frame Animation
Jussi Pohjolainen
ย 
libGDX: User Input
libGDX: User InputlibGDX: User Input
libGDX: User Input
Jussi Pohjolainen
ย 
Implementing a Simple Game using libGDX
Implementing a Simple Game using libGDXImplementing a Simple Game using libGDX
Implementing a Simple Game using libGDX
Jussi Pohjolainen
ย 
Building Android games using LibGDX
Building Android games using LibGDXBuilding Android games using LibGDX
Building Android games using LibGDX
Jussi Pohjolainen
ย 
Android Threading
Android ThreadingAndroid Threading
Android Threading
Jussi Pohjolainen
ย 
Creating Asha Games: Game Pausing, Orientation, Sensors and Gestures
Creating Asha Games: Game Pausing, Orientation, Sensors and GesturesCreating Asha Games: Game Pausing, Orientation, Sensors and Gestures
Creating Asha Games: Game Pausing, Orientation, Sensors and Gestures
Jussi Pohjolainen
ย 
Creating Games for Asha - platform
Creating Games for Asha - platformCreating Games for Asha - platform
Creating Games for Asha - platform
Jussi Pohjolainen
ย 
Intro to Asha UI
Intro to Asha UIIntro to Asha UI
Intro to Asha UI
Jussi Pohjolainen
ย 
Moved to Speakerdeck
Moved to SpeakerdeckMoved to Speakerdeck
Moved to Speakerdeck
Jussi Pohjolainen
ย 
libGDX: Screens, Fonts and Preferences
libGDX: Screens, Fonts and PreferenceslibGDX: Screens, Fonts and Preferences
libGDX: Screens, Fonts and Preferences
Jussi Pohjolainen
ย 
libGDX: User Input and Frame by Frame Animation
libGDX: User Input and Frame by Frame AnimationlibGDX: User Input and Frame by Frame Animation
libGDX: User Input and Frame by Frame Animation
Jussi Pohjolainen
ย 
Intro to Building Android Games using libGDX
Intro to Building Android Games using libGDXIntro to Building Android Games using libGDX
Intro to Building Android Games using libGDX
Jussi Pohjolainen
ย 
Advanced JavaScript Development
Advanced JavaScript DevelopmentAdvanced JavaScript Development
Advanced JavaScript Development
Jussi Pohjolainen
ย 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
Jussi Pohjolainen
ย 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
Jussi Pohjolainen
ย 
libGDX: Simple Frame Animation
libGDX: Simple Frame AnimationlibGDX: Simple Frame Animation
libGDX: Simple Frame Animation
Jussi Pohjolainen
ย 
libGDX: Simple Frame Animation
libGDX: Simple Frame AnimationlibGDX: Simple Frame Animation
libGDX: Simple Frame Animation
Jussi Pohjolainen
ย 
Implementing a Simple Game using libGDX
Implementing a Simple Game using libGDXImplementing a Simple Game using libGDX
Implementing a Simple Game using libGDX
Jussi Pohjolainen
ย 
Building Android games using LibGDX
Building Android games using LibGDXBuilding Android games using LibGDX
Building Android games using LibGDX
Jussi Pohjolainen
ย 
Creating Asha Games: Game Pausing, Orientation, Sensors and Gestures
Creating Asha Games: Game Pausing, Orientation, Sensors and GesturesCreating Asha Games: Game Pausing, Orientation, Sensors and Gestures
Creating Asha Games: Game Pausing, Orientation, Sensors and Gestures
Jussi Pohjolainen
ย 
Creating Games for Asha - platform
Creating Games for Asha - platformCreating Games for Asha - platform
Creating Games for Asha - platform
Jussi Pohjolainen
ย 
Ad

Recently uploaded (20)

DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
ย 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
ย 
Image processinglab image processing image processing
Image processinglab image processing  image processingImage processinglab image processing  image processing
Image processinglab image processing image processing
RaghadHany
ย 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
ย 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
ย 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
ย 
"PHP and MySQL CRUD Operations for Student Management System"
"PHP and MySQL CRUD Operations for Student Management System""PHP and MySQL CRUD Operations for Student Management System"
"PHP and MySQL CRUD Operations for Student Management System"
Jainul Musani
ย 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
ย 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
ย 
"Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5..."Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5...
Fwdays
ย 
Buckeye Dreamin 2024: Assessing and Resolving Technical Debt
Buckeye Dreamin 2024: Assessing and Resolving Technical DebtBuckeye Dreamin 2024: Assessing and Resolving Technical Debt
Buckeye Dreamin 2024: Assessing and Resolving Technical Debt
Lynda Kane
ย 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
ย 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
ย 
Hands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordDataHands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordData
Lynda Kane
ย 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
ย 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
ย 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
ย 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
ย 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
ย 
Automation Hour 1/28/2022: Capture User Feedback from Anywhere
Automation Hour 1/28/2022: Capture User Feedback from AnywhereAutomation Hour 1/28/2022: Capture User Feedback from Anywhere
Automation Hour 1/28/2022: Capture User Feedback from Anywhere
Lynda Kane
ย 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
ย 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
ย 
Image processinglab image processing image processing
Image processinglab image processing  image processingImage processinglab image processing  image processing
Image processinglab image processing image processing
RaghadHany
ย 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
ย 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
ย 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
ย 
"PHP and MySQL CRUD Operations for Student Management System"
"PHP and MySQL CRUD Operations for Student Management System""PHP and MySQL CRUD Operations for Student Management System"
"PHP and MySQL CRUD Operations for Student Management System"
Jainul Musani
ย 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
ย 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
ย 
"Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5..."Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5...
Fwdays
ย 
Buckeye Dreamin 2024: Assessing and Resolving Technical Debt
Buckeye Dreamin 2024: Assessing and Resolving Technical DebtBuckeye Dreamin 2024: Assessing and Resolving Technical Debt
Buckeye Dreamin 2024: Assessing and Resolving Technical Debt
Lynda Kane
ย 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
ย 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
ย 
Hands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordDataHands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordData
Lynda Kane
ย 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
ย 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
ย 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
ย 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
ย 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
ย 
Automation Hour 1/28/2022: Capture User Feedback from Anywhere
Automation Hour 1/28/2022: Capture User Feedback from AnywhereAutomation Hour 1/28/2022: Capture User Feedback from Anywhere
Automation Hour 1/28/2022: Capture User Feedback from Anywhere
Lynda Kane
ย 

Intro To Programming Concepts

  • 1. Introduction to Programming Concepts Jussi Pohjolainen TAMK University of Applied Sciences
  • 2. Computer Program Computer program are instructions for a computer Computer executes the program in CPU Program has an executable form Computer program gets input from the user Computer program can generate information to the user, this information is called output
  • 3. Input and Output Computer Program input output
  • 4. Designing, Implementing and Testing Specification (&quot;What we are suppose to implement?&quot;) 1) Design the program Structure, Algorithms, Architecture 2) Implement according to the design Implement using some programming language 3) Test the program Is the program the same than in specification?
  • 5. Specification Before implementing, one must know what to implement Specification is very important What is the possible input and output of the program? If specification contains errors, it's very hard to correct the program...
  • 6. Designing Computer Program Architecture UML Diagrams (If OO) Data Structures Algorithms
  • 7. Compiling and Running Programs Implementing Programs
  • 8. Computer and Operating System The basic parts of the computer Processor, RAM, Hard Drive, input and output devices.... The instructions you give to the processor are given in machine language Operating system hosts the programs
  • 9. Machine Language Computer program is just instructions to the CPU These instructions are given only in machine language, and this is the only language that the CPU understands Machine language is very hard to implement
  • 10. Computer Language Because machine language is so hard to implement, programmers do not use it Instead of using machine language , programmers use some high level (compiler) language... ... but the computer does not understand anything but the machine language! Compiler comes to the rescue! Compiler translates high level language to machine language
  • 11. Miscommunication 010101010111011111010101010101101010101010101010101 I just wanna a program that would calculate my body mass index? Okay? ?
  • 12. Solution 010101010111011111010101010101101010101010101010101 I wanna a BMI app. (but I don't want the results) int weight; int height; cin >> weight; cin >> height; ... Compiler
  • 13. Programming Languages There are many high level languages C, C++, C#, Perl, PHP, Java, Smalltalk, Objective-C Almost all of these languages have the same principals if, while, for, functions, methods...
  • 14. Programming Environment The source code of the program is Written Compiled (Linked) Into a computer program The source code is written with some text editor and it is compiled with some compiler
  • 15. Writing the program Source Code Source Code Compiling Machine Language Machine Language Linking Executable
  • 16. Compiling Java Programs Image from The Java Technology Phenomenon http://java.sun.com/docs/books/tutorial/getStarted/intro/definition.html
  • 17. Compiling Java Programs Image from The Java Technology Phenomenon http://java.sun.com/docs/books/tutorial/getStarted/intro/definition.html
  • 19. Algorithms Algorithm is a method for solving problem using instructions Algorithms can be written using pseudocode Pseudocode is intended for human reading rather than machine reading The use of natural language and structural convention of programming language
  • 20. Pseudocode Pseudocode consists of Clear natural human readable language Three rules sequence choice (if) repeat (while)
  • 21. 1. Sequence Sequence means that the given instructions are executed in the same order that they were given print to the screen &quot;What is your name?&quot; read the answer and store it into variable NAME print to the screen &quot;You have a funny name, &quot; print to the screen NAME print to the screen &quot;!&quot;
  • 22. 2. Choice With choice, one can choose which instructions are executed print to the screen &quot;What is your name?&quot; read the answer and store it into variable NAME if(NAME = &quot;Jussi&quot;) print to the screen &quot;What a stupid name!&quot; else print to the screen &quot;Nice name you have!&quot;
  • 23. Example of Choice print &quot;What grade did you get?&quot; grade := getInput() if(grade = 4) print &quot;FAIL!&quot;; else if(grade = 5) print &quot;You are an idiot!&quot;; else if(grade = 6) print &quot;Lazy or and idiot?&quot;; ...
  • 24. 3. Repeat In repeat one executes instructions based on condition while(there is food on the plate) Eat food
  • 25. Example of Repeat i := 0 while(i < 3) print &quot;Hello World!&quot; i := i + 1
  • 26. Three basic rules 1) Sequence Get up from bed Dress up Go to the shower Go to work 2) Choice If car is broken, go to work by bus. Otherwise go to work by car 3) Repeat Drink until the bottle is empty
  • 27. Pseudocode Exercise Write an algorithm with pseudocode that asks from the user two numbers. If the sum of those numbers are greater than 12, program outputs &quot;Big numbers you gave&quot;. Otherwise the program outputs &quot;Small numbers you gave&quot;.