Copyright © 2012 Pearson Education, Inc. 9/4/1435 h Sunday Lecture 1 Array’s Terminologies.

Slides:



Advertisements
Similar presentations
2000 Prentice Hall, Inc. All rights reserved. 1 Capitolo 4 - Arrays Outline 4.1Introduction 4.2Arrays 4.3Declaring Arrays 4.4Examples Using Arrays 4.5Passing.
Advertisements

Copyright © 2002 Pearson Education, Inc. Slide 1.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8: Arrays Starting Out with C++ Early Objects Seventh Edition by.
Credit hours: 4 Contact hours: 50 (30 Theory, 20 Lab) Prerequisite: TB143 Introduction to Personal Computers.
CS 141 Computer Programming 1 1 Arrays. Outline  Introduction  Arrays  Declaring Arrays  Examples Using Arrays  Sorting Arrays  Multiple-Subscripted.
Contents o Introduction o Characteristics of Constructor. o Types of constructor. - Default Constructor - Parameterized Constructor - Copy Constructor.
Programming Paradigms Introduction. 6/15/2005 Copyright 2005, by the authors of these slides, and Ateneo de Manila University. All rights reserved. L1:
Lecture 2 Introduction to C Programming
(10-1) OOP: Inheritance in C++ D & D Chapter 20 Instructor - Andrew S. O’Fallon CptS 122 Washington State University.
CSCE 210 Data Structures and Algorithms
CSC 171 – FALL 2004 COMPUTER PROGRAMMING LECTURE 0 ADMINISTRATION.
CSC 111 Course orientation
Guide To UNIX Using Linux Third Edition
ASP.NET Programming with C# and SQL Server First Edition
CSCE 110 PROGRAMMING FUNDAMENTALS WITH C++
CS 106 Introduction to Computer Science I 03 / 17 / 2008 Instructor: Michael Eckmann.
ECE230 Course Introduction Ying Wu Electrical & Computer Engineering Northwestern University ECE230 Lectures Series.
EC-241 OBJECT-ORIENTED PROGRAMMING (OOP)
CSC 113 Java Programming II
Copyright © 2012 Pearson Education, Inc. Chapter 13: Introduction to Classes.
Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Cpt S 122 – Data Structures Custom Templatized Data Structures.
Object Oriented Design and Programming Alan Goude Room: Sheaf 9323.
Data Structures Lecture 1 : Model Course Syllabi 0 Dr. Essam Halim Houssein Lecturer, Faculty of Computers and Informatics, Benha University.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand design concepts for fixed-length and variable- length strings ❏
Module Overview n Module Title: OO Programming n Module Code: MIT3446 n Module Value: 3.0 n Duration: 15 weeks n Class-Contact Hours: Lecture15 hrs n Lab/Tutor30hrs.
Chapter 6 Object-Oriented Java Script JavaScript, Third Edition.
CS212: DATA STRUCTURES Lecture 1: Introduction. What is this course is about ?  Data structures : conceptual and concrete ways to organize data for efficient.
Array Cs212: DataStructures Lab 2. Array Group of contiguous memory locations Each memory location has same name Each memory location has same type a.
Copyright © 2012 Pearson Education, Inc. Chapter 13: Introduction to Classes.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 2 Chapter 2 - Introduction to C Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 13: Introduction to Classes.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 13 Introduction to Classes.
1 Object-Oriented Programming Using C++ CLASS 1. 2 Review of Syllabus Catalog Description –An introduction to object oriented programming techniques using.
Introduction to Statistics & Probability 2 Code 104 ريض CREDIT HOURS: 4 UNIT Lecture 3.0 hours/week Tutorial 1.0 hour/on every week a.This course introduces.
Copyright © 2012 Pearson Education, Inc. 9/4/1435 h Sunday Lecture 1 Course Contents & Arrays Terminologies.
C++ Programming Basic Learning Prepared By The Smartpath Information systems
CS 210 DATA STRUCTURES AND ALGORITHIMS Fall 2006.
INTRODUCTION TO PROGRAMMING ISMAIL ABUMUHFOUZ | CS 146.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 5.3Math Library Functions Math library functions –perform.
1 IDLOOPC1998. Object-Oriented Programming Using C++ CLASS 1.
WELCOME to III SEM Date: Class - ECE no of present : no of absent :
Addison Wesley is an imprint of © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 12 Object-Oriented Programming Starting Out with Games & Graphics.
Computer Programming (1) Code & No.: CS 102 CREDIT HOURS: 5 UNIT Lecture 3.0 hours/week Lab: 2.0 hour/on every week a. This course introduces the students.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7: Introduction to Classes and Objects Starting Out with C++ Early.
1 Liang, Introduction to C++ Programming, (c) 2007 Pearson Education, Inc. All rights reserved X 1 Chapter 10 More on Objects and Classes.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
OO in Context Lecture 13: Dolores Zage. Confused about OO Not alone, there is much confusion about OO many programs are claimed to be OO but are not really.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 2 - Introduction to C Programming Outline.
Computer Science: A Structured Programming Approach Using C1 8-7 Two-Dimensional Arrays The arrays we have discussed so far are known as one- dimensional.
Copyright © 2015, 2012, 2009 Pearson Education, Inc., Publishing as Addison-Wesley All rights reserved. Chapter 13: Introduction to Classes.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Linked Lists Outline Introduction Self-Referential Structures.
Introduction to C++ Course Version 1.0. Topics Course Outline Course Materials Syllabus Blackboard Forum Why C++
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Arrays Outline 6.1Introduction 6.2Arrays 6.3Declaring.
Computer Science I ISMAIL ABUMUHFOUZ | CS 180. CS 180 Description BRIEF SUMMARY: This course covers a study of the algorithmic approach and the object.
Seventh step for Learning C++ Programming CLASS Declaration Public & Private Constructor & Destructor This pointer Inheritance.
Lecture 1 Data Structures Aamir Zia. Introduction Course outline Rules and regulations Course contents Good Programming Practices Data Types and Data.
CS140 – Computer Programming 1 Course Overview First Semester – Fall /1438 – 2016/2017 CS140 - Computer Programming 11.
CSCE 210 Data Structures and Algorithms
OBJECT ORIENTED PROGRAMMING II GEORGE KOUTSOGIANNAKIS
Cen 112 C Programming Özgür Örnek.
CSC 222: Computer Programming II
Introduction to Computers Computer Generations
Visual Basic Code & No.: CS 218
Object-Orientated Programming
OBJECT ORIENTED PROGRAMMING II GEORGE KOUTSOGIANNAKIS
C++ Programming ㅎㅎ String OOP Class Constructor & Destructor.
Standard Template Library
Presentation transcript:

