ITEC 109 Lecture 7 Operations. Review Variables / Methods Functions Assignments –Purpose? –What provides the data? –What stores the data? –What type of.

Slides:



Advertisements
Similar presentations
Chapter 3 DATA: TYPES, CLASSES, AND OBJECTS. Chapter 3 Data Abstraction Abstract data types allow you to work with data without concern for how the data.
Advertisements

Types and Arithmetic Operators
Objective: Dealing with data in C++ Agenda: Notes Essay Help.
Java Syntax Part I Comments Identifiers Primitive Data Types Assignment.
General Computer Science for Engineers CISC 106 Lecture 28 Dr. John Cavazos Computer and Information Sciences 04/29/2009.
Python November 14, Unit 7. Python Hello world, in class.
CS31: Introduction to Computer Science I Discussion 1A 4/2/2010 Sungwon Yang
Storing data Getting data out Data types Ruby as a foundation Program Variables Click icon to hear comments (the download may take a minute)
Chapter 2: Variables, Operations, and Strings CSCI-UA 0002 – Introduction to Computer Programming Mr. Joel Kemp.
Java Data Types. Primitive Data Types Java has 8 primitive data types: – char: used to store a single character eg. G – boolean: used to store true or.
3 - Variables Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
5 BASIC CONCEPTS OF ANY PROGRAMMING LANGUAGE Let’s get started …
Data & Data Types & Simple Math Operation 1 Data and Data Type Standard I/O Simple Math operation.
Variables Damian Gordon. Variables We know what a variable is from maths. We’ve all seen this sort of thing in algebra: 2x – 10 = 0 2x = 10 X = 5.
Variables When programming it is often necessary to store a value for use later on in the program. A variable is a label given to a location in memory.
ICAPRG301A Week 2 Strings and things Charles Babbage Developed the design for the first computer which he called a difference engine, though.
C++ Basics. Compilation What does compilation do? g++ hello.cpp g++ -o hello.cpp hello.
Math, Data Types. Python Math Operations OperationOperator Addition + Subtraction – Multiplication * Division (floating point) / Division (integer) //
Java Programming, Second Edition Chapter Two Using Data Within a Program.
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.
School of Computer Science & Information Technology G6DICP - Lecture 4 Variables, data types & decision making.
1 More data types Character and String –Non-numeric variables –Examples: char orange; String something; –orange and something are variable names –Note.
Variables, Input, and Output. Challenge: ● Ask the user his or her name, and repeat that name to the user ● Pause video and try.
1.2 Primitive Data Types and Variables
A: A: double “4” A: “34” 4.
Values, Types, and Variables. Values Data Information Numbers Text Pretty much anything.
COMP 110: Spring Announcements Lab 1 due Wednesday at Noon Assignment 1 available on website Online drop date is today.
Java – Variables and Constants By: Dan Lunney. Declaring Variables All variables must be declared before they can be used A declaration takes the form:
 Variables can store data of different types, and different data types can do different things.  PHP supports the following data types:  String  Integer.
Chapter 3 AS3 Programming. Introduction Algorithms + data structure =programs Why this formula relevant to application programs created in flash? The.
Variables in VB. What is a variable? ► A named memory location that stores a value.
COP2800 – Computer Programming Using JAVA University of Florida Department of CISE Spring 2013 Lecture 06 – Java Datatypes Webpage:
DATA TYPES, VARIABLES AND CONSTANTS. LEARNING OBJECTIVES  Be able to identify and explain the difference between data and information  Be able to identify,
Literals A literal (sometimes called a constant) is a symbol which evaluates to itself, i.e., it is what it appears to be. Examples: 5 int literal
Chapter 4: Variables, Constants, and Arithmetic Operators Introduction to Programming with C++ Fourth Edition.
Checking If User Input Is Numeric.  Quiz  Detecting numeric input  Finish Prior Lecture  Y'all work on one of the problems listed 2.
UFCFY5-30-1Multimedia Studio Coding for Interactive Media Fundamental Concepts.
Chapter Four Common facilities of procedural languages.
Input, Output and Variables GCSE Computer Science – Python.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
CMSC201 Computer Science I for Majors Lecture 03 – Variables
Numbers and arithmetic
CS 106A, Lecture 4 Introduction to Java
Numbers and Arithmetic
Unit 2 Smarter Programming.
Introduction to C++ October 2, 2017.
CMSC201 Computer Science I for Majors Lecture 03 – Operators
Time Manager Class Activity Material Manager Writer leader Communicator Programmer Start a journey from the capital AbuDhabi to Alasmaa School using your.
Thinking about programming
Chapter 2.
Review Operation Bingo
Examples of Primitive Values
Computers & Programming Languages
Coding Concepts (Data- Types)
Building Java Programs
Recap Week 2 and 3.
Variables Kevin Harville.
Variables In today’s lesson we will look at: what a variable is
7 – Variables, Input and Output
Thinking about programming
C# Revision Cards Data types
Java: Variables, Input and Arrays
Data Types Every variable has a given data type. The most common data types are: String - Text made up of numbers, letters and characters. Integer - Whole.
Data Types and Maths Programming Guides.
GCSE Computing:: Selection (IF statements)
C Programming Lecture-3 Keywords, Datatypes, Constants & Variables
Variables and Constants
Data Types and Expressions
Python Creating a calculator.
Getting Started in Python
Presentation transcript:

ITEC 109 Lecture 7 Operations

Review Variables / Methods Functions Assignments –Purpose? –What provides the data? –What stores the data? –What type of variable holds: Hello World

Operations Objectives Other types of variables Operations on variables

Operations Variables The 3 pigs had a big find, 1.5 bars of true gold. String –Text Integer –Whole numbers Float –Decimal places (double in other languages) Boolean –True or false Character

Operations Modify a particular variable Result of: + / - * 2 other variables necessary b=3; c=4; a=b+c; printNow(a); Program

Operations Problem Using JES, calculate how many seconds it takes for… 3 feet20 feetGoing 3 FPS Hint: only use ints if no chance of decimal places!

Operations Homework Celsius to Fahrenheit converter –Ask user for input Testing: Convert 20C to F Experiment: One operation per line, no chaining together F=C*9/5 + 32