SlideShare une entreprise Scribd logo
1  sur  42
TRIVUz Academy
www.trivuzAcademy.com
Why Programming?
   What is Computer?
   What is Program?
   What is Programming?
So, Program is
Some instruction computer follow
to do our task. And this sequence
of instructions is called a program.
And, Programming is
The process of writing programs is
called programming.
What is the PROCESS?


  Continue…
Follow the steps given below to
become a successful programmer:

 Define
       the problem: Examine the problem until you
 understand it thoroughly.


 Outline   the solution: Analyze the problem.
Continue…
 Expand the outline of the solution into an algorithm:
 Write a step-by-step procedure that leads to the
 solution.
 Test
     the algorithm for correctness: Provide test data
 and try to work out the problem as the computer
 would. This is a critical step but one that programmers
 often forget.
Continue…
 Convert the algorithm into a program: Translate the
 instructions in the algorithm into a computer program
 using any programming language.
 Document  the program clearly: Describe each line of
 instruction or at least some important portions in the
 program. This will make the program easy to follow
 when accessed later for corrections or changes.
Continue…
 Run the program: Instruct the computer to execute
 the program. The process of running the program
 differs from language to language.
 Debug the program: Make sure that the program runs
 correctly without any errors or bugs as they are called
 in computer terminology. Finding the errors and fixing
 them is called debugging. Don’t get depressed when
 bugs are found. Think of it as a way to learn.
Programming Language?
Prerequisite… ?

    Almost nothing… 
Platform… ?
Mac, Linux, Windows….

      Any of them…
How old are you?
What is your educational Background?


       I don’t care… 
So, Who Are You?
You are currently a computer user

who love to use computer.
And definitely you are a user of a
program.
You are going to be…
   The creator of the Program.
   You will be the Programmer.
So again, What is programming?
 When  we want a computer to perform a specific task,
 such as generating a marks sheet or a salary slip, we
 have to create a sequence of instructions in a logical
 order that a computer can understand and interpret.
 This sequence of instructions is called a program. The
 process of writing programs is called programming.
The task of programming involves a lot of effort and careful
planning. Without this, the computer will produce erroneous
results. The following steps should go into the planning of
program:



 Defining   and analyzing the problem


 Developing   the solution logically using an algorithm
Defining and analyzing the problem
Before writing a program, we have to define
exactly what
   Data we need to provide (input) and
    Information we want the program to produce
    (the output).
Once we know these, we can figure out how to develop the solution.
Understanding INPUT
Suppose we want to write a program to work out
the total and average of a student’s marks in five
subjects, we would need to mention the marks
in the five subjects as input.
Understanding OUTPUT
Next, we have to think of the output — the
elements that should be displayed and those
that should not. In the marks example, since the
task is to prepare a marks sheet, the marks in all
the five subjects, their total and average should
be displayed on the screen.
INPUT
Bangla = 60
English = 80
Math = 100
History = 70
OUTPUT
Average : 77.5
PROCESSING

Average = (Bangla + English + Math + History) / 4
Lets write our very first program
   Get Inputs from the user
   Save them somewhere
   Use a math logic to process
   Show the result / output.
Getting INPUTS
 Make   a user interface to collect INPUT from user
Handling Inputs
var a = (input for bangla)
var b = (input for english)
var c = (input for math)
var d = (input for history)
Processing & Output
var average; // another variable
average = (a + b + c + d) / 4;


print average;
OUTPUT
   Our program process the input and show this output.
VARIABLE

   What is variable?
   Variable Naming?
Data Types
Type, Length, Range
Lab - 1
   Let’s try variable in PHP environment
Input Interface
<html>
<head><title>Programming – 1</title></head>
<body>
<form name="test" method="GET”>
       Name:
       <input type="text" name=”InputName" />
       <input type="submit" name="submit" value="Go" />
</form>
</body></html>
Programming Process
<?php
        if(isset($_GET['InputName'])) {

                 $name = $_GET['InputName'];
                 echo $name ;
        } else    {
                 // some other code or load form
        }
?>
Another Input
<html>
<head><title>Programming – 2</title></head>
<body>
<form name="test" method="GET”>
       Name:
       <input type="text" name=”num" />
       <input type="submit" name="submit" value="Go" />
