SlideShare a Scribd company logo
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
Programming Fundamentals
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

More Related Content

PPTX
Introduction to programming
PPTX
Programming Fundamentals lecture 1
PPT
Intro To Programming Concepts
PPT
Computer programming concepts
PPT
Programming
PPTX
Basic programming concepts
PPTX
introduction to programming languages
PPT
pseudo code basics
Introduction to programming
Programming Fundamentals lecture 1
Intro To Programming Concepts
Computer programming concepts
Programming
Basic programming concepts
introduction to programming languages
pseudo code basics

What's hot (20)

PPT
Chapter 1 - An Introduction to Programming
PPTX
pseudocode and Flowchart
PDF
Introduction to Operating Systems
PPT
Introduction to computer programming
PPTX
Algorithms and Flowcharts
PDF
Computer Programming
PPSX
Programming Fundamental Presentation
PPTX
Computer programming
PPT
Lect 1. introduction to programming languages
PPTX
PPTX
Operating systems
PPTX
Types of operating system
PPTX
Introduction to JAVA
PPT
User Interface
PPTX
Introduction to Software Engineering
PPTX
Programming Fundamental Slide No.1
PDF
SPL 2 | Algorithms, Pseudo-code, and Flowchart
PPT
Computer Programming - Lecture 1
PPTX
Introduction to php
PPTX
Our presentation on algorithm design
Chapter 1 - An Introduction to Programming
pseudocode and Flowchart
Introduction to Operating Systems
Introduction to computer programming
Algorithms and Flowcharts
Computer Programming
Programming Fundamental Presentation
Computer programming
Lect 1. introduction to programming languages
Operating systems
Types of operating system
Introduction to JAVA
User Interface
Introduction to Software Engineering
Programming Fundamental Slide No.1
SPL 2 | Algorithms, Pseudo-code, and Flowchart
Computer Programming - Lecture 1
Introduction to php
Our presentation on algorithm design
Ad

Viewers also liked (20)

PPTX
Programming fundamentals lecture 1 0f c
PPT
Programming fundamentals lecture 1&2
PPT
Fundamental Programming Lect 1
PPT
Fundamental Programming Lect 2
PPT
Fundamental Programming Lect 3
PPTX
Chapter 1: Intro to Funds of Programming
PDF
Introduction to computer programming
PDF
Intro to C++ - language
PPTX
Programming languages
PPTX
Computer Languages.
PPT
Programming languages
PPTX
Functional Programming Fundamentals
PPT
20. Object-Oriented Programming Fundamental Principles
PPTX
Introduction to Pseudocode
PDF
THINK LIKE A CHILD
PPTX
Programming Basics - array, loops, funcitons
PPTX
C++ Programming Club-Lecture 1
PDF
Automating Quantitative Narrative Analysis of News Data
DOC
Kandungan nota
PDF
Fundamentals of programming)
Programming fundamentals lecture 1 0f c
Programming fundamentals lecture 1&2
Fundamental Programming Lect 1
Fundamental Programming Lect 2
Fundamental Programming Lect 3
Chapter 1: Intro to Funds of Programming
Introduction to computer programming
Intro to C++ - language
Programming languages
Computer Languages.
Programming languages
Functional Programming Fundamentals
20. Object-Oriented Programming Fundamental Principles
Introduction to Pseudocode
THINK LIKE A CHILD
Programming Basics - array, loops, funcitons
C++ Programming Club-Lecture 1
Automating Quantitative Narrative Analysis of News Data
Kandungan nota
Fundamentals of programming)
Ad

Similar to Programming Fundamentals (20)

PPTX
01 Programming Fundamentals.pptx
PPT
Programming Fundamentals - Lecture 1.ppt
PPT
Basic of Programming (Introduction to Programming)
PPT
Introduction To Programming
PDF
Introduction to programming by MUFIX Commnity
PDF
Introduction To Programming (2009 2010)
PPTX
introduction to problem solving and programming
PPTX
Pseudocode
PPT
Chapter 2- Prog101.ppt
PPTX
Developing a Coding Program for Users - SWFLN Makerpalooza - Session 4
PPTX
Computer Programing G10.pptx It refers to the Introduction of Programing
PDF
Intro to Programming
PPTX
INTRODUCTION TO CODING-CLASS VI LEVEL-DESCRIPTION ABOUT SYNTAX LANGUAGE
PPTX
classVI_Coding_Teacher_Presentation.pptx
PPTX
classVI_Coding_Teacher_Presentation.pptx
PPTX
Power Point Introduction To Programming 1
PDF
Visual Logic Project - 1
PPTX
classVII_Coding_Teacher_Presentation.pptx
PDF
01 - Introduction to Computer and Algorithm (1).pdf
PPTX
Coding with Maker Tech
01 Programming Fundamentals.pptx
Programming Fundamentals - Lecture 1.ppt
Basic of Programming (Introduction to Programming)
Introduction To Programming
Introduction to programming by MUFIX Commnity
Introduction To Programming (2009 2010)
introduction to problem solving and programming
Pseudocode
Chapter 2- Prog101.ppt
Developing a Coding Program for Users - SWFLN Makerpalooza - Session 4
Computer Programing G10.pptx It refers to the Introduction of Programing
Intro to Programming
INTRODUCTION TO CODING-CLASS VI LEVEL-DESCRIPTION ABOUT SYNTAX LANGUAGE
classVI_Coding_Teacher_Presentation.pptx
classVI_Coding_Teacher_Presentation.pptx
Power Point Introduction To Programming 1
Visual Logic Project - 1
classVII_Coding_Teacher_Presentation.pptx
01 - Introduction to Computer and Algorithm (1).pdf
Coding with Maker Tech

Recently uploaded (20)

PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
01-Introduction-to-Information-Management.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
102 student loan defaulters named and shamed – Is someone you know on the list?
Anesthesia in Laparoscopic Surgery in India
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Microbial diseases, their pathogenesis and prophylaxis
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Renaissance Architecture: A Journey from Faith to Humanism
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Cell Types and Its function , kingdom of life
Microbial disease of the cardiovascular and lymphatic systems
TR - Agricultural Crops Production NC III.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Supply Chain Operations Speaking Notes -ICLT Program
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
01-Introduction-to-Information-Management.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Final Presentation General Medicine 03-08-2024.pptx

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?
  • 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