Crypto Project Sample Encrypted Data: –Turing: CS150-02 Public\CryptoProjectData Crypto_Short_Keys_P_U.out Crypto_Long_Keys_O_R.out Bonus +10 points on.

Slides:



Advertisements
Similar presentations
Topic 2 Passing Two Dimensional Arrays and One Dimensional Arrays As Parameter to Functions By: Nor Zalina Ismail Faculty of Computer and Mathematical.
Advertisements

Topic 9C – Multiple Dimension Arrays. CISC105 – Topic 9C Multiple Dimension Arrays A multiple dimension array is an array that has two or more dimensions.
Arrays CSE 5100 Data Structures and Algorithms. One-Dimensional Arrays  A list of values with the same data type that are stored using a single group.
CSC 142 K 1 CSC 142 Multidimensional Arrays [Reading: chapter 10]
Introduction to Application Programming IST 256 Application Programming for Information Systems Xiaozhong Liu
1 11/05/07CS150 Introduction to Computer Science 1 Functions Chapter 6, page 303.
1 6/20/2015CS150 Introduction to Computer Science 1 Functions Chapter 6, 8.
CMPUT 101 Lab #6 October 29, :00 – 17:00. Array in C/C++ Array is a structure type variable. One dimension of array int: int num[3]; There are.
©2004 Brooks/Cole Chapter 8 Arrays. Figures ©2004 Brooks/Cole CS 119: Intro to JavaFall 2005 Sometimes we have lists of data values that all need to be.
Chapter 8. 2 Objectives You should be able to describe: One-Dimensional Arrays Array Initialization Arrays as Arguments Two-Dimensional Arrays Common.
1 11/8/06CS150 Introduction to Computer Science 1 Arrays Chapter 8 page 477 November 13, 2006.
1 10/9/06CS150 Introduction to Computer Science 1 for Loops.
Multiple-Subscripted Array
Arrays Chapter 8 page /24/07CS150 Introduction to Computer Science 1 Arrays (8.1)  One variable that can store a group of values of the same.
C++ for Engineers and Scientists Third Edition
Chapter 8 Arrays and Strings
Arrays (Part II). Two- and Multidimensional Arrays Two-dimensional array: collection of a fixed number of components (of the same type) arranged in two.
Wednesday, 11/6/02, Slide #1 CS 106 Intro to CS 1 Wednesday, 11/6/02  QUESTIONS?? – HW # 4 due Monday  Today:  Return HW #3  Arrays (Chap. 10)  Reading:
Arrays CS 308 – Data Structures. One-Dimensional Arrays A list of values with the same data type that are stored using a single group name (array name).
Chapter 8 Multidimensional Arrays C Programming for Scientists & Engineers with Applications by Reddy & Ziegler.
Multi-Dimensional Arrays in Java "If debugging is the process of removing software bugs, then programming must be the process of putting them in." -- Edsger.
Prepared by MURLI MANOHAR PGT (COMPUTER SCIENCE) KV,B.E.G., PUNE.
Copyright © 2012 Pearson Education, Inc. Chapter 8 Two Dimensional Arrays.
A First Book of ANSI C Fourth Edition
Chapter 8 Arrays and Strings
Homework #3: Classes and Constructors
Array Cs212: DataStructures Lab 2. Array Group of contiguous memory locations Each memory location has same name Each memory location has same type a.
BUILDING JAVA PROGRAMS CHAPTER 7 Arrays. Exam #2: Chapters 1-6 Thursday Dec. 4th.
Computer Programming 12 Mr. Jean April 24, The plan: Video clip of the day Upcoming Quiz Sample arrays Using arrays More about arrays.
C++ for Engineers and Scientists Second Edition Chapter 11 Arrays.
CS161 Topic #16 1 Today in CS161 Lecture #16 Prepare for the Final Reviewing all Topics this term Variables If Statements Loops (do while, while, for)
1 Topic: Array Topic: Array. 2 Arrays Arrays In this chapter, we will : Learn about arrays Learn about arrays Explore how to declare and manipulate data.
Data Structure CS 322. What is an array? Initializing arrays Accessing the values of an array Multidimensional arrays LAB#1 : Arrays.
Computer Programming Lecture 8 Arrays. 2 switch-statement Example (3) If use press left arrowIf use press right arrow If use press up arrow If use press.
WEEK 6 Class Activities Lecturer’s slides.
A First Book of C++: From Here To There, Third Edition2 Objectives You should be able to describe: One-Dimensional Arrays Array Initialization Arrays.
Arrays Chapter 13 How to do the following with a one dimensional array: Declare it, use an index.
11/10/2016CS150 Introduction to Computer Science 1 Last Time  We covered “for” loops.
Spring 2008 Mark Fontenot CSE 1341 Principles of Computer Science I Note Set 7.
Arrays. The array data structure Array is a collection of elements, that have the same data type Integers (int) Floating point numbers (float, double)
1 Chapter 12 Arrays. 2 C++ Data Types structured array struct union class address pointer reference simple integral enum char short int long bool floating.
LAB SESSION ONE DIMENSIONAL ARRAY.
Introduction to array: why use arrays ?. Motivational example Problem: Write a program that reads in and stores away 5 double numbers After reading in.
Chapter 8 Arrays. A First Book of ANSI C, Fourth Edition2 Introduction Atomic variable: variable whose value cannot be further subdivided into a built-in.
UNIT 10 Multidimensional Arrays.
Arrays.
Module 1: Array ITEI222 - Advance Programming Language.
Print Row Function void PrintRow(float x[ ][4],int i) { int j; for(j=0;j
Simple “VICO” (“VIPO”) Programs (Variables, Input, Calculating or Processing, Output)
Arrays Declaring arrays Passing arrays to functions Searching arrays with linear search Sorting arrays with insertion sort Multidimensional arrays Programming.
13/10/2016CS150 Introduction to Computer Science 1 Multidimensional Arrays  Arrays can have more than one column  Two dimensional arrays have two columns.
Arrays. Arrays are objects that help us organize large amounts of information.
Two-Dimensional Data Class of 5 students Each student has 3 test scores Store this information in a two- dimensional array First dimension: which student.
Computer Skills2 / Scientific Colleges 1 Arrays Topics to cover: Arrays Data Types One-dimensional Arrays Two-dimensional Arrays.
A FIRST BOOK OF C++ CHAPTER 7 ARRAYS. OBJECTIVES In this chapter, you will learn about: One-Dimensional Arrays Array Initialization Arrays as Arguments.
ECE Application Programming
Engineering Problem Solving with C++, Etter/Ingber
INC 161 , CPE 100 Computer Programming
CSCE 206 Lab Structured Programming in C
CS150 Introduction to Computer Science 1
Suppose I want to add all the even integers from 1 to 100 (inclusive)
Multidimensional array
Dr Tripty Singh Arrays.
INC 161 , CPE 100 Computer Programming
Lets Play with arrays Singh Tripty
CS150 Introduction to Computer Science 1
CS150 Introduction to Computer Science 1
CSCE 206 Lab Structured Programming in C
Functions Divide and Conquer
Arrays Imran Rashid CTO at ManiWeber Technologies.
Presentation transcript:

Crypto Project Sample Encrypted Data: –Turing: CS Public\CryptoProjectData Crypto_Short_Keys_P_U.out Crypto_Long_Keys_O_R.out Bonus +10 points on Programming Projects CryptoBonus_Keys_O_R_E_G_O_N.out CryptoBonus_Keys_S_C_D.out

Topics Do/While Arrays Files Functions Arrays & Functions

Function & Arguments Write a function to compute the sum and average of three integers, and return the values of sum and average. An example function call would look like: int val1=5, val2 =4, val3=19; int sum; double average; sumAndAverage(val1, val2, val3, sum, average);

Functions & Arrays Write a function that computes the average of all the values in an array of integers. const int ARRSIZE=100; int arr[ARRSIZE]; int avg; // store ints in arr avg = arrayAvg(arr, ARRSIZE);

Files Read a file that contains two integers per line. Output the sum of each pair of integers to a file, one per line. Input Output

2 Dimensional Array We collected rainfall data for various cities over a number of days. This data is stored in a 2D array of integers, the rows are the cities, the columns are the days. For each day, find which city had the most rainfall and which city had the least rainfall and print both to the screen. const int CITIES=100; const int DAYS=365; int rainfall[CITIES][DAYS];