</form>
</body></html>
Programming Process
<?php
        if(isset($_GET[’num'])) {

                 $number1 = $_GET[’num'];
                 echo $number1;
                 $sqr = $number1 * $number1;
                 echo “<br /> “ . $sqr;
        } else    {
                 // some other code or load form
        }
?>
Make a Simple Calculator
<html>
<head><title>Programming – 3</title></head>
<body>
<form name="test" method="GET”>
       Name:
       <input type="text" name=”num1" />
       <input type="text" name=”num2" />
       <input type="submit" name="submit" value=”Sum" />
</form>
</body></html>
Class Contents
  Get all class contents & codes from our site

  http://trivuzacademy.com/class-content.php
Assignment
   Read some article regarding data types
   Read some article regarding numbers
   Read some article proved by Academy
   Write some article regarding all of these
Q&A
 TRIVUz Academy
 www.trivuzAcademy.com
THANK YOU



        MS Alam TRIVUz
        trivuz@gmail.com

Contenu connexe

Tendances

Introduction to data structures and Algorithm
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and AlgorithmDhaval Kaneria
 
Basics of c++ Programming Language
Basics of c++ Programming LanguageBasics of c++ Programming Language
Basics of c++ Programming LanguageAhmad Idrees
 
Introduction to Software Engineering
Introduction to Software EngineeringIntroduction to Software Engineering
Introduction to Software EngineeringSaqib Raza
 
Language processor
Language processorLanguage processor
Language processorAbha Damani
 
Introduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingIntroduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingMoutaz Haddara
 
Unit 1 program development cycle
Unit 1 program development cycleUnit 1 program development cycle
Unit 1 program development cycleDhana malar
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating SystemsMukesh Chinta
 
Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer   Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer Ashim Lamichhane
 
Visual programming lecture
Visual programming lecture Visual programming lecture
Visual programming lecture AqsaHayat3
 
Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language Md. Imran Hossain Showrov
 
Types of Operating System
Types of Operating SystemTypes of Operating System
Types of Operating SystemHemant Raj
 
Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languageseducationfront
 
Basics of C programming
Basics of C programmingBasics of C programming
Basics of C programmingavikdhupar
 

Tendances (20)

Introduction to data structures and Algorithm
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and Algorithm
 
Basics of c++ Programming Language
Basics of c++ Programming LanguageBasics of c++ Programming Language
Basics of c++ Programming Language
 
Presentation on Programming Languages.
Presentation on Programming Languages.Presentation on Programming Languages.
Presentation on Programming Languages.
 
Introduction to Software Engineering
Introduction to Software EngineeringIntroduction to Software Engineering
Introduction to Software Engineering
 
Computer programming
Computer programmingComputer programming
Computer programming
 
Language processor
Language processorLanguage processor
Language processor
 
Introduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingIntroduction to Object Oriented Programming
Introduction to Object Oriented Programming
 
Programming in c
Programming in cProgramming in c
Programming in c
 
Unit 1 program development cycle
Unit 1 program development cycleUnit 1 program development cycle
Unit 1 program development cycle
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
 
Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer   Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer
 
Visual programming lecture
Visual programming lecture Visual programming lecture
Visual programming lecture
 
Virtual machine
Virtual machineVirtual machine
Virtual machine
 
Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language
 
Types of Operating System
Types of Operating SystemTypes of Operating System
Types of Operating System
 
System software
System softwareSystem software
System software
 
Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languages
 
History of programming
History of programmingHistory of programming
History of programming
 
Basics of C programming
Basics of C programmingBasics of C programming
Basics of C programming
 
Compiler Construction
Compiler ConstructionCompiler Construction
Compiler Construction
 

En vedette

Programming fundamentals lecture 1 0f c
Programming fundamentals lecture 1 0f cProgramming fundamentals lecture 1 0f c
Programming fundamentals lecture 1 0f cRaja Hamid
 
Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2Raja Hamid
 
Fundamental Programming Lect 1
Fundamental Programming Lect 1Fundamental Programming Lect 1
Fundamental Programming Lect 1Namrah Erum
 
Fundamental Programming Lect 2
Fundamental Programming Lect 2Fundamental Programming Lect 2
Fundamental Programming Lect 2Namrah Erum
 
Fundamental Programming Lect 3
Fundamental Programming Lect 3Fundamental Programming Lect 3
Fundamental Programming Lect 3Namrah Erum
 
Chapter 1: Intro to Funds of Programming
Chapter 1: Intro to Funds of ProgrammingChapter 1: Intro to Funds of Programming
Chapter 1: Intro to Funds of Programmingricsanmae
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programmingNoel Malle
 
Programming languages
Programming languagesProgramming languages
Programming languagesAkash Varaiya
 
Programming languages
Programming languagesProgramming languages
Programming languagesAsmasum
 
Functional Programming Fundamentals
Functional Programming FundamentalsFunctional Programming Fundamentals
Functional Programming FundamentalsShahriar Hyder
 
20. Object-Oriented Programming Fundamental Principles
20. Object-Oriented Programming Fundamental Principles20. Object-Oriented Programming Fundamental Principles
20. Object-Oriented Programming Fundamental PrinciplesIntro C# Book
 
Introduction to Pseudocode
Introduction to PseudocodeIntroduction to Pseudocode
Introduction to PseudocodeDamian T. Gordon
 
THINK LIKE A CHILD
THINK LIKE A CHILDTHINK LIKE A CHILD
THINK LIKE A CHILDVarun Garg
 
C++ Programming Club-Lecture 1
C++ Programming Club-Lecture 1C++ Programming Club-Lecture 1
C++ Programming Club-Lecture 1Ammara Javed
 
Automating Quantitative Narrative Analysis of News Data
Automating Quantitative Narrative Analysis of News DataAutomating Quantitative Narrative Analysis of News Data
Automating Quantitative Narrative Analysis of News DataSaatviga Sudhahar
 
Kandungan nota
Kandungan notaKandungan nota
Kandungan notarohassanie
 
Fundamentals of programming)
Fundamentals of programming)Fundamentals of programming)
Fundamentals of programming)jakejakejake2
 

