Programming. In your own words, explain what an algorithm is, and give an example of how people use algorithms every day.

Slides:



Advertisements
Similar presentations
Chapter 3: Modules, Hierarchy Charts, and Documentation
Advertisements

COMPUTER PROGRAMMING I Understand Problem Solving Tools to Design Programming Solutions.
PSEUDOCODE & FLOW CHART
Chapter 1 - An Introduction to Computers and Problem Solving
Chapter 2 - Problem Solving
Chapter 2 - Problem Solving
Programming Creating programs that run on your PC
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Computers: Tools for an Information Age
Program Flow Charting How to tackle the beginning stage a program design.
Program Flow Charting How to tackle the beginning stage a program design.
Chapter 1 Program Design
Intro to Programming CST JavaScript. Objectives Define software Identify the different types of software Differentiate the different types of programming.
Introduction to Computers and Programming
Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
Programming In C++ Spring Semester 2013 Programming In C++, Lecture 1.
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
Introducing Java.
Simple Program Design Third Edition A Step-by-Step Approach
CIS Computer Programming Logic
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
Computer Concepts 2014 Chapter 12 Computer Programming.
Describe the Program Development Cycle. Program Development Cycle The program development cycle is a series of steps programmers use to build computer.
S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S A computer is a mechanical or electrical device which stores, retrieves,
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Flowcharts.
What does a computer program look like: a general overview.
Problem Solving using the Science of Computing MSE 2400 EaLiCaRA Spring 2015 Dr. Tom Way.
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
Module 1 – Lesson 6 Ms. Tracy. Bell Ringer What is the typical useful life for a personal computer?
CS 127 Introduction to Computer Science. What is a computer?  “A machine that stores and manipulates information under the control of a changeable program”
©2016 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. CSC 110 – INTRO TO COMPUTING - PROGRAMMING Overview of Programming.
Chapter 2 - VB 2005 by Schneider- modified by S. Jane '081 Chapter 2 - Problem Solving 2.1 Program Development Cycle 2.2 Programming Tools.
1 Overview of Programming Principles of Computers.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
INTRODUCTION TO COMPUTER PROGRAMMING(IT-303) Basics.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
Algorithms and Flowcharts
CSCI-235 Micro-Computer Applications
Key Ideas from day 1 slides
Introduction to Visual Basic 2008 Programming
Algorithm and Ambiguity
Computer Programming.
Programming languages and software development
Title Layout Subtitle.
Title Layout Subtitle.
Title Layout Subtitle.
Flowcharting & Algorithms
Title Layout Subtitle.
Title Layout Subtitle.
ICT Programming Lesson 1:
ICT Gaming Lesson 2.
Understand the interaction between computer hardware and software
Title Layout Subtitle.
Title Layout Subtitle.
Title layout Subtitle.
Title Layout Subtitle.
Title Layout Subtitle.
Title Layout Subtitle.
Title Layout Subtitle.
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Title Layout Subtitle.
Presentation transcript:

Programming

In your own words, explain what an algorithm is, and give an example of how people use algorithms every day.

Programming Language Example:

The words and symbols that a programmer uses are known as syntax. Each programming language has its own syntax rules. Some different types of coding languages include Python, Ruby and Squeak (a version of Java SmallTalk that is used on the Scratch site). Examples of programming languages that can be used to create computer games include C++,.NET, Java, etc. Program developers choose the programming languages they will use depending on which platform and device the program will be using, such as Windows, Mac, Android or iOS.

In programming, creating a plan to solve a problem or perform a certain task is known as writing an algorithm. An algorithm is a set of step-by-step instructions that must be executed in order to solve a problem or perform a task. An algorithm is how we get computers to solve problems. They tell the computer what to do and how to do it.

People use algorithms every day but often do not refer to them as algorithms or think about the individual steps used. For example, making a sandwich, getting dressed, going to school, or cooking a meal, are all accomplished using algorithms. There can be numerous ways to solve a problem or perform a particular task. For example, what are the steps and time frames for your “going to school” algorithm?

Santa’s Dirty Socks A&list=UUI3-5XVIw7-JI1a4VhuMZzw What is an Algorithm? Video

Programmers must create efficient algorithms so that programs can run as fast as possible.

Define in your own words: Game Programmer = Data = Precise = Executing = Programming Language = Syntax = Algorithm = Efficient = Pseudo-code=

Game Programmer = software engineer generally creating codebase for videogames or related software Data = Computers store, retrieve, manipulate, and display data. Precise = exact in measuring, recording, etc.: Computers do what we program. No more, no less. Executing = Running the Program

Programming Language = A set of rules written for a computer to perform specific tasks. Usually in a high level language like Basic or C++. Written in text and symbols. Syntax = language defining how declarations, functions, commands, and other statements should be arranged.functions In order to create a set of instructions to solve a problem or perform a task, you must complete several activities. For example, identifying and understanding the problem, using logic to plan a solution to a problem, creating the procedures needed to execute the solution, and finally testing and refining the solution. This basic process is used to create computer programs.

Algorithm = Creating a plan / step-by-step instructions that must be executed in order to solve a problem or perform a task. An algorithm is how we get computers to solve problems. In order to create a set of instructions to solve a problem or perform a task, you must complete several activities. For example, identifying and understanding the problem, using logic to plan a solution to a problem, creating the procedures needed to execute the solution, and finally testing and refining the solution. This basic process is used to create computer programs. “What’s an Algorithm?” Video

Efficient = using the least number of steps necessary to complete a task Pseudo-Code = a way of writing the details of algorithm steps in plain text using short phrases to describe the project outline. Sequential program structure= Selection program structure = Repetition program structure =

Flow Chart Symbols

Flow Chart Example

These methods do two things: o They provide the programmer with a way of outlining a program algorithm. o They also allow the programmer to focus on the logic of the algorithm and make refinements before translating it into programming language statements.

The five basic operators of a programming language are: IF, THEN, AND, OR, and ELSE. o Example, if the condition “Do you know your password?” is answered TRUE (yes), THEN you can access the Web site. o If the condition is NOT TRUE (no), then the ELSE event is initiated, which is “You cannot access the Web site.”

Operator Cause Operator Effect IF I am tired THEN I will take a nap IF I am thirsty THEN I will drink water IF I have a test THEN I will study

Group AGroup B Class Class Class First bullet point here Second bullet point here Third bullet point here Two Content Layout with Table

First bullet point here Second bullet point here Third bullet point here Task 1 Task 2Task 3Task 4Task 5Task 6Task 7 Two Content Layout with SmartArt