<- Back to Main

Assignment 01 - DUE Friday, February 8th





Reading Assignment:

Order of Operations Chart - Skim the other stuff if you want, but the chart and first couple examples are what's important. (Don't worry about "pointers" yet.)
Naming Your Procedure Files - Solves a suprising number of errors you'll have later on. This is ESPECIALLY important for big programming tasks, which use multiple Procedures/ Functions in a single file.
How to interpret Procedure and Funcion names in Alphabetical IDL. - Explains how to use the listings.

Introduction

Your first programming task. This and some future assignments will be based on past IDL DeCal assignments. Here you will write a simple MAIN level program and a fairly simple Procedure. Keep in mind the examples shown in class:
dice.pro
blackjack.pro

The Assignment:

Do numbers 1 and 2 on the page linked below.
Click here for worksheet: hw1.html

HINTS:

For #1: See Variables and Datatypes in lecture_01.

For #2: The RANDOMU function and CASE structure could be useful.



Update: Paul Higgins - January 18, 2007 - UG Astro, Department of Astronomy, University of California at Berkeley