En vedette (20)

Programming fundamentals lecture 1 0f c
Programming fundamentals lecture 1 0f cProgramming fundamentals lecture 1 0f c
Programming fundamentals lecture 1 0f c
 
Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2
 
Fundamental Programming Lect 1
Fundamental Programming Lect 1Fundamental Programming Lect 1
Fundamental Programming Lect 1
 
Fundamental Programming Lect 2
Fundamental Programming Lect 2Fundamental Programming Lect 2
Fundamental Programming Lect 2
 
Fundamental Programming Lect 3
Fundamental Programming Lect 3Fundamental Programming Lect 3
Fundamental Programming Lect 3
 
Chapter 1: Intro to Funds of Programming
Chapter 1: Intro to Funds of ProgrammingChapter 1: Intro to Funds of Programming
Chapter 1: Intro to Funds of Programming
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 
Intro to C++ - language
Intro to C++ - languageIntro to C++ - language
Intro to C++ - language
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Computer Languages.
Computer Languages.Computer Languages.
Computer Languages.
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Functional Programming Fundamentals
Functional Programming FundamentalsFunctional Programming Fundamentals
Functional Programming Fundamentals
 
20. Object-Oriented Programming Fundamental Principles
20. Object-Oriented Programming Fundamental Principles20. Object-Oriented Programming Fundamental Principles
20. Object-Oriented Programming Fundamental Principles
 
Introduction to Pseudocode
Introduction to PseudocodeIntroduction to Pseudocode
Introduction to Pseudocode
 
THINK LIKE A CHILD
THINK LIKE A CHILDTHINK LIKE A CHILD
THINK LIKE A CHILD
 
Programming Basics - array, loops, funcitons
Programming Basics - array, loops, funcitonsProgramming Basics - array, loops, funcitons
Programming Basics - array, loops, funcitons
 
C++ Programming Club-Lecture 1
C++ Programming Club-Lecture 1C++ Programming Club-Lecture 1
C++ Programming Club-Lecture 1
 
Automating Quantitative Narrative Analysis of News Data
Automating Quantitative Narrative Analysis of News DataAutomating Quantitative Narrative Analysis of News Data
Automating Quantitative Narrative Analysis of News Data
 
Kandungan nota
Kandungan notaKandungan nota
Kandungan nota
 
Fundamentals of programming)
Fundamentals of programming)Fundamentals of programming)
Fundamentals of programming)
 

Similaire à Programming Fundamentals

Program logic and design
Program logic and designProgram logic and design
Program logic and designChaffey College
 
Software development slides
Software development slidesSoftware development slides
Software development slidesiarthur
 
Software Design
Software DesignSoftware Design
Software DesignSpy Seat
 
Ch1 principles of software development
Ch1 principles of software developmentCh1 principles of software development
Ch1 principles of software developmentHattori Sidek
 
