Tuesday, October 6, 2015

Intro to programming


         Programming helps you understand the computers.
A set of rules that provides a way of telling a computer what operations to perform is called a programming language.

program is a set of step-by-step instructions that directs the computer to do the tasks you want it to do and produce the results you want. Programmer’s job is to convert problem solutions into instructions for the computer.
Programmer prepares instructions of a computer program.
The programming Process
}Defining the problem
}Planning the solution
}Coding the program
}Testing the program
}Documenting the program
Symbol    Meaning
}==     Equals
}!=     Not Equal
}<     Less than
}<=     Less than or equal to
}  Greater than
}>=     Greater than or equal to
Programming as a Career
The Joys of the Field
What It Takes  
Open Doors 
Levels of Language 
}Machine language
}Assembly languages
}High-level languages
}Very high-level languages
}Natural languages
Flowchart
is a type of diagram that represents an algorithm, workflow or process, showing the steps as boxes of various kinds, and their order by connecting them with arrows.
a picture of the separate steps of a process in sequential order.
Flowchart Basic Procedure
}Define the process to be diagrammed. Write its title at the top of the work surface.
}Discuss and decide on the boundaries of your process: Where or when does the process start? Where or when does it end? Discuss and decide on the level of detail to be included in the diagram.
}Brainstorm the activities that take place. Write each on a card or sticky note. Sequence is not important at this point, although thinking in sequence may help people remember all the steps.
Algorithm
-a procedure or formula for solving a problem.
-a step-by-step procedure for solving a problem.
How does it work?
Start with input  > Do complex calculations > Stop when we find the answer 
Flowchart and Pseudocode
Write a program that reads two numbers and displays the numbers in decreasing order.

1 comment: