Agenda Warmup Finish 2.4 Assignments

Slides:



Advertisements
Similar presentations
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.
Advertisements

JAVA Revision Lecture Electronic Voting System Marina De Vos.
STRING AN EXAMPLE OF REFERENCE DATA TYPE. 2 Primitive Data Types  The eight Java primitive data types are:  byte  short  int  long  float  double.
Python Mini-Course University of Oklahoma Department of Psychology Lesson 28 Classes and Methods 6/17/09 Python Mini-Course: Lesson 28 1.
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.
Primitive Data Types There are a number of common objects we encounter and are treated specially by almost any programming language These are called basic.
Constants and Data Types Constants Data Types Reading for this class: L&L,
Objects vs. Primitives Primitive Primitive byte, short, int, long byte, short, int, long float, double float, double char char boolean boolean Object (instance.
CSCI 1100/1202 January 16, Why do we need variables? To store intermediate results in a long computation. To store a value that is used more than.
Java Methods. Topics  Declaring fields vs. local variables  Primitive data types  Strings  Compound Assignment  Conversions from one value to another.
Lesson 6-3B Objective: Solve inequalities using more than one step…continued.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 343 Davis Hall
ECE122 Feb. 22, Any question on Vehicle sample code?
Advanced Computer Science Lesson 4: Reviewing Loops and Arrays Reading User Input.
Assignment An assignment statement changes the value of a variable The assignment operator is the = sign total = 55; Copyright © 2012 Pearson Education,
Chapter 10 Defining Classes. The Internal Structure of Classes and Objects Object – collection of data and operations, in which the data can be accessed.
Characters and Strings. Characters  New primitive char  char letter; letter = ‘a’; char letter2 = ‘C’;  Because computers can only represent numbers,
Programming with Visual C++: Concepts and Projects Chapter 3A: Integral Data (Concepts)
Unit 2 Test: Tues 11/3. ASCII / Unicode –Each letter, symbol, etc has a # value –See ascii table (in folder) –To convert a char into its ascii value,
Java Programming, Second Edition Chapter Two Using Data Within a Program.
ITEC 109 Lecture 7 Operations. Review Variables / Methods Functions Assignments –Purpose? –What provides the data? –What stores the data? –What type of.
School of Computer Science & Information Technology G6DICP - Lecture 4 Variables, data types & decision making.
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 2A Reading, Processing and Displaying Data (Concepts)
Java Nuts and Bolts Variables and Data Types Operators Expressions Control Flow Statements Arrays and Strings.
A: A: double “4” A: “34” 4.
More than just a song and dance.. They are objects that store primitive variable values: Integer – stores an int Double – stores a double Character –
Overloading a constructor If a constructor is overloaded, then an if statement in the client is needed when creating the object. We have always declared.
 Variables can store data of different types, and different data types can do different things.  PHP supports the following data types:  String  Integer.
Chapter 1 Java Programming Review. Introduction Java is platform-independent, meaning that you can write a program once and run it anywhere. Java programs.
Solving One Step Equations Algebra I. Addition and Subtraction One Step Equations A solution of an equation is the value or values of the variable that.
AP Java Ch. 4 Review Question 1  Java methods can return only primitive types (int, double, boolean, etc).
CPSC 233 Tutorial 5 February 9 th /10 th, Java Classes Each Java class contains a set of instance variables and methods Instance Variables: Type.
1 Lecture # 2. * Introducing Programming with an Example * Identifiers, Variables, and Constants * Primitive Data Types * Byte, short, int, long, float,
CPSC 233 Tutorial January 21 st /22 nd, Linux Commands.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
Topics introduced today (these topics would be covered in more detail in later classes) – Primitive Data types Variables Methods “for” loop “if-else” statement.
Relational Operator and Operations
Agenda Warmup Lesson 4.5 (Program Design & Analysis)
Agenda Warmup Lesson 1.4 (double precision, String methods, etc)
Agenda Warmup Prep for Core #1 Lesson G2 (RGB, Loops in Graphics)
Agenda Warmup AP Exam Review: Litvin A2
Multiple variables can be created in one declaration
Computer Science 3 Hobart College
Agenda Warmup Lesson 2.5 (Ascii, Method Overloading)
Review Operation Bingo
Computers & Programming Languages
Agenda Warmup Lesson 4.5 (Program Design & Analysis)
Conditional Logic Presentation Name Course Name
Agenda Warmup Lesson 2.6 (Constructors, Encapsulation)
Agenda Warmup Lesson 1.6 (Do-while loops, sentinels, etc)
IPC144 Introduction to Programming Using C Week 4 – Lesson 2
Agenda Warmup Lesson 1.4 (double precision, String methods, etc)
Agenda Warmup Lesson 1.9 (random #s, Boolean variables, etc)
Names of variables, functions, classes
Agenda Warmup Lesson 2.2 (parameters, etc)
Java: Variables, Input and Arrays
Agenda Warmup Lesson 1.6 (Do-while loops, sentinels, etc)
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.
Agenda Warmup Review Finish 1.2 Assignments Lesson 1.3 (If Statements)
Millennium High School Agenda Calendar
Subtype Substitution Principle
IPC144 Introduction to Programming Using C Week 5 – Lesson 1
Agenda Warmup Lesson 2.8 (Overloading constructors, etc)
Variables and Constants
Agenda Warmup Review Finish 1.2 Assignments Lesson 1.3 (If Statements)
Agenda Warmup Lesson 1.9 (random #s, Boolean variables, etc)
Coming up Variables Quick look at scope Primitives Objects
Agenda Warmup Lesson 2.4 (String concatenation, primitive types, etc)
Section 6 Primitive Data Types
Presentation transcript:

Agenda Warmup Finish 2.4 Assignments Time Permitting: Lesson 2.5 (Ascii, etc) Independent Practice (2.5 Assignments) Closure Activity Students will be able to: Understand what Ascii code is, and how to convert to it from a char variable Understand what method overloading is, and when it should be used Write an overwritten method See how today's lesson fits into the unit and the course as a whole

Warmup There is a method that does not receive parameters but does return an int. Is this code valid in the client? int x = 0; objectName.methodName(x); 2) What is the result of this code? public boolean largeNumber(int y) { boolean x = false; if (y>100) { x = true; return x; } 3) What are 3 possible solutions to #2? 4) What makes a primitive type different from a variable such as a String?

Complete yesterday’s assignments.