Python for Physical Science.pdf
Python for Physical Science.pdfPython for Physical Science.pdf
Python for Physical Science.pdfMarilouANDERSON
 
L1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfL1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfMMRF2
 
ProgFund_Lecture_4_Functions_and_Modules-1.pdf
ProgFund_Lecture_4_Functions_and_Modules-1.pdfProgFund_Lecture_4_Functions_and_Modules-1.pdf
ProgFund_Lecture_4_Functions_and_Modules-1.pdflailoesakhan
 
TOPIC-1-Introduction and Preliminaries.pdf
TOPIC-1-Introduction and Preliminaries.pdfTOPIC-1-Introduction and Preliminaries.pdf
TOPIC-1-Introduction and Preliminaries.pdfEjazAlam23
 
Cis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programmingCis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programmingHamad Odhabi
 
Copy of dti2143/dam31303 chap 1 problem solving and program design
Copy of dti2143/dam31303 chap 1 problem solving and program designCopy of dti2143/dam31303 chap 1 problem solving and program design
Copy of dti2143/dam31303 chap 1 problem solving and program designalish sha
 
Software develop....
Software develop.... Software develop....
Software develop.... GCWUS
 
Software development slides
Software development slidesSoftware development slides
Software development slidesiarthur
 

Similaire à Programming Fundamentals (20)

01 Programming Fundamentals.pptx
01 Programming Fundamentals.pptx01 Programming Fundamentals.pptx
01 Programming Fundamentals.pptx
 
Program logic and design
Program logic and designProgram logic and design
Program logic and design
 
Software development slides
Software development slidesSoftware development slides
Software development slides
 
Software Design
Software DesignSoftware Design
Software Design
 
Class 7 lecture notes
Class 7 lecture notesClass 7 lecture notes
Class 7 lecture notes
 
Ch1 principles of software development
Ch1 principles of software developmentCh1 principles of software development
Ch1 principles of software development
 
Python for Physical Science.pdf
Python for Physical Science.pdfPython for Physical Science.pdf
Python for Physical Science.pdf
 
L1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfL1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdf
 
ProgFund_Lecture_4_Functions_and_Modules-1.pdf
ProgFund_Lecture_4_Functions_and_Modules-1.pdfProgFund_Lecture_4_Functions_and_Modules-1.pdf
ProgFund_Lecture_4_Functions_and_Modules-1.pdf
 
TOPIC-1-Introduction and Preliminaries.pdf
TOPIC-1-Introduction and Preliminaries.pdfTOPIC-1-Introduction and Preliminaries.pdf
TOPIC-1-Introduction and Preliminaries.pdf
 
Dutch PHP Conference 2013: Distilled
Dutch PHP Conference 2013: DistilledDutch PHP Conference 2013: Distilled
Dutch PHP Conference 2013: Distilled
 
programming.ppt
programming.pptprogramming.ppt
programming.ppt
 
Chapter 2- Prog101.ppt
Chapter 2- Prog101.pptChapter 2- Prog101.ppt
Chapter 2- Prog101.ppt
 
Cis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programmingCis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programming
 
Copy of dti2143/dam31303 chap 1 problem solving and program design
Copy of dti2143/dam31303 chap 1 problem solving and program designCopy of dti2143/dam31303 chap 1 problem solving and program design
Copy of dti2143/dam31303 chap 1 problem solving and program design
 
Cse
CseCse
Cse
 
Software develop....
Software develop.... Software develop....
Software develop....
 
C++ ppt
C++ pptC++ ppt
C++ ppt
 
Introduction.pptx
Introduction.pptxIntroduction.pptx
Introduction.pptx
 
Software development slides
Software development slidesSoftware development slides
Software development slides
 

Dernier

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 

Dernier (20)

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 

