Intro to Programming STARS College of Communication and Information Florida State University Written by: Hannah Brock Alissa Ovalle Nicolaus Lopez Martin.

Slides:



Advertisements
Similar presentations
Chapter 9 Interactive Multimedia Authoring with Flash Introduction to Programming 1.
Advertisements

08/2012Tanya Mishra1 EASYC for VEX Cortex Llano Estacado RoboRaiders FRC Team 1817.
 2005 Pearson Education, Inc. All rights reserved Introduction.
1 Chapter 2 Introduction to Java Applications Introduction Java application programming Display ____________________ Obtain information from the.
INSTRUCTOR: SHIH-SHINH HUANG Windows Programming Using Java Chapter4: Control Statements Part I.
1 Javascrbipt Intro Javascript (or js) is a programming language. Interpreted, not compiled. Not the same as java, but, similar. Use tags to use. Object-oriented.
1 Control Structures (and user input). 2 Flow of Control The order statements are executed is called flow of control By default, statements in a method.
Slides prepared by Rose Williams, Binghamton University Chapter 1 Getting Started 1.1 Introduction to Java.
Loops – While Loop Repetition Statements While Reading for this Lecture, L&L, 5.5.
Introduction to Computers and Programming Lecture 5 Boolean type; if statement Professor: Evan Korth New York University.
XP 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial 10.
Begin Java having used Alice Pepper - Some slides from Alice in Action with Java.
1. 2 Chapter 1 Introduction to Computers, Programs, and Java.
Programming Concepts and Languages Chapter 12 – Computers: Understanding Technology, 3 rd edition 1November
CSE 1301 J Lecture 2 Intro to Java Programming Richard Gesick.
Control Structures II. Why is Repetition Needed? There are many situations in which the same statements need to be executed several times. Example: Formulas.
C++ Crash Course Class 1 What is programming?. What’s this course about? Goal: Be able to design, write and run simple programs in C++ on a UNIX machine.
Chapter 9 Interactive Multimedia Authoring with Flash - Introduction to Programming “Computers and Creativity” Richard D. Webster, COSC 109 Instructor.
Intro to Java Programming  A computer follows the instruction precisely and exactly.  Anything has to be declared and defined before it can be used.
CIS Computer Programming Logic
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
Java Language and SW Dev’t
The Java Programming Language
Python – Part 1 Python Programming Language 1. What is Python? High-level language Interpreted – easy to test and use interactively Object-oriented Open-source.
Chapter 1: Introduction to Programs, and Java 1. Objectives To review programs (§ ). To understand the relationship between Java and the World Wide.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
Basics of Java IMPORTANT: Read Chap 1-6 of How to think like a… Lecture 3.
Chapter 1 Section 1.1 Introduction to Java Slides prepared by Rose Williams, Binghamton University Kenrick Mock, University of Alaska Anchorage.
Lecture 1 Introduction Figures from Lewis, “C# Software Solutions”, Addison Wesley Richard Gesick.
Using Data Within a Program Chapter 2.  Classes  Methods  Statements  Modifiers  Identifiers.
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 2: Variables & Data Types.
Introduction to PHP Advanced Database System Lab no.1.
Introduction to Computer Programming CS 126 Lecture 2 Zeke Maier.
Introduction to Java Java Translation Program Structure
Review, Pseudocode, Flow Charting, and Storyboarding.
BEGINNING PROGRAMMING.  Literally – giving instructions to a computer so that it does what you want  Practically – using a programming language (such.
Intro to Programming Web Design ½ Shade Adetoro. Programming Slangs IDE - Integrated Development Environment – the software in which you develop an application.
CSC 1051 M.A. Papalaskari, Villanova University Algorithms Dr. Mary-Angela Papalaskari Department of Computing Sciences Villanova University Course website:
CONTROL STATEMENTS LOOPS. WHY IS REPETITION NEEDED?  There are many situations in which the same statements need to be executed several times.  Example:
By Mr. Muhammad Pervez Akhtar
Review :chapters What is an algorithm? A step by step description of how to accomplish a task. For example, Adding 3 numbers N1, N2 and N3 Add.
Java Review if Online Time For loop Quiz on Thursday.
1 Overview of Programming Principles of Computers.
COP 2551 Introduction to Object Oriented Programming with Java Topics –Introduction to the Java language –Code Commenting –Java Program Structure –Identifiers.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
import java.util.Scanner; class myCode { public static void main(String[] args) { Scanner input= new Scanner(System.in); int num1; System.out.println(“Enter.
1 Flow of Control Chapter 5. 2 Objectives You will be able to: Use the Java "if" statement to control flow of control within your program.  Use the Java.
Copyright © 2014 by John Wiley & Sons. All rights reserved.1 Decisions and Iterations.
Chapter 1: Introduction to Computers and Programming.
Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components.
Introduction to Programming G50PRO University of Nottingham Unit 6 : Control Flow Statements 2 Paul Tennent
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Terms: Software  Set of instructions  aka programs  Operating System:  Special software whose job it is to translateinstructions into hardware instructions.
Chapter 10 Programming Fundamentals with JavaScript
Lecture 2 D&D Chapter 2 & Intro to Eclipse IDE Date.
Chapter 2 Clarifications
GC101 Introduction to computer and program
Yanal Alahmad Java Workshop Yanal Alahmad
Data types and variables
Programming Concepts and Languages
Something about Java Introduction to Problem Solving and Programming 1.
Loops CS140: Introduction to Computing 1 Savitch Chapter 4 Flow of Control: Loops 9/18/13 9/23/13.
While Statement.
Chapter 10 Programming Fundamentals with JavaScript
AP Java Review If else.
Control Statements Loops.
Differences between Java and JavaScript
AP Java Review If else.
Control Statements Loops.
Presentation transcript:

Intro to Programming STARS College of Communication and Information Florida State University Written by: Hannah Brock Alissa Ovalle Nicolaus Lopez Martin Sung Presented by: _____________

Overview What is Computer Programming? Different types of Programming Languages Print Statements Loops Conditional Statements Why Program?

What is a Programming Language?

Programming Language A set of rules designed to connect instructions to a machine or computer. Used to write computer programs, which involve computation. Has words, symbols, and rules of grammar called syntax. Each programming language has a different set of syntax rules.

Different types of Programming JavaScript: prominent language for websites. Scripting language. Python: interpreted coding language. Uses everyday language to make it easier to understand and to program. (Google) SQL: (Structured Query Language) used to interact with databases. Queries. PHP: used for dynamic web pages. Ability to send SQL queries and output HTML. C#: desktop software on Windows platforms. Basis of Microsoft’s ASP.NET web development framework. Java: object-oriented designed for cross-platform compatibility. High-level compiled language designed to run on most operating systems.

Different types of Languages

Top Programming Languages of 2015

Basic Language Variables Operations Data Types - int, char, bool, float Machine language Compiler Errors - syntax, runtime, and logic Class description of the representation of a specific kind of object, in terms of data and behavior a blueprint - let’s you see what it will be able to do Object an instance of a class house (objects) are different but all built from the same blueprint (class)

Print Statements

What they are? Print statements print the argument to the screen How to use them? System.out.print()- Prints the argument System.out.println()- Prints the argument & ends the line System.out.printf()- Formats the argument then prints it

Structure of a Java Program import java.util.Scanner; public class FirstProgram { public static void main(String[] args) { System.out.println(“********** Welcome ***********”); int a, b; String name; //this is a comment Scanner input = new Scanner(System.in); System.out.println(“Please enter your birth month (Ex: July - 07):” a = input.nextInt(); System.out.println(“Please enter your birth day (Ex: 10th - 10):” b = input.nextInt(); } //end of main } Class Name The main Method Statements Statement Terminator Reserved Words Blocks Comments

Control Structures: Loops

Loops Control Structures to act on decisions WHILE, FOR, DO...WHILE, NESTED Basic Control Structures Sequence a series of statements that executes one after another Selection (branch) executes different statements depending on certain conditions Loop (repetition) repeats statements while a certain conditions are met Subprogram/Subroutine breaks the program into smaller units functions

Loops: WHILE

Loops: FOR

Conditional Expressions Boolean operators AND OR NOT Relational operators, <=, ==, != IF, ELSE

Why code?

Resources Code.org w3schools.com Codeacademy.com TutorialsPoint.com Lynda.com Khanacademy.com