Java Lessons 9 – 12 Mr. Kalmes.

Slides:



Advertisements
Similar presentations
Discussion1 Quiz. Q1 Which of the following are invalid Java identifiers (variable names)? a) if b) n4m3 c) Java d) e) DEFAULT_VALUE f) bad-choice.
Advertisements

Y9 Booster Lesson 3. Objectives – what we should be able to do by the end of the lesson Calculate percentages of quantities using a calculator Calculate.
Computer Science 101 Circuit Design Algorithm. Circuit Design - The Problem The problem is to design a circuit that accomplishes a specified task. The.
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
Lesson 2.4 Variables and Equations. Types of equations An equation is a mathematical sentence with an equal sign.
PL/SQLPL/SQL Oracle10g Developer: PL/SQL Programming Chapter 2 Basic PL/SQL Block Structures.
Controlling Execution Programming Right from the Start with Visual Basic.NET 1/e 8.
Linear Algebra. Circuits The circuits in computers and other input devices have inputs, each of which is either a 0 or 1, the output is also 0s and 1s.
Algorithm Design.
ALGEBRA 2.1 – 2.2 Solving equations by adding, subtracting, multiplying or dividing.
CMP-MX21: Lecture 5 Repetitions Steve Hordley. Overview 1. Repetition using the do-while construct 2. Repetition using the while construct 3. Repetition.
School of Computer Science & Information Technology G6DICP - Lecture 4 Variables, data types & decision making.
Decisions in Python Boolean functions. A Boolean function This is a function which returns a bool result (True or False). The function can certainly work.
Repetition Control Structure. Introduction Many applications require certain operations to be carried out more than once. Such situations require repetition.
The Fine Points of Conditionals. When squirrels get together for a party, they like to have cigars. A squirrel party is successful when the number of.
Measurements in Experiments Chapter 1-2. Numerical Measurements Are used to perform science experiments. Gives number and dimensional unit  Example :
Visual Basic CDA College Limassol Campus COM123 Visual Basic Programming Semester C Lecture:Pelekanou Olga Week 4: Understand and implement Decisions.
Programming. Exam Validation 1-10 Technical words such as Method of validation Do not use “Something”.
Introduction to Programming G50PRO University of Nottingham Unit 6 : Control Flow Statements 2 Paul Tennent
Follow up from lab See Magic8Ball.java Issues that you ran into.
Unit 2 Technology Systems
JUST BASIC Lessons 6 – 9 Mr. Kalmes.
Agenda Warmup Finish 2.4 Assignments
Oracle11g: PL/SQL Programming Chapter 2 Basic PL/SQL Block Structures.
Chapter 2.3 Binary Logic.
Python Lesson 3 Mr. Kalmes.
Outline Altering flow of control Boolean expressions
Computers & Programming Languages
CSE 1020: Introduction to Computer Science I
3.4 Computer systems Boolean logic Lesson 2.
Python Lessons 9 & 10 Mr. Kalmes.
Lecture Notes – Week 3 Lecture-2
DESICION TABLE Decision tables are precise and compact way to model complicated logic. Decision table is useful when input and output data can be.
Wavelength, Energy Frequency Calculations
Java Lesson 36 Mr. Kalmes.
Python Lesson 21 Mr. Kalmes.
Java Lessons 17 – 20 Mr. Kalmes.
Java Lessons 28 – 32 Mr. Kalmes.
Java Lesson 35 Mr. Kalmes.
Just Basic Lessons Mr. Kalmes.
Java Lessons 5 – 8 Mr. Kalmes.
Conditional Logic Presentation Name Course Name
Just Basic Lesson 17 Part 1 Mr. Kalmes.
Just Basic Lessons 14 Mr. Kalmes.
Aim: How to use Dimensional Analysis to Convert from One unit to Another DO Now: Answer the following questions in your notebook in the following format.
Lecture 5 Binary Operation Boolean Logic. Binary Operations Addition Subtraction Multiplication Division.
Seating “chart” Front Back 4 rows 5 rows 5 rows 4 rows 2 rows 2 rows
Python Lesson’S 1 & 2 Mr. Kalmes.
Seating “chart” Front - Screen rows Back DOOR.
Truth tables Mrs. Palmer.
Just Basic Lessons 7&8 Mr. Kalmes.
Evaluating Boolean expressions
Just Basic Lessons Mr. Kalmes.
Just Basic Lesson 12 Mr. Kalmes.
Ratios, Rates and Percents
SUBSTITUTION At the end of this lesson you should :
Just Basic Lesson 19 Mr. Kalmes.
Whitebox Testing.
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.
Java Lessons Mr. Kalmes.
Just Basic Lesson 13 Mr. Kalmes.
Just Basic Lessons Mr. Kalmes.
CS2011 Introduction to Programming I Loop Statements (I)
Controlling Program Flow
Flow of Control Flow of control is the order in which a program performs actions. Up to this point, the order has been sequential. A branching statement.
Just Basic Lessons 7 Mr. Kalmes.
Just Basic Lessons 8 Mr. Kalmes.
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Lesson 3.3 Writing functions.
Presentation transcript:

Java Lessons 9 – 12 Mr. Kalmes

Learning Targets I will be able to utilize variables I will be able to fix logical errors I will be able to construct variable shortcuts I will be able to explain boolean expressions

Lesson 9 Create the following program Change the program to convert lbs to kgs and inches to meters

Lesson 10 Logical Error: a flaw with the flow of instructions, so that the output is not what was trying to be accomplished.

Lesson 10

Lesson 11 Shortcuts: x += n or x -= n or x *= n or x /= n or x %= n x++ or x-- Be careful: x =+ and x=- are different

Lesson 11

Lesson 12 Boolean Variables: Can not hold numbers or words Can only hold two values – True or False They are used to perform logical calculations

Lesson 12

Exit Slip What is a logical error What’s the difference between += and =+ How do you think you will use boolean expressions?