pascal programming
Download
Skip this Video
Download Presentation
Pascal Programming

Loading in 2 Seconds...

play fullscreen
1 / 9

Pascal Programming - PowerPoint PPT Presentation


  • 155 Views
  • Uploaded on

Pascal Programming. Complex Array Structures. Pascal Programming. Complex solutions, using Pascal or any other language, need to be reduced from the abstract to more concrete statements.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Pascal Programming' - bryant


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
pascal programming

Pascal Programming

Complex Array Structures

pascal programming1
Pascal Programming
  • Complex solutions, using Pascal or any other language, need to be reduced from the abstract to more concrete statements.
  • The example in the text of parallel arrays to award a score and letter grade illustrates the validity of the observation.
pascal programming2
Pascal Programming

Index 1

Index 2

pascal programming3
Pascal Programming
  • The solution to the problem arises from dual arrays with a single index.
  • Thus, data type notation and data structure become tightly related.
  • Data structure– any construct to store and manipulate data in a program or algorithm.
pascal programming4
Pascal Programming
  • In this solution, each array type is a data type.
  • The data structure combines the two arrays.
  • With these examples we know that available structures can include arrays of arrays and parallel arrays.
pascal programming5
Pascal Programming
  • Complex solutions require complex data structures.
  • An array’s component type can be comprised of any data type . . .so, it can be an array type. Thus we have an array or array types.
  • Consider a spreadsheet example . . .
pascal programming7
Pascal Programming
  • If we substitute Sales for 1-3 and Territory for A-C, we reference 2C as …
    • Sales [2] Territory
  • Within the territory we have a monthly array of sales.
  • This illustrates the use of an array of array type.
pascal programming8
Pascal Programming
  • An array with more than one index is called a multidimensional array.
  • The declaration follows the form use to declare a simple or one dimensional array.
  • Multidimensional arrays have more than one index but they have similar other properties.
ad