ex1review - CGN 3421 Computer Methods Fall 1998 Exam #1 (A...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CGN 3421 review page 1 of 5 10/1/98 CGN 3421 Computer Methods Fall 1998 Exam #1 (A very basic review) Variables • reserves spots in computer memory to store values • only letters and numbers, beginning with a letter • only 6 characters/numbers or less are used Implicit none (removes default set up variables starting with I-N integer) Integer i, j, k Real x, y, z Arrays • reserves several places in memory under same name • can be either real or integer • declare total size in the Real/Integer statements 1-D arrays real A(16) gives 16 real spots use in program as A(i), where i=1. ..16 2-D arrays integer A(3,4) gives 3 rows, 4 columns of integer spots use in program as A(i,j), where i=1. ..3, and j=1. ..4 A(1) A(16) A(8) A(12) A(4) A(3,1) A(2,3) row 1,2,3 column 1,2,3,4
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CGN 3421 review page 2 of 5 10/1/98 Program Structure Program name comments implicit none declare real/integer-including the names of any functions you may create data lines (if any) statement function definition (if any)
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/15/2012 for the course CGN 3421 taught by Professor Long during the Fall '08 term at University of Florida.

Page1 / 5

ex1review - CGN 3421 Computer Methods Fall 1998 Exam #1 (A...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online