SALARIES

# SALARIES - NEXT X 60 DATA 14000, 16200, 10195, 28432, 13360...

This preview shows pages 1–2. Sign up to view the full content.

Sheet1 LIST 1 REM MATTHEW HEELAN SECTION D1 COACH 05/11/07 2 REM PROBLEM 6 ARRAYS WITH SALARIES 8 PRINT "COACH'S CORPORATION" 9 PRINT "SALARIES UNDER 14000","SALARIES OVER 14000" 10 DIM A(20) 11 DIM B(20) 20 FOR X = 1 TO 16 21 READ A(X) 22 IF A(X) >= 14000 THEN LET B(X) = A(X) 23 IF A(X) >= 14000 THEN LET A(X) = 0 24 NEXT X 49 FOR X = 1 TO 16 50 IF A(X) = 72 THEN GOTO 100 51 PRINT A(X),,, B(X) 53

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: NEXT X 60 DATA 14000, 16200, 10195, 28432, 13360 70 DATA 19300, 16450, 12180, 25640, 18420 80 DATA 18900, 12270, 13620, 12940, 31200 90 DATA 72 100 END Ok RUN COACH'S CORPORATION SALARIES UNDER 14000 SALARIES OVER 14000 0 14000 0 16200 10195 0 0 28432 13360 0 0 19300 0 16450 12180 0 0 25640 0 18420 0 18900 12270 0 13620 0 12940 0 0 31200 Ok Page 1...
View Full Document

## This note was uploaded on 02/19/2009 for the course CS 160 taught by Professor Coach during the Spring '06 term at Santa Barbara City.

### Page1 / 2

SALARIES - NEXT X 60 DATA 14000, 16200, 10195, 28432, 13360...

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

View Full Document
Ask a homework question - tutors are online