Invent Your Own Computer Games with Python

Slides:



Advertisements
Similar presentations
Designing a Program & the Java Programming Language
Advertisements

Programming for Beginners
Agenda Definitions Evolution of Programming Languages and Personal Computers The C Language.
Computers Are Your Future
Chapter 1: Introduction
Computer Concepts 5th Edition Parsons/Oja Page 546 CHAPTER 11 Software Engineering Section A PARSONS/OJA Computer Programming.
Lecture 1: Intro to Computers Yoni Fridman 6/28/01 6/28/01.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
CMPT 120 Introduction to Computer Science and Programming I Chris Schmidt.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition by Tony Gaddis, Judy Walters,
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
COMP 14: Intro. to Intro. to Programming May 23, 2000 Nick Vallidis.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
Programming. Software is made by programmers Computers need all kinds of software, from operating systems to applications People learn how to tell the.
Programming Concepts and Languages Chapter 12 – Computers: Understanding Technology, 3 rd edition 1November
Concept of Computer Programming November 2, 2011.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Why Program? Computer – programmable machine designed to follow instructions Program – instructions in computer memory to make it do something Programmer.
Chapter Introduction to Computers and Programming 1.
First appearedFeaturesMain paradigmsPopular uses COMPUTING Basic FOR A=1 TO 100 IF A MOD 15 = 0 THEN PRINT “FizzBuzz” ELSE IF A MOD 3 = 0 THEN PRINT “Fizz”
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
 Define a problem  Prepare sequence of instructions for the computer to execute  Verify that the program works as expected.
