CP122 CS I. Chapter 7a: Java Arrays

Size: px
Start display at page:

Download "CP122 CS I. Chapter 7a: Java Arrays"

Transcription

1 CP122 CS I Chapter 7a: Java Arrays

2 Better Online Ticket Sales (BOTS) act clears congress Tech News!

3 Tech News! Better Online Ticket Sales (BOTS) act clears congress My Friend Cayla: Data collection privacy issues

4 Hackerz Tip of the Day: User Authentication Username / Password

5 Hackerz Tip of the Day: User Authentication Password Password Hash Hashing function

6 Hackerz Tip of the Day: User Authentication secret SDLKJVOUAY Hashing function

7 Hackerz Tip of the Day: User Authentication SDLKJVOUAY secret?

8 Hackerz Tip of the Day: User Authentication aardvark abacus secret ALKJLIDSFL URYJDFOLC SDLKJVOUAY

9 Hackerz Tip of the Day: User Authentication aardvark abacus secret ALKJLIDSFL URYJDFOLC SDLKJVOUAY A match!

10 Hackerz Tip of the Day: User Authentication Obtain hashed password, p for each word in dictionary: if hash(word) == p: print password is + word

11 Chapter 7a: Arrays How can we store a bunch of data in a list? What operations can be performed on Java arrays?

12 Building a Football Roster Suppose we wanted to write a program to store the salary of every player on a football team How would we do that? (FootballSalaries.java)

13 Isn't there a cleaner way to write FootballSalaries.java?

14 Java Arrays Creating a new array long[] salaries = new long[53];

15 Java Arrays Creating a new array long[] salaries = new long[53]; Data type of elements in the array.

16 Java Arrays Creating a new array long[] salaries = new long[53]; Empty square brackets denotes an array. Without the brackets, the variable would look like a normal long.

17 Java Arrays Creating a new array long[] salaries = new long[53]; Legal variable name. Same rules as regular variables.

18 Java Arrays Creating a new array long[] salaries = new long[53]; Style note: use of plural names is a good thing to remind us that there are multiple elements.

19 Java Arrays Creating a new array long[] salaries = new long[53]; Use new keyword just like you would when creating a new object.

20 Java Arrays Creating a new array long[] salaries = new long[53]; Repeated data type of elements in the array.

21 Java Arrays Creating a new array long[] salaries = new long[53]; Another set of square brackets with an integer value in between. This value represents the size of the array (number of elements).

22 Java Arrays Creating a new array long[] salaries = new long[53]; The array's size is fixed/static. You cannot change the size of the array after it has been created.

23 Java Arrays Initializing an array long[] salaries = { , };

24 Java Arrays Initializing an array long[] salaries = { , }; Instead of using new we can use curly braces and a comma-separated list of initial values.

25 Java Arrays Accessing an array element salaries[0];

26 Java Arrays Accessing an array element salaries[0]; Start with the name of the array.

27 Java Arrays Accessing an array element salaries[0]; Then use square brackets and an integer. This integer is the index of the element you want to access.

28 Java Arrays Accessing an array element salaries[0]; Arrays use an indexing scheme that starts at 0.

29 Java Arrays Accessing an array element salaries[0]; The first element in the array has index 0. This is sometimes called the zeroth element

30 Java Arrays Accessing an array element salaries[?]; The last element in an array of size n...?

31 Java Arrays Accessing an array element salaries[n-1]; The last element in an array of size n...? n-1

32 Java Arrays Accessing an array element System.out.println(salaries[0]);

33 Java Arrays Accessing an array element System.out.println(salaries[2000]); What if the size of the array is 10?

34 Java Arrays Changing the value an array element salaries[0] = ;

35 Java Arrays Changing the value an array element salaries[0] = ; Left-hand side of assignment operator is the same as array access.

36 Java Arrays Changing the value an array element salaries[0] = ; Right-hand size is new value. Can be any legal expression.

37 Java Arrays Loop Access for(int i = 0; i < salaries.length; i++) { System.out.println(salaries[i]); }

38 Java Arrays Loop Access for(int i = 0; i < salaries.length; i++) { System.out.println(salaries[i]); } For loop starts at 0 (corresponding with the 0 th element in the array).

39 Java Arrays Loop Access for(int i = 0; i < salaries.length; i++) { System.out.println(salaries[i]); } For loop continues while i is less than the length/size of the array.

40 Java Arrays Loop Access for(int i = 0; i < salaries.length; i++) { System.out.println(salaries[i]); } What is the value for i during the last execution of the loop?

41 Java Arrays Loop Access for(int i = 0; i < salaries.length; i++) { System.out.println(salaries[i]); } We can use the loop counter, i, as an index into our array.

