INTEL ULTIMATE ENGINEERING EXPERIENCE BUILD AN APP.

Slides:



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

AP Computer Science Anthony Keen. Computer 101 What happens when you turn a computer on? –BIOS tries to start a system loader –A system loader tries to.
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Computer and Programming
Programing Concept Ken Youssefi/Ping HsuIntroduction to Engineering – E10 1 ENGR 10 Introduction to Engineering (Part A)
Your First C++ Program Aug 27, /27/08 CS 150 Introduction to Computer Science I C++  Based on the C programming language  One of today’s most.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Some basic I/O.
Libraries Programs that other people write that help you. #include // enables C++ #include // enables human-readable text #include // enables math functions.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Chapter 7 & 8- Arrays and Strings
COMP 14: Intro. to Intro. to Programming May 23, 2000 Nick Vallidis.
Methods: a first introduction Two ways to make tea: 1: boil water; put teabag into cup;... etc : tell your younger brother: makeTea(1 milk, 0 sugar);
1 The First Step Learning objectives write Java programs that display text on the screen. distinguish between the eight built-in scalar types of Java;
CHAPTER 1 GC 101 Introduction to computers and programs.
CH1 – A 1 st Program Using C#. Program Set of instructions which tell a computer what to do. Machine Language Basic language computers use to control.
C# Tutorial From C++ to C#. Some useful links Msdn C# us/library/kx37x362.aspxhttp://msdn.microsoft.com/en- us/library/kx37x362.aspx.
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Java Programs COMP 102 #3.
A First Program Using C#
Teach.NET Workshop Series Track 4: AP Computer Science with.NET and J#
Introduction to Programming Prof. Rommel Anthony Palomino Department of Computer Science and Information Technology Spring 2011.
11 Getting Started with C# Chapter Objectives You will be able to: 1. Say in general terms how C# differs from C. 2. Create, compile, and run a.
CIS Computer Programming Logic
Introduction to Python
COP1220/CGS2423 Introduction to C++/ C for Engineers Professor: Dr. Miguel Alonso Jr. Fall 2008.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College Lecture 2: Working with Visual.
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
DEPARTMENT OF COMPUTER SCIENCE & TECHNOLOGY FACULTY OF SCIENCE & TECHNOLOGY UNIVERSITY OF UWA WELLASSA 1 CST 221 OBJECT ORIENTED PROGRAMMING(OOP) ( 2 CREDITS.
INTEL ULTIMATE ENGINEERING EXPERIENCE. INSTRUCTORS BRAD NICHOLS MICHAEL KATIC RYAN SCOTT Feel.
CSC Java Programming, Fall, 2008 Week 2: Java Data Types, Control Constructs, and their C++ counterparts, September 4.
Program A computer program (also software, or just a program) is a sequence of instructions written in a sequence to perform a specified task with a computer.
Spring 2008 Mark Fontenot CSE 1341 Principles of Computer Science I Note Set 2.
Introduction to Computer Systems and the Java Programming Language.
Programming Concept Chapter I Introduction to Java Programming.
Basics of Java IMPORTANT: Read Chap 1-6 of How to think like a… Lecture 3.
Netprog: Java Intro1 Crash Course in Java. Netprog: Java Intro2 Why Java? Network Programming in Java is very different than in C/C++ –much more language.
 JAVA Compilation and Interpretation  JAVA Platform Independence  Building First JAVA Program  Escapes Sequences  Display text with printf  Data.
Applied Computing Technology Laboratory QuickStart C# Learning to Program in C# Amy Roberge & John Linehan November 7, 2005.
1 st Semester Module2 Basic C# Concept อภิรักษ์ จันทร์สร้าง Aphirak Jansang Computer Engineering.
College Board A.P. Computer Science A Topics Program Design - Read and understand a problem's description, purpose, and goals. Procedural Constructs.
Teach.NET Workshop Series Track 4: AP Computer Science with.NET and J#
1 CS 007: Introduction to Computer Programming Ihsan Ayyub Qazi.
Chapter 4 Introduction to Classes, Objects, Methods and strings
BEGINNING PROGRAMMING.  Literally – giving instructions to a computer so that it does what you want  Practically – using a programming language (such.
CSCI 3328 Object Oriented Programming in C# Chapter 4: C# Control Statement – Part I 1 Xiang Lian The University of Texas Rio Grande Valley Edinburg, TX.
Computers, Variables and Types Engineering 1D04, Teaching Session 2.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
Chapter 2 Input, Variables and Data Types. JAVA Input JAVA input is not straightforward and is different depending on the JAVA environment that you are.
Introduction to Python Dr. José M. Reyes Álamo. 2 Three Rules of Programming Rule 1: Think before you program Rule 2: A program is a human-readable set.
Object Oriented Programming (OOP) LAB # 1 TA. Maram & TA. Mubaraka TA. Kholood & TA. Aamal.
INTEL ULTIMATE ENGINEERING EXPERIENCE. INTRODUCTIONS.
By Mr. Muhammad Pervez Akhtar
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 3 – Introduction to C# Programming Outline 3.1 Introduction 3.2 Simple Program: Printing a Line.
Aside: Running Supplied *.java Programs Just double clicking on a *.java file may not be too useful! 1.In Eclipse, create a project for this program or.
Spring 2009 Programming Fundamentals I Java Programming XuanTung Hoang Lecture No. 8.
Simple algorithms on an array - compute sum and min.
2: Basics Basics Programming C# © 2003 DevelopMentor, Inc. 12/1/2003.
© Peter Andreae Java Programs COMP 102 # T1 Peter Andreae Computer Science Victoria University of Wellington.
JAVA Programming (Session 2) “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
1 st Semester Module2 Basic C# Concept อภิรักษ์ จันทร์สร้าง Aphirak Jansang Computer Engineering.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Quiz 1 A sample quiz 1 is linked to the grading page on the course web site. Everything up to and including this Friday’s lecture except that conditionals.
Intro to Programming STARS College of Communication and Information Florida State University Written by: Hannah Brock Alissa Ovalle Nicolaus Lopez Martin.
Introduction to Java Programming by Laurie Murphy Revised 09/08/2016.
C# Part 1 Intro to C#. Background Designed to be simple, modern, general- purpose, OO, programming language Strong type checking, array bounds checking,
Lecture 2 D&D Chapter 2 & Intro to Eclipse IDE Date.
Chapter No. : 1 Introduction to Java.
Software Programming J. Holvikivi 2014.
Chapter 3 – Introduction to C# Programming
IS 135 Business Programming
Presentation transcript:

INTEL ULTIMATE ENGINEERING EXPERIENCE BUILD AN APP

TEAM Ashish Amresh  Asst. Professor, College of Technology and Innovation, ASU  Game Design  Software Design Ryan Scott  Senior Computer Science, ASU  Game Development, App Development Glenn Craver  Senior Computer Science, ASU  Game Development, App Development

SNAPSHOT WEEK 2 (June 11-15) MTWTHF 8:00-9:00am / 1:00- 2:00pm Welcome / Week in review / What's Next Introduction to OOP  Objects  Classes  Inheritance  Encapsulation Lab:  Simple XNA game  Update and Draw  Bouncing Balls Introduction to Cellular Automata  Rules  Grids Lab:  Using C# and XNA  Add custom rules  Add custom features Meet Your Mentors Team Activity  Design a real world phenomen a  Develop the rules  Break down the roles and responsibili ties  Learn App Up SDK  App Design and Developme nt App Submission and Demo  Project cleanup  Fix bugs/issues  Test the rules  Prepare App for submission  App demo 9:00- 10:00am / 2:00-3:00pm Talk with an Intel Engineer 10:00- 11:00am / 3:00-4:00pm Introduction to Programming with C#  Loops  Control structures  Iteration  Arrays and structures Lab:  Visual studio set up  C# intro Conway’s Game Of Life  Breakdown of the rules  Developing the algorithm  Creating new impressions Lab:  Canals Framework  Using C# with Canals  Creating a custom automata from scratch 11:00- 12:00pm / 4:00-5:00pm

TODAY WEEK 2 (June 11-15) MTWTHF 8:00-9:00am / 1:00- 2:00pm Welcome / Week in review / What's Next Introduction to OOP  Objects  Classes  Inheritance  Encapsulation Lab:  Simple XNA game  Update and Draw  Bouncing Balls Introduction to Cellular Automata  Rules  Grids Lab:  Using C# and XNA  Add custom rules  Add custom features Meet Your Mentors Team Activity  Design a real world phenomen a  Develop the rules  Break down the roles and responsibili ties  Learn App Up SDK  App Design and Developme nt App Submission and Demo  Project cleanup  Fix bugs/issues  Test the rules  Prepare App for submission  App demo 9:00- 10:00am / 2:00-3:00pm Talk with an Intel Engineer 10:00- 11:00am / 3:00-4:00pm Introduction to Programming with C#  Loops  Control structures  Iteration  Arrays and structures Lab:  Visual studio set up  C# intro Conway’s Game Of Life  Breakdown of the rules  Developing the algorithm  Creating new impressions Lab:  Canals Framework  Using C# with Canals  Creating a custom automata from scratch 11:00- 12:00pm / 4:00-5:00pm

INTRODUCTION Objectives  Learn programming with C#  Learn to use XNA platform  Learn how to develop simple Apps What should you know  How to use a computer  Ability and open mind to learn new tools and technologies What do you need (working at home)   You'll need XNA Game Studio Express(GSE), Visual C# Express Edition, and DirectX Software Development Kit(DirectX SDK).  A simple paint program:

LEARNING C# What programming language is the best?  Python, C#, Java, C++  Language differences  Native vs. Managed Why C#  Managed code  Easy to learn  Object-oriented Technical Requirements  32 or 64 bit  Single or multi-core

HOW DOES A COMPUTER WORK Hard Drive  Data Storage / shelf  Read and write Memory (RAM)  Shopping cart  Temporary storage for all our actions CPU  Checkout machine  Faster the processor the more it can crunch out Motherboard  Floor / store layout  Good motherboard is necessary to maintain good flow between all components Output/Graphics Card/Input  Peripherals or accessories, access data and display it

VISUAL STUDIO: HELLO WORLD  First open Visual Studio 2008 and you will see a start page  Go to File -> New Project -> Visual C# -> "Console application“  Name it Tutorial1

VISUAL STUDIO: HELLO WORLD Learning the basics of a program using System; using System.Collections.Generic; using System.Text; namespace Tutorial1 { class Program { static void Main(string[] args) { } The first thing you might notice is the different colors. Dark blue signifies a code/command that C# recognizes. Light blue indicates a class, while the regular text is for user defined names.

VISUAL STUDIO: HELLO WORLD Program Components  Namespace  Synonymous with a windows folder, a collection of classes used for grouping  Class  Class is a more specific collection than namespace, it holds methods and variables. In C# everything we deal with resides in some class  Methods and Main  Methods are the work horses that do all the crunching of data for your class. The main is a specialized method that is run as soon as a program starts.  Scope  The scope of a namespace, class or method is defined by the { }. It is important to know while programming which scope you are dealing with  Using Statements  Using statements are useful to call other namespaces, so you can bring in additional features that you need into your program.

VISUAL STUDIO: HELLO WORLD Our first program: type this inside of the Main() scope Console.WriteLine("Hello World!"); Console.ReadLine(); namespace Tutorial1 { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); Console.ReadLine(); }

LEARNING C#: VARIABLES Types  Numbers  Int  Float  Double  Char  Unicode  String  Set of unicodes  Bool  True or false  Void namespace Tutorial1 { class Program { static void Main(string[] args) { int herohitpoints; string myname; bool isalive; }

LEARNING C#: VARIABLES Declaration and Assignment

LEARNING C#: VARIABLES  Naming Conventions  Use nouns  Bools can have verbs  Do not capitalize the first letter  Be descriptive  Do not abbreviate  Do not use prefixes or suffixes String yourName Bool isBlack Bool isActive Int DNA Int _hitPoints Int max_number

LEARNING C#: OPERATIONS Operators + - * / % (modulus) 5%2 =1 or 30 % 3.5 = 2 namespace Tutorial1 { class Program { static void Main(string[] args) { double x, y; x = 30.0; y = 3.5; Console.WriteLine(x % y); Console.ReadLine(); }

LEARNING C#: OPERATIONS Operator shorthand X += Y is equal to X = X+Y X -= Y is equal to X = X - Y X *= Y is equal to X = X * Y X /= Y is equal to X = X / Y X++ is equal to X = X +1 X- - is equal to X = X -1 Debugging Use the short hand, and use the Debugger to step in to the code by setting break points. Runtime vs. buildtime errors

LEARNING C#: USING VARIABLES/OPERATIONS

LEARNING C#: CONDITIONALS Operators  < is less than  > is greater than  <= is less than or equal to  >= is greater than or equal to  == is equal to  != is not equal to  && logical “and”  ||logical “or” Example: ((X>3)&&(X<6)) hitPoints == 3

LEARNING C#: LOOPS do/while loop

LEARNING C#: CONDITIONALS The "if" Statement static void Main(string[] args) { int x; x=20; if (x > 0) { x -= 1; Console.WriteLine(x); }

LEARNING C#: CONDITIONALS The "if" Statement

LEARNING C#: CONDITIONALS Switch Statement static void Main(string[] args) { string favoriteColor; Console.WriteLine("What if your favorite color?"); //Incase you were wondering the next statement is reading whatever //is typed and assigning it to favorite color when enter is pressed favoritecolor = Console.ReadLine(); //Just so you know I always type my cases and breaks prior to typing code. //It just seems easier to me. Do whatever you like though switch (favoriteColor) { case "blue": case "Blue": Console.WriteLine("Your favorite color is blue"); break; case "Red": case "red": Console.WriteLine("Your favorite color is red"); break; case "purple": case "Purple": Console.WriteLine("Your favorite color is purple"); break; case "1": Console.WriteLine("You were supposed to pick a color"); break; default: Console.WriteLine("Your favorite color isn't on my list."); break; } Console.ReadLine(); }

LEARNING C#: LOOPS For Loop namespace Tutorial1 { class Program { static void Main(string[] args) { for (int i = 0; i < 10; i++) { Console.WriteLine(i); } Console.ReadLine(); }

LEARNING C#: SIMPLE CALCULATOR Task:  Using loops and conditional statements create a simple calculator application that will take command line inputs and operations (+ - * / %) and process the output.  The flow of the calculator will be as follows:  Enter the first number  Enter the operation  Enter the second number  Write the answer  Ask if you would like to calculate another set of numbers

LEARNING C#: SIMPLE CALCULATOR static void Main(string[] args) { int number1, number2; string numb1,numb2,operrand; string choice; do { Console.WriteLine("Enter a Number"); numb1= Console.ReadLine() ; Console.WriteLine("Enter an operator, ie +,-,*,/"); operrand = Console.ReadLine(); Console.WriteLine("Enter a second number"); numb2 = Console.ReadLine(); Console.WriteLine("The answer is: "); number1 = int.Parse(numb1); number2 = int.Parse(numb2); switch (operrand) { case "+": Console.WriteLine(number1 + number2); break; case "-": Console.WriteLine(number1 - number2); break; case "*": Console.WriteLine(number1 * number2); break; case "/": Console.WriteLine(number1 / number2); break; case "%": Console.WriteLine(number1 % number2); break; default: Console.WriteLine("I'm sorry, that wasn't a valid choice"); break; } Console.WriteLine("Do you want to calculate another set of numbers?"); choice = Console.ReadLine(); } while (choice != "n" && choice != "N"); }