Algorithm is a prescribed set of well defined rules or instructions for the solution of the problem. Algorithmic language is a language or notation used.

Slides:



Advertisements
Similar presentations
Working With Algorithm and Flowcharts
Advertisements

Slide 1 Today you will: Review knowledge and understanding of systems Understand what a system is and what it consists of Apply this understanding by working.
Write a program step by step. Step 1: Problem definition. Given the coordinate of two points in 2-D space, compute and print their straight distance.
Looping while … do …. Condition Process 2 Process 1 Y Repeated Loop.
Unit 7.6 Lesson 2 Goals Identify and use flowchart symbols. Plan a sequence of events and incorporate them into a flowchart. Create a simple flowchart.
 Draft timetable has the same times as this semester: - ◦ Monday 9:00 am to 12:00 noon, 1:00 pm to 3:00 pm. ◦ Tuesday 9:00 am to 12:00 noon, 1:00 pm.
place a teabag in a mug; boil some water; pour over teabag; wait until strong enough; remove the teabag; add some milk and stir. what is this?
CSE1301 Computer Programming Lecture 4: C Primitives I.
CS211 Data Structures Sami Rollins Fall 2004.
CS201 - Information. CS201 - Laboratories All labs will be done using Linux on the PC’s or esus. All labs MUST use Makefiles. First lab is due NEXT WEEK.
Programming Fundamentals (750113) Ch1. Problem Solving
CS 101 Problem Solving and Structured Programming in C Sami Rollins Spring 2003.
Introduction to Algorithm – part one Jennifer Elmer Form 3 Computing.
Programming is instructing a computer to perform a task for you with the help of a programming language.
Numbering Systems. Computers do not use English. They do not use words Computers run on NUMBERS only Those numbers are in BINARY only.
C Programming Lecture 3. The Three Stages of Compiling a Program b The preprocessor is invoked The source code is modified b The compiler itself is invoked.
CS001 Introduction to Programming Day 5 Sujana Jyothi
General Computer Science for Engineers CISC 106 Lecture 02 Dr. John Cavazos Computer and Information Sciences 09/03/2010.
Hello World 2 What does all that mean?.
Introduction to Computational Linguistics Programming I.
Introduction to Robo Pro
A PowerPoint about Algorithm’s. What is an algorithm?  a process or set of rules to be followed in calculations or other problem-solving operations,
Introduction to Computers (L02) * Hardware * Software * Programming Languages * Three Phase of Program Development * Development and Design Steps * Algorithms.
CPS120 Introduction to Computer Programming The Programming Process.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
Problem Solving and Program Design in C (5th Edition) by Jeri R. Hanly and Elliot B. Koffman Chapter 1 (Software Development Method) © CPCS
Slide 1 What makes up an information system? Input Process Output Temperature and rainfall from a variety of places Analyse the information and present.
CSC1201: Programming Language 2 Lecture 1 Level 2 Course Nouf Aljaffan (C) CSC 1201 Course at KSU1.
Learn about the system life cycle Plan the outline of your project
Sequence Damian Gordon. Pseudocode When we write programs, we assume that the computer executes the program starting at the beginning and working its.
1 CSE1301 Computer Programming Lecture 13 Functions (Part 1)
Software Interrupt Instruction ‘int’ A ‘int’ instruction is like a special kind of subroutine call. Will discuss details later ‘int’ stands for INTERRUPT.
Software Development. Software Development Loop Design  Programmers need a solid foundation before they start coding anything  Understand the task.
Structured Programming (4 Credits)
1 Introduction to Python LING 5200 Computational Corpus Linguistics Martha Palmer.
Computer Programming A simple example /* HelloWorld: A simple C program */ #include int main (void) { printf (“Hello world!\n”); return.
Computer Control Using computers to do tasks. What are Computers used for? ringing your alarm clock. microwaving your breakfast checking for text messages.
Flowcharts C++ Lab. Algorithm An informal definition of an algorithm is: a step-by-step method for solving a problem or doing a task. Input data A step-by-step.
AND Gate Inputs Output Input A (Switch) Input B (Switch) Output Y (Lamp) 0 (Open) 0 (OFF) A B Lamp.
CS 101 – Oct. 7 Solving simple problems: create algorithm Structure of solution –Sequence of steps (1,2,3….) –Sometimes we need to make a choice –Sometimes.
Sequences, Modules and Variables David Millard
Comp1004: Programming in Java II Computational Thinking.
Software Engineering Algorithms, Compilers, & Lifecycle.
From Algorithms to Programs Both are sets of instructions on how to do a task Algorithm: –talking to humans, easy to understand –in plain (English) language.
Software Development.
CSCE 206 Structured Programming in C
Programming what is C++
Input and Output Upsorn Praphamontripong CS 1110
Computer Programming.
1-1 Logic and Syntax A computer program is a solution to a problem.
Computer Programming Chapter 1: Introduction
Introduction to Algorithm – part 1
Problem Solving and Programming CS140: Introduction to Computing 1 8/21/13.
Hello World 2 What does all that mean?.
Chapter 4 LOOPS © Bobby Hoggard, Department of Computer Science, East Carolina University / These slides may not be used or duplicated without permission.
Programming Right from the Start with Visual Basic .NET 1/e
Programming Languages
CSI 121 Structured Programming Language Lecture 13 Functions (Part 1)
Programming Fundamentals (750113) Ch1. Problem Solving
Programming Fundamentals (750113) Ch1. Problem Solving
Function Notation “f of x” Input = x Output = f(x) = y.
Computer Programming.
Flowchart Repetition Problem Solving.
Computer Science Core Concepts
An algebraic expression that defines a function is a function rule.
Programming Fundamentals (750113) Ch1. Problem Solving
Programming Fundamentals (750113) Ch1. Problem Solving
Computer Science 1 For..do loop Dry Run Take notes on the For loop
Lesson 3.3 Writing functions.
Presentation transcript:

Algorithm is a prescribed set of well defined rules or instructions for the solution of the problem. Algorithmic language is a language or notation used to express clearly an algorithm.

 1) Linear - Линейный  2) Branching - Разветвляющийся  3) Loop (Cycle) - Циклический

 High level language – A variety of programming language in which the control and data structures reflect the requirements of the problem. It is translated in to machine code by compiler.(Pascal, Delphi, C, C++, etc)  Low level language – A variety of programming language in which the control and data structures directly reflect the underlying machine architecture(Assembler, CIL, etc)

Begin Data input Data output End Operations

1. Pour milk in the cup 2. Put the cup on the stove 3. Light the match 4. Bring the burning match to the stove 5. Switch on the stove 6. Wait, until milk boils 7. Switch off the stove

1. Pour milk in the cup 2. Switch on the stove 3. Light the match 4. Bring the burning match to the stove 5. Put the cup on the stove 6. Wait, until milk boils 7. Switch off the stove

 Program HW;  begin  writeln (‘ Pour milk in the cup ’); // shows on the screen  writeln (‘ Put the cup on the stove ’);  writeln (‘ Light the match ’);  writeln (‘ Bring the burning match to the stove ’);  writeln (‘ Switch on the stove ’);  writeln (‘ Wait, until milk boils ’);  writeln (‘ Switch off the stove ’);  End.

Program HW; begin writeln (‘Hello world’); // shows on the screen End. print "Hello, world!“ #include int main(void) { printf("Hello, world\n"); //shows on the screen return 0; } <?php echo "Hello, world!"; ?>