42 Java Arrays in Memory Address Value Array Access 0x myarray[0] 0x myarray[1] 0x myarray[2] 0x myarray[3] 0x myarray[4]

43 FootballSalaries.java with arrays

CP122 CS I. Arrays and ArrayLists

CP122 CS I. Arrays and ArrayLists CP122 CS I Arrays and ArrayLists AI company Vicarious develops Recursive Cortical Networks to crack captchas >50% of the time Tech News! Tech News! AI company Vicarious develops Recursive Cortical Networks

More information

CP122 CS I. Chapter 6a: Iteration I

CP122 CS I. Chapter 6a: Iteration I CP122 CS I Chapter 6a: Iteration I Supreme Court ruling: Samsung's violation of Apple's iphone patents may only involve components and not whole phone Tech News! Tech News! Supreme Court ruling: Samsung's

More information

CP122 CS I. Iteration

CP122 CS I. Iteration CP122 CS I Iteration Tech News! Pix2Pix: machine learning translation of images https://affinelayer.com/pixsrv/ Tech News! Pix2Pix: machine learning translation of images https://affinelayer.com/pixsrv/

More information

Chapter 6 SINGLE-DIMENSIONAL ARRAYS

Chapter 6 SINGLE-DIMENSIONAL ARRAYS Chapter 6 SINGLE-DIMENSIONAL ARRAYS Lecture notes for computer programming 1 Faculty of Engineering and Information Technology Prepared by: Iyad Albayouk What is an Array? A single array variable can reference

More information

Arrays: Higher Dimensional Arrays. CS0007: Introduction to Computer Programming

Arrays: Higher Dimensional Arrays. CS0007: Introduction to Computer Programming Arrays: Higher Dimensional Arrays CS0007: Introduction to Computer Programming Review If the == operator has two array variable operands, what is being compared? The reference variables held in the variables.

More information

AdvanceDataStructures-Unit-1(Dictionaries)

AdvanceDataStructures-Unit-1(Dictionaries) Unit I : Dictionaries :Sets, Dictionaries, Hash Tables, Open Hashing, Closed Hashing(Rehashing Methods),Hashing Functions(DivisionMethod,MultiplicationMethod,UniversalHashing),Analysisof ClosedHashingResult(UnsuccessfulSearch,Insertion,SuccessfulSearch,Deletion),

More information

Lecture 5: Arrays. A way to organize data. MIT AITI April 9th, 2005

Lecture 5: Arrays. A way to organize data. MIT AITI April 9th, 2005 Lecture 5: Arrays A way to organize data MIT AITI April 9th, 2005 1 What are Arrays? An array is a series of compartments to store data. Essentially a block of variables. In Java, arrays can only hold

More information

Arrays. Comp Sci 1570 Introduction to C++ Array basics. arrays. Arrays as parameters to functions. Sorting arrays. Random stuff

Arrays. Comp Sci 1570 Introduction to C++ Array basics. arrays. Arrays as parameters to functions. Sorting arrays. Random stuff and Arrays Comp Sci 1570 Introduction to C++ Outline and 1 2 Multi-dimensional and 3 4 5 Outline and 1 2 Multi-dimensional and 3 4 5 Array declaration and An array is a series of elements of the same type

More information

Using Scala in CS241

Using Scala in CS241 Using Scala in CS241 Winter 2018 Contents 1 Purpose 1 2 Scala 1 3 Basic Syntax 2 4 Tuples, Arrays, Lists and Vectors in Scala 3 5 Binary output in Scala 5 6 Maps 5 7 Option types 5 8 Objects and Classes

More information

CS 112 Introduction to Computing II. Wayne Snyder Computer Science Department Boston University

CS 112 Introduction to Computing II. Wayne Snyder Computer Science Department Boston University CS 112 Introduction to Computing II Wayne Snyder Department Boston University Today: Java expressions and operators concluded Java Statements: Conditionals: if/then, if/then/else Loops: while, for Next

More information

JSON Support for Junos OS

JSON Support for Junos OS JSON Support for Junos OS 1 Introduction: Java Script Object Notation alias JSON a light weight data exchange format is being extensively used for data exchange between web application and servers. With

More information

Lesson 06 Arrays. MIT 11053, Fundamentals of Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT FMC, SEUSL

Lesson 06 Arrays. MIT 11053, Fundamentals of Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT FMC, SEUSL Lesson 06 Arrays MIT 11053, Fundamentals of Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT FMC, SEUSL Array An array is a group of variables (called elements or components) containing

More information

Password Management Guidelines for Cisco UCS Passwords

Password Management Guidelines for Cisco UCS Passwords Guidelines for Cisco UCS Passwords, page 1 Guidelines for Cisco UCS Usernames, page 3 Configuring the Maximum Number of Password Changes for a Change Interval, page 4 Configuring a No Change Interval for

More information