Copyright © 2012 Pearson Education, Inc. 9/4/1435 h Sunday Lecture 1 Array’s Terminologies

Copyright © 2012 Pearson Education, Inc. Computer Programming (2) Code & No.: CS 104 CREDIT HOURS: 5 UNIT Lecture 3.0 hours/week Lab: 2.0 hour/on every week a.This course introduces the students to the concept of object oriented programming language b.Also deals with instructors, destructors and, functions & operators overloading c.The course also looks into Arrays in details as one of the applications..

Copyright © 2012 Pearson Education, Inc. Learning Objectives: Identify the role of programming in our life by learning the principals and Concepts of OOP, Demonstrate understanding of objects, classes Learning the benefits of some special functions like constructors & destructors References: Starting Out with C++ TONNY GADDIS Seventh Edition 3

Copyright © 2012 Pearson Education, Inc. Computer Programming (2) Code & No.: CS 104 Pre-requisite: CS 102 Level: 3 rd Course Contents 1. Arrays 2.Introduction to object oriented programming language. 3.several C++ enhancements to C. 4. what classes, objects, member functions and data members are. 5.how destructors are used to perform termination.

Copyright © 2012 Pearson Education, Inc.. 5.housekeeping on an object before it is destroyed. 6.what operator overloading is and how it makes programs more readable and programming more convenient. 7.To create classes by inheriting from existing classes and how inheritance promotes software reuse, the use of inheritance to customize existing software.

Copyright © 2012 Pearson Education, Inc.. 8.what polymorphism, how it makes programming more convenient and how it makes systems more extensible and maintainable. 9.The formatted input/output and file processing 10. Some applications (Arrays, Queues, Linked Lists, and sorting algorithms. Text books: C ++ How to progrm H. M. Deitel, P. J. Deitel, 1998: Prentice Hal l.

Copyright © 2012 Pearson Education, Inc. Arrays

Copyright © 2012 Pearson Education, Inc. Q: Define an array? An array is a variable that can store multiple values of the same type Q: Write a format for declaring a one dimensional array? EX: int tests[5]; [ Array Size declarator] ;

Copyright © 2012 Pearson Education, Inc. Q: Design an array - Memory Layout for the following array int tests[5]; allocates the following memory: Subscripts first element second element third element fourth element fifth element

Copyright © 2012 Pearson Education, Inc. Array Terminologies Q: What is the difference between the array size declarator and the array size ? The array size declarator shows the number of elements in the array. The size of an array is the total number of bytes allocated for it. It is = (number of elements) * (number of bytes for each element)

Copyright © 2012 Pearson Education, Inc.. Q: Calculate the size of these arrays? 1. int tests[5] is an array of 20 bytes, assuming 4 bytes for an int 2.long double measures[10] is an array of 80 bytes, assuming 8 bytes for a long double