Alice 2.0 an introduction to computer programming.

Slides:



Advertisements
Similar presentations
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Advertisements

Software Development Languages and Environments. Programming languages High level languages are problem orientated contain many English words are easier.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Copyright © 2002 W. A. Tucker1 Chapter 1 Lecture Notes Bill Tucker Austin Community College COSC 1315.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Program Flow Charting How to tackle the beginning stage a program design.
Java Programming, 3e Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Slide 1 ICS 012 Visual Programming I Ahmed Esmat Second.
Program Development and Programming Languages
Chapter 2: Developing a Program Extended and Concise Prelude to Programming Concepts and Design Copyright © 2003 Scott/Jones, Inc.. All rights reserved.
Objectives Machine language vs.. High-level language Procedure-oriented, object-oriented, and event- driven languages Background of Visual Basic VB Integrated.
Copyright © 2001 by Wiley. All rights reserved. Chapter 1: Introduction to Programming and Visual Basic Computer Operations What is Programming? OOED Programming.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and.
Your Interactive Guide to the Digital World Discovering Computers 2012.
Chapter Introduction to Computers and Programming 1.
Introduction 01_intro.ppt
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Chapter 2: Developing a Program Prelude to Programming Concepts and Design Copyright © 2001 Scott/Jones, Inc.. All rights reserved. 1 Chapter 2 Developing.
1 Integrated Development Environment Building Your First Project (A Step-By-Step Approach)
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Developing a Program.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 1B Introduction (Tutorial)
Event Driven Programming
Top-Down Design and Modular Development
The Program Development Cycle
Chapter 3: Completing the Problem- Solving Process and Getting Started with C++ Introduction to Programming with C++ Fourth Edition.
Programming Lifecycle
Visual C++ Programming: Concepts and Projects
Computer Science II 810:062 Section 01. How is CS I different from CS II? When you teach Java there are a series of decisions that have to be made…
CHAPTER ONE Problem Solving and the Object- Oriented Paradigm.
Top-Down Design and Modular Development. The process of developing methods for objects is mostly a process of developing algorithms; each method is an.
University of Sunderland CIF 102/FIF102 Fundamentals of DatabasesUnit 15 Programming in Microsoft Access using VBA Using VBA to add functionality.
Program Development Cycle Modern software developers base many of their techniques on traditional approaches to mathematical problem solving. One such.
The basics of the programming process The development of programming languages to improve software development Programming languages that the average user.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Chapter One An Introduction to Programming and Visual Basic.
© 2006 Pearson Addison-Wesley. All rights reserved2-1 Chapter 2 Principles of Programming & Software Engineering.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
© 2006 Pearson Addison-Wesley. All rights reserved 2-1 Chapter 2 Principles of Programming & Software Engineering.
Structured Programming (4 Credits)
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
COMPUTER III. Fundamental Concepts of Programming Control Structures Sequence Selection Iteration Flowchart Construction Introduction to Visual Basic.
How Computers Solve Problems Computers also use Algorithms to solve problems, and change data into information Computers can only perform one simple step.
Chapter 1: Introduction to Computers and Programming.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 1 An Introduction to Visual Basic.NET and Program Design.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Software Engineering Algorithms, Compilers, & Lifecycle.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
 Problem Analysis  Coding  Debugging  Testing.
CIS 365: Visual Application Development Introduction to Computers and Programming.
ICS 3UI - Introduction to Computer Science
Introduction to Programming and Visual Basic
An Introduction to Programming and VB.NET
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING (OOP) & CONCEPTS
Problem Solving Techniques
Hands-on Introduction to Visual Basic .NET
Chapter One: An Introduction to Programming and Visual Basic
Alice terms Chapter 3.
ICT Gaming Lesson 2.
ICT Programming Lesson 5:
Top-Down Design & JSP Skill Area Part D
Ch. 1 Vocabulary Alice.
Object-Oriented Programming (OOPs)
Presentation transcript:

Alice 2.0 an introduction to computer programming

Alice 2.0 Part I: What is Alice? Part I: What is Alice? Part I: What is Alice? Part I: What is Alice? Part II: Software Development Part II: Software Development Part II: Software Development Part II: Software Development Part III: Elements of Programming Part III: Elements of Programming Part III: Elements of Programming Part III: Elements of Programming Part IV: Event-Driven Programming Part IV: Event-Driven Programming Part IV: Event-Driven Programming Part IV: Event-Driven Programming

Part I: What is Alice?

What is Alice 2.0? It is a computer application... created by Carnegie Mellon University, to “teach” computer programming. Alice 2.0 is designed to create computer applications – (i.e. build programs).

Who should use Alice? Anyone interested in learning the underlying skills required for programming in most languages. And All of YOU lucky CS109 students in this class!

Why use Alice? Why not just jump into C++ or Java? Alice makes learning programming easier… removing the challenges of programming syntax, and “debugging” is made easier with visual cues. //c++ application int main(0) { char display[20]; getline (display,20,\n); cout>>display; return; }

What type of programming does Alice teach? Alice utilizes the concepts of OOP (Object Oriented Programming), and Event Driven Programming (i.e. an “event trigger” causes a series of commands/instructions to be exectuted).

Object Basics Objects have properties (description)

Object Basics Objects have methods (behaviors) Note: functions are a method that returns a value. Method (code) to make beak open and close

The Alice IDE (integrated development environment) or simply put – The Alice Interface This is the work area for programming with Alice…

The IDE Object Tree

Now you know what Alice is… the end (Part I)

Time to try out Alice…

Part II: Software Development It’s not just Alice anymore.

The Software Development Cycle 1. Design Phase In the Design Phase, information is gathered to determine the task/problem to be solved by the application. The task/problem is broken into smaller tasks, called modules. Then a “plan of attack” is created.

The Software Development Cycle 2. Implementation Phase In the Implementation Phase, the solution to the problem/task is coded to build the application.

3. Testing Phase In the Testing Phase, the application is tested – Individual modules Combined modules Entire application

The Software Development Cycle 4. Debugging Phase In the Debugging Phase, The errors and side effects (unwanted results) are corrected.

The Software Development Cycle 5. Documentation Finally, once the application works as required by the Design Phase – the application and its workings are documented – for users of the application for future programmers to modify the application

Now you know the software development cycle…the end (Part II)

Part III: Elements of Programming

Programming Rule #1 Algorithm: A step by step method for solving a problem Programs are algorithms created to solve problems. Thus, programs are linear – They start at the top (beginning) and proceed to the bottom (end).

Key Programming Commands Selection/Branching – if/else (decision point or multiple points) Do you want a glass of milk? Make glass of milk choc straw Make c Make s Make plain

Key Programming Commands Repetition/Looping – loop & while (repeating a task) Loops can be pre-test, or post-test

Key Programming Commands Are you Boolean Logical? Boolean values are easy, as there are only 2. 0 – off/false 1 – on/true Logic Operators: ==, <,<=, >,>=, !=

Now you know the key elements to programming…the end (Part III)

Part IV: Event-Driven Programming In order to cause an “event” to occur – the user must invoke the “event trigger”.

Events & Methods The event – chicken rolling and changing colors (as defined by the method “Silly Chicken”) “occurs” when the “event trigger” (mouse click on chicken) is detected by the “event listener”. Note: The Silly Chicken method is known as the “event handler”.

Adding a Billboard Billboards are used in Alice to list keyboard controls (event triggers) available to the user. 1. C reate the control billboard using Paint 2. U se a textbox in Paint to list the commands of your Alice World 3. S ave the file as a.jpg 4. I mport and use the file as listed on pages

Time to try out Alice… and explore the world of programming!