Python - Variable Types. John R. Woodward

Python - Variable Types. John R. Woodward Python - Variable Types John R. Woodward Variables 1. Variables are nothing but named reserved memory locations to store values. This means that when you create a variable you reserve some space in memory.

More information

Chapter 3. Iteration

Chapter 3. Iteration Chapter 3 Iteration Iteration Iteration is the form of program control that allows us to repeat a section of code. For this reason this form of control is often also referred to as repetition. The programming

More information

Step 1 - Go to Step 2 - Login to your account. Step 3 - Click Register for a Test. Step 4 - Read the Requirements

Step 1 - Go to   Step 2 - Login to your account. Step 3 - Click Register for a Test. Step 4 - Read the Requirements Step 1 - Go to www.texes.ets.org Go to www.texes.ets.org Click the register link found in the top navigation. Step 2 - Login to your account Enter your username and password and click login. If you do

More information

A - 1. CS 494 Object-Oriented Analysis & Design. UML Class Models. Overview. Class Model Perspectives (cont d) Developing Class Models

A - 1. CS 494 Object-Oriented Analysis & Design. UML Class Models. Overview. Class Model Perspectives (cont d) Developing Class Models CS 494 Object-Oriented Analysis & Design UML Class Models Overview How class models are used? Perspectives Classes: attributes and operations Associations Multiplicity Generalization and Inheritance Aggregation

More information

Glossary. (Very) Simple Java Reference (draft, v0.2)

Glossary. (Very) Simple Java Reference (draft, v0.2) (Very) Simple Java Reference (draft, v0.2) (Very) Simple Java Reference (draft, v0.2) Explanations and examples for if and for (other things to-be-done). This is supposed to be a reference manual, so we

More information

Arrays. Theoretical Part. Contents. Keywords. Programming with Java module 3

Arrays. Theoretical Part. Contents. Keywords. Programming with Java module 3 Programming with Java module 3 Arrays Theoretical Part Contents 1 Module Overview 3 1.1 One-dimensional arrays.......................... 3 1.2 Declaring arrays............................... 3 1.3 Generating

More information

The for Loop. Lesson 11

The for Loop. Lesson 11 The for Loop Lesson 11 Have you ever played Tetris? You know that the game never truly ends. Blocks continue to fall one at a time, increasing in speed as you go up in levels, until the game breaks from

More information

Accelerating Information Technology Innovation

Accelerating Information Technology Innovation Accelerating Information Technology Innovation http://aiti.mit.edu Cali, Colombia Summer 2012 Lesson 04 Arrays What are Arrays? An array is a series of compartments to store data. Essentially a block of

More information

Lesson 7A Arrays. By John B. Owen All rights reserved 2011, revised 2014

Lesson 7A Arrays. By John B. Owen All rights reserved 2011, revised 2014 Lesson 7A Arrays By John B. Owen All rights reserved 2011, revised 2014 Table of Contents Objectives What is an array? Initializing an array of integers Array processing For Each loop Other data type arrays

More information

CSC 1300 Exam 4 Comprehensive-ish and Structs

CSC 1300 Exam 4 Comprehensive-ish and Structs CSC 1300 Exam 4 Comprehensive-ish and Structs December 8, 2017 Name: Read through the entire test first BEFORE starting Multiple Choice and T/F sections should be completed on the scantron Test has two

More information

Scope of this lecture. Repetition For loops While loops

Scope of this lecture. Repetition For loops While loops REPETITION CITS1001 2 Scope of this lecture Repetition For loops While loops Repetition Computers are good at repetition We have already seen the for each loop The for loop is a more general loop form

More information

Steps of initialisation:

Steps of initialisation: 1. a. Arrays in C# are objects and derive from System.Array. They are the simplest collection or data structure in C# and may contain any value or reference type. In fact, an array is the only collection

More information

Privacy and Security in Online Social Networks Department of Computer Science and Engineering Indian Institute of Technology, Madras

Privacy and Security in Online Social Networks Department of Computer Science and Engineering Indian Institute of Technology, Madras Privacy and Security in Online Social Networks Department of Computer Science and Engineering Indian Institute of Technology, Madras Lecture 12 Tutorial 3 Part 1 Twitter API In this tutorial, we will learn

More information

Definition. A set is a collection of objects. The objects in a set are elements.

