design OO words Debug Variables Data types 100 100 100 100 100 200 200

Slides:



Advertisements
Similar presentations
CSE 1301 Lecture 5B Conditionals & Boolean Expressions Figures from Lewis, “C# Software Solutions”, Addison Wesley Briana B. Morrison.
Advertisements

Making Choices in C if/else statement logical operators break and continue statements switch statement the conditional operator.
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.
Chapter 4 Control Structures I. Objectives ► Examine relational and logical operators ► Explore how to form and evaluate logical (Boolean) expressions.
Bellevue University CIS 205: Introduction to Programming Using C++ Lecture 3: Primitive Data Types.
CIS 234: Using Data in Java Thanks to Dr. Ralph D. Westfall.
Moving To Code 3 More on the Problem-Solving Process §The final step in the problem-solving process is to evaluate and modify (if necessary) the program.
What is RobotC?!?! Team 2425 Hydra. Overview What is RobotC What is RobotC used for What you need to program a robot How a robot program works Framework.
3.1 Documentation & Java Language Elements Purpose of documentation Assist the programmer with developing the program Assist other programers who.
1 Please switch off your mobile phones. 2 Data Representation Instructor: Mainak Chaudhuri
Copyright © 2002 W. A. Tucker1 Chapter 7 Lecture Notes Bill Tucker Austin Community College COSC 1315.
Flow of Control Part 1: Selection
Data & Data Types & Simple Math Operation 1 Data and Data Type Standard I/O Simple Math operation.
Using Data Within a Program Chapter 2.  Classes  Methods  Statements  Modifiers  Identifiers.
Liang, Introduction to C++ Programming, (c) 2007 Pearson Education, Inc. All rights reserved X1 Chapter 3 Control Statements.
Computer Engineering 1 st Semester Dr. Rabie A. Ramadan 3.
Introduction to Java Java Translation Program Structure
Getting Started Java Fundamentals CSC207 – Software Design Summer 2011 – University of Toronto – Department of Computer Science.
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.
Developed at Sun Microsystems in 1991 James Gosling, initially named “OAK” Formally announced java in 1995 Object oriented and cant write procedural.
Spring 2009 Programming Fundamentals I Java Programming XuanTung Hoang Lecture No. 8.
11 PART 2 ARRAYS. 22 PROCESSING ARRAY ELEMENTS Reassigning Array Reference Variables The third statement in the segment below copies the address stored.
1 1 Chapter 2 Elementary Programming. 2 2 Motivations In the preceding chapter, you learned how to create, compile, and run a Java program. Starting from.
Sudeshna Sarkar, IIT Kharagpur 1 Programming and Data Structure Sudeshna Sarkar Lecture 3.
1 2. Program Construction in Java. 01 Java basics.
Chapter 2 Creating a C++ Program. Elements of a C++ Program Four basic ways of structuring a program Four basic ways of structuring a program 1.Sequencing.
1 Lecture # 2. * Introducing Programming with an Example * Identifiers, Variables, and Constants * Primitive Data Types * Byte, short, int, long, float,
Introduction to Algorithmic Processes CMPSC 201C Fall 2000.
Learning Javascript From Mr Saem
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.
Lecture 3: More Java Basics Michael Hsu CSULA. Recall From Lecture Two  Write a basic program in Java  The process of writing, compiling, and running.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
Chapter 3 Using Variables, Constants, Formatting Mrs. UlshaferSept
Midterm preview.
© 2004 Pearson Addison-Wesley. All rights reserved August 27, 2007 Primitive Data Types ComS 207: Programming I (in Java) Iowa State University, FALL 2007.
Fundamentals 2.
7 - Programming 7J, K, L, M, N, O – Handling Data.
Chapter 1.2 Introduction to C++ Programming
Chapter 10 Programming Fundamentals with JavaScript
Chapter 2 Variables.
CIS3931 – Intro to JAVA Lecture Note Set 2 17-May-05.
IGCSE 4 Cambridge Data types and arrays Computer Science Section 2
Chapter 1.2 Introduction to C++ Programming
Elementary Programming
Chapter 4: Control Structures I
Data types and variables
Chapter 5 Decisions. Chapter 5 Decisions ssential uestion: How are Boolean expressions or operators used in everyday life?
Type Conversion, Constants, and the String Object
Chapter 2.
Arrays, For loop While loop Do while loop
Chapter 10 Programming Fundamentals with JavaScript
Chapter 4: Control Structures I
Variables ICS2O.
Chapter 2 Variables.
C++ Data Types Data Type
Statements and expressions - java
Chapter 4 Selection.
Computer Science Core Concepts
A programming language
Java Programming Review 1
POINTER CONCEPT 4/15/2019.
Unit 3: Variables in Java
Chapter 2 Variables.
Data Types and Maths Programming Guides.
Chapter 15 Debugging.
Variables and Constants
POINTER CONCEPT 8/3/2019.
COMPUTING.
Presentation transcript:

design OO words Debug Variables Data types 100 100 100 100 100 200 200 200 200 200 300 300 300 300 300 400 400 400 400 400 500 500 500 500 500

RE-order the steps of good design: 1 debug 2 plan 3 compile 4 code

What is plan code compile debug

Name the three design structures

What are Sequence decision and Loops

To set the variable age equal to 19 you would use an?

What is a assignment statement?

John, reads his statement, writes a check, and mails the check to the company, John is using a? structure

What is sequence?

I want to go to the show, if I am 17 my ticket is $5 but if I am 18 my ticket is $7.50. In code this would be solved with a?

What is decision?

A group or collection of objects with common properties?

What is a class?

The characteristics that define an object as part of a class

What are attributes?

A Self contained block of program code?

What is A METHOD?

An existing Object of a class?

What is an Instance?

Names for computer memory locations

What are Variables?

Alan creates a variable to hold the clients name… String 1clientName;

What is String clientName;

Sara wants to add 4 to her cost variable she write the following statement… 4 + cost = answer;

What is answer = cost + 4;

Correct the logic error studentName = “Jeffery”; String studentName;

String studentName; studentName = “Jeffery”; Why?

Correct the bug: char myMiddleI =‘MI’;

Char myMiddleI = ‘M’; why?

Correct the logic error int partCost = 44.50;

float partCost = 44.50; why?

A variable must start with?

What is a letter?

Variables have three parts?

What are memory Name address value

A variable can hold one to three types of data

What are numbers, alphanumeric and Boolean data

What are the two values of a Boolean Variable?

What are true or false?

A variable named to hold the value ‘*’ would be what type?

What is char?

Name three type of Integral data types.

What are int, long, and short?

Data that is not used in math calculations should be what type?

What is String?

To get data from the user at run time we can use what gui?

What is JOption.Pane.showInputDialog?

Which one of the following is not required in a variable declaration? Type, identifier, assigned value, semicolon

What is Assigned value?

When data cannot be change after a class is complied the data is?

What is a constant?