Docsity

CSCI 230 Assignment 09 - Fall-2006, Assignments of Computer Science

Toggle sidebar
bg1
CSCI 230 Assignment 09 Due: 11/30/06 (Thr)
Fall-2006 (100 pts)
COMMON (Section 7.6, pp.450-456)
Arrays (Chapters 8 & 9, pp.470-627)
Simple Selection Sort (Section 8.8, pp.520-522)
CHARACTER Data Type (Section 10.5, pp.651-657)
From the course Web Page (www.cs.niu.edu/~sjchung), download:
1) prog09.in
2) prog09.sjc
3) prog09.ref
Part I (40 points)
Complete the problems on Page 2 of this assignment.
Part II (60 points)
1. Either you write your own FORTRAN program (prog09.for) that will
read prog09.in as input and produce an output like prog09.sjc, or
complete prog09.ref and then rename it as prog09.for.
2. Compile and link/edit your prog09.for to get prog09.obj and prog09.exe.
Run your prog09.exe by:
Prog09 < prog09.in > prog09.out
Hand in:
1. Page 2 of this assignment.
2. Printed copies of your Prog09.for and Prog09.out.
3. Your 3.5" diskette containing your Prog09.for, Prog09.obj,
Prog09.exe, Prog09.in, Prog09.out, and Prog09.sjc.
1
pf2

Partial preview of the text

Download CSCI 230 Assignment 09 - Fall-2006 and more Assignments Computer Science in PDF only on Docsity!

CSCI 230 Assignment 09 Due: 11 / 3 0/06 (Thr)

Fall- 2006 (100 pts)

COMMON (Section 7.6, pp.450-456) Arrays (Chapters 8 & 9, pp.470-627) Simple Selection Sort (Section 8.8, pp.520-522) CHARACTER Data Type (Section 10.5, pp.651-657) From the course Web Page (www.cs.niu.edu/~sjchung), download:

  1. prog09.in
  2. prog09.sjc
  3. prog09.ref

Part I (40 points)

Complete the problems on Page 2 of this assignment.

Part II (60 points)

  1. Either you write your own FORTRAN program (prog09.for) that will read prog09.in as input and produce an output like prog09.sjc, or complete prog09.ref and then rename it as prog09.for.
  2. Compile and link/edit your prog09.for to get prog09.obj and prog09.exe. Run your prog09.exe by: Prog09 < prog09.in > prog09.out

Hand in:

  1. Page 2 of this assignment.
  2. Printed copies of your Prog09.for and Prog09.out.
  3. Your 3.5" diskette containing your Prog09.for, Prog09.obj, Prog09.exe, Prog09.in, Prog09.out, and Prog09.sjc.

Due: 11/ 3 0/06 (Thr)

CSCI 230 Assignment 09 Name:_________________,________

Fall- 2006 (Last: spell) (First)

  1. After the SUBROUTINE ReadIn is executed, the memory content of:
    1. numRec ______ 2) name(3) __________________________ 3) name(3,8) ________
    2. state(2) ______ 5) bYear(10) ________ 6) pYear(10) ____
  2. In the SUBROUTINE Comput, write instructions to compute pAge(i).
  3. In the SUBROUTINE byTerm, when i = 1, k = _____
  4. In the SUBROUTINE irTerm, give instructions to retrieve a record whose pLen is not divisible by 4.