Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 1.46 KB

File metadata and controls

48 lines (39 loc) · 1.46 KB

Basic Of Algorithm

Input "given" -> Process -> Desired Output -> End User ---->return back to Input

Algorithm Steps :

  1. Define input / output :

    • Input -> What is the input to the algorithm? and where can i store it .
    • Output -> What is the output of the algorithm? and where can i store it.
  2. How to get & store input :

    • How to get input -> Platform for input and output. ( Comunication between user and program)
      • Console "CMD"
      • Web App
      • Mopile App
      • Desktop App
    • How to store input -> How to store the input in the program.
      • Type
        • int , float, double, char, string, bool
      • count -> Number of values.
        • single value -> variable
        • Multiple value -> Array, List
      • How it operate -> data structure
        • Array -> fixed size
        • List -> dynamic size
        • Stack -> LIFO ( Last In First Out)
        • Queue -> FIFO( First In First Out)
  3. How to represent output : -> Conslole (Representation of output)

  4. Convert above to C# / real syntax :

    • Convert to C# -> Convert the above steps to C# syntax.
  5. define the process steps :

    • Define the process steps -> Define the steps to be followed in the algorithm.

      1- Process - Single Task - Multiple Task - Loop -> For, While, Do While - Condition -> If, Else If, Else - Switch Case

      2- Function - user defined function

  6. Implement the process :

    • Convert to Code.
  7. integrate the program parts