Definition. A set is a collection of objects. The objects in a set are elements. Section 1.1: Sets Definition A set is a collection of objects. The objects in a set are elements. Definition A set is a collection of objects. The objects in a set are elements. Examples: {1, cat, ψ} (Sets

More information

Adapted By Manik Hosen

Adapted By Manik Hosen Adapted By Manik Hosen Basic Terminology Question: Define Hashing. Ans: Concept of building a data structure that can be searched in O(l) time is called Hashing. Question: Define Hash Table with example.

More information

How-To Guide For: My Participant Center

How-To Guide For: My Participant Center How-To Guide For: My Participant Center My Participant Center Tools From the Challenge Walk MS homepage, www.mymschallenge.com, go to the Login to My Participant Center section. Enter your username and

More information

JQuery and Javascript

JQuery and Javascript JQuery and Javascript Javascript - a programming language to perform calculations/ manipulate HTML and CSS/ make a web page interactive JQuery - a javascript framework to help manipulate HTML and CSS JQuery

More information

All copyrights reserved - KV NAD, Aluva. Dinesh Kumar Ram PGT(CS) KV NAD Aluva

All copyrights reserved - KV NAD, Aluva. Dinesh Kumar Ram PGT(CS) KV NAD Aluva All copyrights reserved - KV NAD, Aluva Dinesh Kumar Ram PGT(CS) KV NAD Aluva Overview Looping Introduction While loops Syntax Examples Points to Observe Infinite Loops Examples using while loops do..

More information

Introduction to Python. Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas

Introduction to Python. Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas Introduction to Python Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas If you have your own PC, download and install a syntax-highlighting text editor and Python

More information

Operators. Java operators are classified into three categories:

Operators. Java operators are classified into three categories: Operators Operators are symbols that perform arithmetic and logical operations on operands and provide a meaningful result. Operands are data values (variables or constants) which are involved in operations.

More information

1.1 - Introduction to Sets

1.1 - Introduction to Sets 1.1 - Introduction to Sets Math 166-502 Blake Boudreaux Department of Mathematics Texas A&M University January 18, 2018 Blake Boudreaux (Texas A&M University) 1.1 - Introduction to Sets January 18, 2018

More information

Coaches and Team Managers Getting Started Guide. For coaches and parent volunteers who use SportsEngine to manage teams and schedules.

Coaches and Team Managers Getting Started Guide. For coaches and parent volunteers who use SportsEngine to manage teams and schedules. Coaches and Team Managers Getting Started Guide For coaches and parent volunteers who use SportsEngine to manage teams and schedules. Table of Contents Introduction... 3 Verifying Your Access... 3 Editing

More information

The Big Idea: Background:

The Big Idea: Background: Lesson 7 Lesson 7: For For Loops Loops The Big Idea: This lesson simplifies the control of digital pins by assigning the pin numbers to an integer variable and by calling the digitalwrite command multiple

More information

CS 234 Python Review Part 2

CS 234 Python Review Part 2 CS 234 Python Review Part 2 Recap import function: define, return boolean, conditional, branching loop: for, range, while file: open, close, readlines string: split Classes Define blueprint for a custom

More information

Grouping Objects. Primitive Arrays and Iteration. Produced by: Dr. Siobhán Drohan. Department of Computing and Mathematics

Grouping Objects. Primitive Arrays and Iteration. Produced by: Dr. Siobhán Drohan. Department of Computing and Mathematics Grouping Objects Primitive Arrays and Iteration Produced by: Dr. Siobhán Drohan Department of Computing and Mathematics http://www.wit.ie/ Topic List Primitive arrays Why do we need them? What are they?

More information

Java Bytecode (binary file)

Java Bytecode (binary file) Java is Compiled Unlike Python, which is an interpreted langauge, Java code is compiled. In Java, a compiler reads in a Java source file (the code that we write), and it translates that code into bytecode.

More information

SELECTION. (Chapter 2)

SELECTION. (Chapter 2) SELECTION (Chapter 2) Selection Very often you will want your programs to make choices among different groups of instructions For example, a program processing requests for airline tickets could have the

More information

Chapter 4. Specifying Behavior: Interfaces

Chapter 4. Specifying Behavior: Interfaces Interactive Programming In Java Page 1 ces.html,v 1.1 2003/06/11 19:39:26 jon Exp $ Introduction to Interactive Programming By Lynn Andrea Stein A Rethinking CS101 Project Chapter 4. Specifying Behavior:

More information

COMP 250. Lecture 27. hashing. Nov. 10, 2017

COMP 250. Lecture 27. hashing. Nov. 10, 2017 COMP 250 Lecture 27 hashing Nov. 10, 2017 1 RECALL Map keys (type K) values (type V) Each (key, value) pairs is an entry. For each key, there is at most one value. 2 RECALL Special Case keys are unique

More information

Puck Systems User Manual for Coaches and Team Managers

Puck Systems User Manual for Coaches and Team Managers USER MANUAL Puck Systems User Manual for Coaches and Team Managers Section 1 Section 2 As a User As a Coach Section 1 User: 1. Getting Started: How to Sign Up for the Site -On the right hand side near

More information

Slide 1 CS 170 Java Programming 1 The Switch Duration: 00:00:46 Advance mode: Auto

Slide 1 CS 170 Java Programming 1 The Switch Duration: 00:00:46 Advance mode: Auto CS 170 Java Programming 1 The Switch Slide 1 CS 170 Java Programming 1 The Switch Duration: 00:00:46 Menu-Style Code With ladder-style if-else else-if, you might sometimes find yourself writing menu-style

More information

Introduction to Python. Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas

Introduction to Python. Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas Introduction to Python Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas If you have your own PC, download and install a syntax-highlighting text editor and Python

More information

CSCE 120: Learning To Code

CSCE 120: Learning To Code CSCE 120: Learning To Code Manipulating Data I Introduction This module is designed to get you started working with data by understanding and using variables and data types in JavaScript. It will also

More information

Team Administrator Instruction Guide: Access Information: Updating Home Game Times and Fields:

Team Administrator Instruction Guide: Access Information: Updating Home Game Times and Fields: Team Administrator Instruction Guide: Access Information: As a team administrator, your login will be the same username and password used to complete your RMA application online. Once logged in, if you

More information

CONTENTS: Array Usage Multi-Dimensional Arrays Reference Types. COMP-202 Unit 6: Arrays

CONTENTS: Array Usage Multi-Dimensional Arrays Reference Types. COMP-202 Unit 6: Arrays CONTENTS: Array Usage Multi-Dimensional Arrays Reference Types COMP-202 Unit 6: Arrays Introduction (1) Suppose you want to write a program that asks the user to enter the numeric final grades of 350 COMP-202

More information

CS111: PROGRAMMING LANGUAGE II

CS111: PROGRAMMING LANGUAGE II 1 CS111: PROGRAMMING LANGUAGE II Computer Science Department Lecture 8(a): Abstract Classes Lecture Contents 2 Abstract base classes Concrete classes Dr. Amal Khalifa, 2014 Abstract Classes and Methods

More information

Arrays Structured data Arrays What is an array?

Arrays Structured data Arrays What is an array? The contents of this Supporting Material document have been prepared from the Eight units of study texts for the course M150: Date, Computing and Information, produced by The Open University, UK. Copyright

More information

JAVASCRIPT AND JQUERY: AN INTRODUCTION (WEB PROGRAMMING, X452.1)

JAVASCRIPT AND JQUERY: AN INTRODUCTION (WEB PROGRAMMING, X452.1) Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 4 Professional Program: Data Administration and Management JAVASCRIPT AND JQUERY: AN INTRODUCTION (WEB PROGRAMMING, X452.1) AGENDA

More information

CP122 Computer Science I. Chapter 2: Using Objects

CP122 Computer Science I. Chapter 2: Using Objects CP122 Computer Science I Chapter 2: Using Objects Tech News! Cyber Monday: $3.3B https://youtu.be/r4rfcay9fiq Tech News! Cyber Monday: $3.3B https://youtu.be/r4rfcay9fiq Small drone warfare https://cdn1.tnwcdn.com/wpcontent/blogs.dir/1/files/2016/11/ezgif.comoptimize-1-1.mp4

More information

BTE2313. Chapter 2: Introduction to C++ Programming

BTE2313. Chapter 2: Introduction to C++ Programming For updated version, please click on http://ocw.ump.edu.my BTE2313 Chapter 2: Introduction to C++ Programming by Sulastri Abdul Manap Faculty of Engineering Technology sulastri@ump.edu.my Objectives In

More information

Basic Java Syntax, cont d. COMP 401, Fall 2015 Lecture 3 1/15/2015

Basic Java Syntax, cont d. COMP 401, Fall 2015 Lecture 3 1/15/2015 Basic Java Syntax, cont d. COMP 401, Fall 2015 Lecture 3 1/15/2015 Inside a method The body of a method is a sequence of statements. A statement ends in a semi- colon Types of statements: DeclaraPon of

More information

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG 1 Notice Reading Assignment Chapter 1: Introduction to Java Programming Homework 1 It is due this coming Sunday

More information

CSC Discrete Math I, Spring Sets

CSC Discrete Math I, Spring Sets CSC 125 - Discrete Math I, Spring 2017 Sets Sets A set is well-defined, unordered collection of objects The objects in a set are called the elements, or members, of the set A set is said to contain its

More information

Lecture 14. 'for' loops and Arrays

Lecture 14. 'for' loops and Arrays Lecture 14 'for' loops and Arrays For Loops for (initiating statement; conditional statement; next statement) // usually incremental body statement(s); The for statement provides a compact way to iterate

More information

Wentworth Institute of Technology. Engineering & Technology WIT COMP1000. Arrays

Wentworth Institute of Technology. Engineering & Technology WIT COMP1000. Arrays WIT COMP1000 Arrays Arrays An array is a list of variables of the same type, that represents a set of related values For example, say you need to keep track of the cost of 1000 items You could declare

More information

Theory of control structures

Theory of control structures Theory of control structures Paper written by Bohm and Jacopini in 1966 proposed that all programs can be written using 3 types of control structures. Theory of control structures sequential structures

More information

Privacy and Security in Online Social Networks Department of Computer Science and Engineering Indian Institute of Technology, Madras

Privacy and Security in Online Social Networks Department of Computer Science and Engineering Indian Institute of Technology, Madras Privacy and Security in Online Social Networks Department of Computer Science and Engineering Indian Institute of Technology, Madras Lecture 07 Tutorial 2 Part 1 Facebook API Hi everyone, welcome to the

More information

Today s Topics. What is a set?

Today s Topics. What is a set? Today s Topics Introduction to set theory What is a set? Set notation Basic set operations What is a set? Definition: A set is an unordered collection of objects Examples: Sets can contain items of mixed

More information

1. The process of determining the particular tables and columns that will comprise a database is known as database design.

1. The process of determining the particular tables and columns that will comprise a database is known as database design. True / False 1. The process of determining the particular tables and columns that will comprise a database is known as database design. REFERENCES: 21 2. A tabular database is a collection of tables. REFERENCES:

More information

Java Coding 3. Over & over again!

Java Coding 3. Over & over again! Java Coding 3 Over & over again! Repetition Java repetition statements while (condition) statement; do statement; while (condition); where for ( init; condition; update) statement; statement is any Java

More information

Test Bank for A Guide to SQL 9th Edition by Pratt

Test Bank for A Guide to SQL 9th Edition by Pratt Test Bank for A Guide to SQL 9th Edition by Pratt Link full download: https://testbankservice.com/download/test-bank-for-a-guideto-sql-9th-edition-by-pratt Chapter 2: Database Design Fundamentals True

More information

Chapter 8. Statement-Level Control Structures

Chapter 8. Statement-Level Control Structures Chapter 8 Statement-Level Control Structures Chapter 8 Topics Introduction Selection Statements Iterative Statements Unconditional Branching Guarded Commands Conclusions 1-2 Levels of Control Flow Within

More information

AP Computer Science Lists The Array type

AP Computer Science Lists The Array type AP Computer Science Lists There are two types of Lists in Java that are commonly used: Arrays and ArrayLists. Both types of list structures allow a user to store ordered collections of data, but there

More information

School of Computer Science CPS109 Course Notes Set 7 Alexander Ferworn Updated Fall 15 CPS109 Course Notes 7

School of Computer Science CPS109 Course Notes Set 7 Alexander Ferworn Updated Fall 15 CPS109 Course Notes 7 CPS109 Course Notes 7 Alexander Ferworn Unrelated Facts Worth Remembering The most successful people in any business are usually the most interesting. Don t confuse extensive documentation of a situation

More information

BT, BST, AVL. Web Resources page on textbook website:

BT, BST, AVL. Web Resources page on textbook website: Excercises BT, BST, AVL Web Resources page on textbook website: http://ww3.java3.datastructures.net/resources.html Follow the execution. Consider the following Java code involving a Sequence: for (int

More information

DaDaDocs for Microsoft Dynamics 365 Administrator Guide

DaDaDocs for Microsoft Dynamics 365 Administrator Guide DaDaDocs for Microsoft Dynamics 365 Administrator Guide Requirements: Microsoft Dynamics 365 organization. PDFfiller user account. Installation and configuration 2 Install DaDaDocs 2 Update to the latest

More information

ch02 True/False Indicate whether the statement is true or false.

ch02 True/False Indicate whether the statement is true or false. ch02 True/False Indicate whether the statement is true or false. 1. The process of determining the particular tables and columns that will comprise a database is known as database design. 2. A tabular

More information

Getting Started With bluec 802 bluebutler Integration

Getting Started With bluec 802 bluebutler Integration Getting Started With bluec 802 bluebutler Integration POWER BROKER offers integration capabilities to create Customer/Policy abeyance records that link to bluec 802 bluebutler saved voice recordings. Once

More information

Things You Will Most Likely Want to Do in TeamSnap

Things You Will Most Likely Want to Do in TeamSnap How to Use TeamSnap for Parents This is a How To Guide for parents of children playing in Beaumont Soccer Association who want to learn how to utilize TeamSnap effectively. TeamSnap helps Managers: Organize

More information

COMPUTER APPLICATIONS

COMPUTER APPLICATIONS COMPUTER APPLICATIONS (Theory) (Two hours) Answers to this Paper must be written on the paper provided separately. You will not be allowed to write during the first 15 minutes. This time is to be spent

More information

Introduction to the Java Basics: Control Flow Statements

Introduction to the Java Basics: Control Flow Statements Lesson 3: Introduction to the Java Basics: Control Flow Statements Repetition Structures THEORY Variable Assignment You can only assign a value to a variable that is consistent with the variable s declared

More information

Chapter 8 Statement-Level Control Structures

Chapter 8 Statement-Level Control Structures Chapter 8 Statement-Level Control Structures In Chapter 7, the flow of control within expressions, which is governed by operator associativity and precedence rules, was discussed. This chapter discusses

More information

Configure Settings and Customize Notifications on FindIT Network Probe

Configure  Settings and Customize  Notifications on FindIT Network Probe Configure Email Settings and Customize Email Notifications on FindIT Network Probe Objective Cisco FindIT Network Probe equips a network administrator with indispensable tools that help securely monitor

More information

Cisco Conventions Used in Cisco Technical Tips

Cisco Conventions Used in Cisco Technical Tips Table of Contents Conventions Used in Cisco Technical Tips...1 Introduction...1 Before You Begin...1 Conventions...1 Prerequisites...1 Components Used...1 General Conventions...1 Text...1 Images...2 Cisco

More information

CSE 150: Notation Examples

CSE 150: Notation Examples CSE 150: Notation s Leif Walsh December 12, 2007 For most of the following, you will need to include amsmath, amsfonts, amsthm, and sometimes amssymb in your source, by putting the \usepackage{amsmath}

More information

Java Programming Basics. COMP 401, Spring 2017 Lecture 2

Java Programming Basics. COMP 401, Spring 2017 Lecture 2 Java Programming Basics COMP 401, Spring 2017 Lecture 2 AverageHeightApp take 2 Same as before, but with Eclipse. Eclipse Workspace CreaJng new project CreaJng a new package CreaJng new class Running a

More information

Dictionaries. Upsorn Praphamontripong. CS 1111 Introduction to Programming Spring 2018

Dictionaries. Upsorn Praphamontripong. CS 1111 Introduction to Programming Spring 2018 Dictionaries Upsorn Praphamontripong CS 1111 Introduction to Programming Spring 2018 How do Computer Programs Fit in with the World Around Them? Thing (object type): Hotel Thing (object type): Car Thing

More information

Creating SQL Tables and using Data Types

Creating SQL Tables and using Data Types Creating SQL Tables and using Data Types Aims: To learn how to create tables in Oracle SQL, and how to use Oracle SQL data types in the creation of these tables. Outline of Session: Given a simple database

More information

CMSC 201 Fall 2015 Lab 12 Tuples and Dictionaries

CMSC 201 Fall 2015 Lab 12 Tuples and Dictionaries CMSC 201 Fall 2015 Lab 12 Tuples and Dictionaries Assignment: Lab 12 Tuples and Dictionaries Due Date: During discussion, November 30 th through December 3 rd Value: 1% of final grade Part 1: Data Types

More information

Zebra Mobile Printer, Zebra Setup Utility, Cisco ACS, Cisco Controller PEAP and WPA-PEAP

Zebra Mobile Printer, Zebra Setup Utility, Cisco ACS, Cisco Controller PEAP and WPA-PEAP Zebra Mobile Printer, Zebra Setup Utility, Cisco ACS, Cisco Controller PEAP and WPA-PEAP This section of the document illustrates the Cisco ACS radius server and how PEAP and WPA-PEAP was configured on

More information

MSRS Roadmap. As of January 15, PJM 2019

MSRS Roadmap. As of January 15, PJM 2019 MSRS Roadmap As of January 15, 2019 Impact Details Product - Action Required Deadline Who May Be Affected MSRS - Update processes to use basic authentication MSRS - Org parameter added for SUMA requests

More information

CS 403 Compiler Construction Lecture 3 Lexical Analysis [Based on Chapter 1, 2, 3 of Aho2]

CS 403 Compiler Construction Lecture 3 Lexical Analysis [Based on Chapter 1, 2, 3 of Aho2] CS 403 Compiler Construction Lecture 3 Lexical Analysis [Based on Chapter 1, 2, 3 of Aho2] 1 What is Lexical Analysis? First step of a compiler. Reads/scans/identify the characters in the program and groups

More information

Lab 1: Silver Dollar Game 1 CSCI 2101B Fall 2018

Lab 1: Silver Dollar Game 1 CSCI 2101B Fall 2018 Lab 1: Silver Dollar Game 1 CSCI 2101B Fall 2018 Due: Tuesday, September 18, 11:59 pm Collaboration Policy: Level 1 (review full policy for details) Group Policy: Individual This lab will give you experience

More information

Lesson 9 Programming Arduino Hash, Encryption and Decryption Functions Usages (Examples 9.8 and 9.9)

Lesson 9 Programming Arduino Hash, Encryption and Decryption Functions Usages (Examples 9.8 and 9.9) Lesson 9 Programming Arduino Hash, Encryption and Decryption Functions Usages (Examples 9.8 and 9.9) 1 Authentication and Encryption Authentication using a secret key and a hash function in place of communicating

More information

Collections. Lists, Tuples, Sets, Dictionaries

Collections. Lists, Tuples, Sets, Dictionaries Collections Lists, Tuples, Sets, Dictionaries Homework notes Homework 1 grades on canvas People mostly lost points for not reading the document carefully Didn t play again Didn t use Y/N for playing again

More information

VISIOSVN. System Document

VISIOSVN. System Document VISIOSVN System Document Contents 1 System Design... 3 1.1 Use case diagram... 4 1.2 Use case descriptions... 5 1.3 GUI Design... 14 1.4 Architectural design... 18 2 1 System Design This chapter will first

More information

Transportation Support Portal User Guide

Transportation Support Portal User Guide Walmart.com s Transportation Team uses a ticketing-based email system. This user guide will provide tips and instructions on how to use the Portal. Getting to the TSP Internal Users External Users Table

More information

StorMan Software - Quickstart Guide

StorMan Software - Quickstart Guide StorMan Software Quickstart Guide Page 1 Table of Contents Introduction & Welcome 3 Software Licence Agreement 4 Installing StorMan & linking it to your new Company Datafile 4 Logging-in for the first

More information

Chapter 12 Two-Dimensional Arrays

Chapter 12 Two-Dimensional Arrays Chapter 12 Two-Dimensional Arrays Objectives Declare and initialize a two-dimensional array Enter data into a two-dimensional array Display the contents of a two-dimensional array Sum the values in a two-dimensional

More information

C++ Programming. Arrays and Vectors. Chapter 6. Objectives. Chiou. This chapter introduces the important topic of data structures collections

C++ Programming. Arrays and Vectors. Chapter 6. Objectives. Chiou. This chapter introduces the important topic of data structures collections C++ Programming Chapter 6 Arrays and Vectors Yih-Peng Chiou Room 617, BL Building (02) 3366-3603 3603 ypchiou@cc.ee.ntu.edu.tw Photonic Modeling and Design Lab. Graduate Institute of Photonics and Optoelectronics

More information

Manju Muralidharan Priya. CS4PM Web Aesthetics and Development WEEK 11

Manju Muralidharan Priya. CS4PM Web Aesthetics and Development WEEK 11 CS4PM Web Aesthetics and Development WEEK 11 Objective: Understand basics of JScript Outline: a. Basics of JScript Reading: Refer to w3schools websites and use the TRY IT YOURSELF editor and play with

More information

CS 2316 Individual Homework 1 Python Practice Due: Wednesday, January 20 th, before 11:55 PM Out of 100 points

CS 2316 Individual Homework 1 Python Practice Due: Wednesday, January 20 th, before 11:55 PM Out of 100 points CS 2316 Individual Homework 1 Python Practice Due: Wednesday, January 20 th, before 11:55 PM Out of 100 points Files to submit: 1. HW1.py For Help: - TA Helpdesk Schedule posted on class website. - Email

More information

CP122 Computer Science I. Chapter 2: Data Types, Variables, and I/O

CP122 Computer Science I. Chapter 2: Data Types, Variables, and I/O CP122 Computer Science I Chapter 2: Data Types, Variables, and I/O Course blogger? QRC Tutoring Tech News! President Obama proposes overhaul of NSA data collection Tech News! President Obama proposes overhaul

More information

Learning Management System (LMS) Student Instructions

Learning Management System (LMS) Student Instructions Learning Management System (LMS) Student Instructions CLUB LEARNING INSTITUTE Page 1 of 16 Table of Contents How do I login to the learning management system (LMS)?... 3 Navigation Panel... 4 How do I

More information

LECTURE 8: SETS. Software Engineering Mike Wooldridge

LECTURE 8: SETS. Software Engineering Mike Wooldridge LECTURE 8: SETS Mike Wooldridge 1 What is a Set? The concept of a set is used throughout mathematics; its formal definition matches closely our intuitive understanding of the word. Definition: A set is

More information

Honu. Version November 6, 2010

Honu. Version November 6, 2010 Honu Version 5.0.2 November 6, 2010 Honu is a family of languages built on top of Racket. Honu syntax resembles Java. Like Racket, however, Honu has no fixed syntax, because Honu supports extensibility

More information

Introduction to JSON. Roger Lacroix MQ Technical Conference v

Introduction to JSON. Roger Lacroix  MQ Technical Conference v Introduction to JSON Roger Lacroix roger.lacroix@capitalware.com http://www.capitalware.com What is JSON? JSON: JavaScript Object Notation. JSON is a simple, text-based way to store and transmit structured

More information