Programming Fundamentals

  • 2. Why Programming?  What is Computer?  What is Program?  What is Programming?
  • 3. So, Program is Some instruction computer follow to do our task. And this sequence of instructions is called a program.
  • 4. And, Programming is The process of writing programs is called programming.
  • 5. What is the PROCESS? Continue…
  • 6. Follow the steps given below to become a successful programmer:  Define the problem: Examine the problem until you understand it thoroughly.  Outline the solution: Analyze the problem.
  • 7. Continue…  Expand the outline of the solution into an algorithm: Write a step-by-step procedure that leads to the solution.  Test the algorithm for correctness: Provide test data and try to work out the problem as the computer would. This is a critical step but one that programmers often forget.
  • 8. Continue…  Convert the algorithm into a program: Translate the instructions in the algorithm into a computer program using any programming language.  Document the program clearly: Describe each line of instruction or at least some important portions in the program. This will make the program easy to follow when accessed later for corrections or changes.
  • 9. Continue…  Run the program: Instruct the computer to execute the program. The process of running the program differs from language to language.  Debug the program: Make sure that the program runs correctly without any errors or bugs as they are called in computer terminology. Finding the errors and fixing them is called debugging. Don’t get depressed when bugs are found. Think of it as a way to learn.
  • 11. Prerequisite… ? Almost nothing… 
  • 12. Platform… ? Mac, Linux, Windows…. Any of them…
  • 13. How old are you? What is your educational Background? I don’t care… 
  • 14. So, Who Are You? You are currently a computer user  who love to use computer. And definitely you are a user of a program.
  • 15. You are going to be…  The creator of the Program.  You will be the Programmer.
  • 16. So again, What is programming?  When we want a computer to perform a specific task, such as generating a marks sheet or a salary slip, we have to create a sequence of instructions in a logical order that a computer can understand and interpret. This sequence of instructions is called a program. The process of writing programs is called programming.
  • 17. The task of programming involves a lot of effort and careful planning. Without this, the computer will produce erroneous results. The following steps should go into the planning of program:  Defining and analyzing the problem  Developing the solution logically using an algorithm
  • 18. Defining and analyzing the problem Before writing a program, we have to define exactly what  Data we need to provide (input) and  Information we want the program to produce (the output). Once we know these, we can figure out how to develop the solution.
  • 19. Understanding INPUT Suppose we want to write a program to work out the total and average of a student’s marks in five subjects, we would need to mention the marks in the five subjects as input.
  • 20. Understanding OUTPUT Next, we have to think of the output — the elements that should be displayed and those that should not. In the marks example, since the task is to prepare a marks sheet, the marks in all the five subjects, their total and average should be displayed on the screen.
  • 21. INPUT Bangla = 60 English = 80 Math = 100 History = 70
  • 23. PROCESSING Average = (Bangla + English + Math + History) / 4
  • 24. Lets write our very first program  Get Inputs from the user  Save them somewhere  Use a math logic to process  Show the result / output.
  • 25. Getting INPUTS  Make a user interface to collect INPUT from user
  • 26. Handling Inputs var a = (input for bangla) var b = (input for english) var c = (input for math) var d = (input for history)
  • 27. Processing & Output var average; // another variable average = (a + b + c + d) / 4; print average;
  • 28. OUTPUT  Our program process the input and show this output.
  • 29. VARIABLE  What is variable?  Variable Naming?
  • 32.
  • 33. Lab - 1  Let’s try variable in PHP environment
  • 34. Input Interface <html> <head><title>Programming – 1</title></head> <body> <form name="test" method="GET”> Name: <input type="text" name=”InputName" /> <input type="submit" name="submit" value="Go" /> </form> </body></html>
  • 35. Programming Process <?php if(isset($_GET['InputName'])) { $name = $_GET['InputName']; echo $name ; } else { // some other code or load form } ?>
  • 36. Another Input <html> <head><title>Programming – 2</title></head> <body> <form name="test" method="GET”> Name: <input type="text" name=”num" /> <input type="submit" name="submit" value="Go" /> </form> </body></html>
  • 37. Programming Process <?php if(isset($_GET[’num'])) { $number1 = $_GET[’num']; echo $number1; $sqr = $number1 * $number1; echo “<br /> “ . $sqr; } else { // some other code or load form } ?>
  • 38. Make a Simple Calculator <html> <head><title>Programming – 3</title></head> <body> <form name="test" method="GET”> Name: <input type="text" name=”num1" /> <input type="text" name=”num2" /> <input type="submit" name="submit" value=”Sum" /> </form> </body></html>
  • 39. Class Contents Get all class contents & codes from our site http://trivuzacademy.com/class-content.php
  • 40. Assignment  Read some article regarding data types  Read some article regarding numbers  Read some article proved by Academy  Write some article regarding all of these
  • 41. Q&A TRIVUz Academy www.trivuzAcademy.com
  • 42. THANK YOU MS Alam TRIVUz trivuz@gmail.com