Introduction to Python Dr. Bernard Chen Ph.D. University of Central Arkansas July 9 th 2012
Hello AP Computer Science!. What are some of the things that you have used computers for?
Programming Languages
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
Hello World 2 What does all that mean?.
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.
History COBOL (Common Business Oriented Language) was one of the earliest high-level programming languages. COBOL was first proposed in 1959 by the Conference.
Programming Languages 1.07a.  A computer program is a series of instructions that direct a computer to perform a certain task.  A programming language.
Session One Introduction. Personal Introduction Role of programmers Robot Examination HUD & HID Uploading Code.
Programming History. Who was the first programmer?
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 13: An Introduction to C++
Programming With C.
Introduction to Computer Systems and the Java Programming Language.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
Programming Concept Chapter I Introduction to Java Programming.
Introduction to Computers (L02) * Hardware * Software * Programming Languages * Three Phase of Program Development * Development and Design Steps * Algorithms.
Object-Oriented Program Development Using Java: A Class-Centered Approach, Enhanced Edition.
Structured Programming
BEGINNING PROGRAMMING.  Literally – giving instructions to a computer so that it does what you want  Practically – using a programming language (such.
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
Hello Computer Science!. Below is an example of a Hello World program in JAVA. While it is only three lines of code, there are many things that are happening.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
IBM-Mainframes COBOL Class-1. Background and History  COBOL is an acronym for: Common Business Oriented Language  COBOL was developed in 1959 by the.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Agenda Computer Languages How to Write a Simple C Program
5.0 PROGRAMMING Duration: 10 weeks Prepared by Ong Lay Peng Copyright © 2007.
First appeared Features Popular uses Assembly 1949 For code that must directly interact with the hardware (drivers), embedded processors, processor specific.
LESSON 1 Introduction to Programming Language. Computer  Comprised of various devices that are referred to as HARDWARE.  The computer programs that.
Computer Programming A simple example /* HelloWorld: A simple C program */ #include int main (void) { printf (“Hello world!\n”); return.
Brief Version of Starting Out with C++ Chapter 1 Introduction to Computers and Programming.
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
Computer Science A 1. Course plan Introduction to programming Basic concepts of typical programming languages. Tools: compiler, editor, integrated editor,
Chapter 1: Introduction to Computers and Programming.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Software Engineering Algorithms, Compilers, & Lifecycle.
Introduction to Computer Science What is Computer Science? Getting Started Programming.
Pseudocode FORTRAN (original) INPUT number
Computer Programming.
(A crash-course overview for humanities folk) Part I
Introduction to Computers and Python
Programming.
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
Presentation transcript:

Invent Your Own Computer Games with Python Week 1 Introduction to Programming Invent Your Own Computer Games with Python

Chapter One Installing Python Learn to Program by game design Computers are GOOD! Sometimes…. What is a program? Step-by-Step Instructions Algorithm Psuedocode Flowchart Source Code

Why Learn Programming? …for Fun or just a challenge. People learn programming like a hobby …for a new career. Programmers can usually make a good salary …to fill a need. They need a program to solve a certain problem …as an Intellectual Challenge. Computing is a fascinating study

Why Learn Programming? …for Fun or just a challenge. People learn programming like a hobby …for a new career. Programmers can usually make a good salary …to fill a need. They need a program to solve a certain problem …as an Intellectual Challenge. Computing is a fascinating study

How Does a Computer Program Work? Computers don’t do anything without someone telling them what to do! A program is like a recipe. Statements tell the computer what to do with the variables. It contains a list of ingredients: variables and a list of directions - called statements A variable can represent numeric data, text, or graphical images.

What is a Computer Program? An organized list of instructions that, when executed, causes the computer to behave in a predetermined manner. What is a Computer Program? A set of step by step instructions Software Code A program tells the computer how to accept input, manipulate it and turn it into something useful.

AND: to be willing to put in the time to learn a new skill, AND, Isn’t difficult Programming It is time-consuming! All you need is: Curiosity Desire Imagination Programming Isn’t difficult but it is time-consuming All you need is the desire to do the work The curiosity to explore The imagination to create Tenacity, and the willingness to take the time to learn a new skill.. And not be afraid of failing! AND: to be willing to put in the time to learn a new skill, AND, not to be afraid of failing. 

Who Writes Programs? Developers Programmers Analysts Developer, developer, developer, developers! Software Engineers

Missile guidance systems Create Modify Programmers: Write Maintain Develop Missile guidance systems Games Operating Systems Programmers write code, create programs.. Modify, maintain and develop new applications. They write operating systems, games, reports, missile guidance systems and the list goes on.. If you are wise you will pick the most current language and technologies and the best companies and environments to work in and with. Here are two types of career paths.. You choose..

Programming Languages Computers are not very smart.   They really only understand one language, Machine Language.   Machine language is made up of ones (1) and zeros (0). Binary Code 0010 1010 0001 1101  1101 1111 0010 1001   There are 10 kinds of people in the world - those who understand binary and those who don't.

Programming Languages High-level languages C, C++, Pascal, BASIC, QBasic, RPGLE, FORTRAN, COBOL, LISP, Java, Visual Basic, C#, Scripting Languages. Low-level languages The Low-level languages like assembly languages are more difficult to write. They are closer to the language used by a computer, while high-level languages are closer to human languages.

HELLO WORLD!

Various Language Examples Basic 10 print"Hello World!“ 20 goto 10 #include <stdio.h> main() { for(;;) { printf ("Hello World!\n");} } C http://www2.latech.edu/~acm/HelloWorld.shtml

C++ RPGLE #include <iostream.h> main() { for(;;) { cout << "Hello World! "; } C++ RPGLE H FSCREEN O F 80 80 CRT C EXCPT OSCREEN E 1 O 12 'HELLO WORLD!'

COBOL 000100 IDENTIFICATION DIVISION. 000200 PROGRAM-ID. HELLOWORLD. 000300 DATE-WRITTEN. 02/05/96 21:04. 000400* AUTHOR BRIAN COLLINS 000500 ENVIRONMENT DIVISION. 000600 CONFIGURATION SECTION. 000700 SOURCE-COMPUTER. RM-COBOL. 000800 OBJECT-COMPUTER. RM-COBOL. 000900 001000 DATA DIVISION. 001100 FILE SECTION. 001200 100000 PROCEDURE DIVISION. 100100 100200 MAIN-LOGIC SECTION. 100300 BEGIN. 100400 DISPLAY " " LINE 1 POSITION 1 ERASE EOS. 100500 DISPLAY "HELLO, WORLD." LINE 15 POSITION 10. 100600 STOP RUN. 100700 MAIN-LOGIC-EXIT. 100800 EXIT.

QBASIC Pascal Perl begin: print "Hello World!" goto begin Program Hello (Input, Output); Begin Writeln ('Hello World!'); End. Perl print "Hello, World!\n" while (1);

HTML Java <HTML> <HEAD> <TITLE>Hello, World Page!</TITLE> </HEAD> <BODY> Hello, World! </BODY> </HTML> Java class HelloWorld { public static void main (String args[]) { for (;;) { System.out.print("Hello World "); }

JavaScript Dos batch file <TITLE> Hello World in JavaScript document.write ("Hello, world!") </SCRIPT> Dos batch file @echo off :top echo "Hello, World!" goto top

Python C# # here it is print("Hello, World!") OR x = 1 while True: using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int number = 0; while(number < 5) { Console.WriteLine(number); number = number + 1; } Console.ReadLine(); } } }

That’s enough! Let’s write some code