Computer Science 117
Programming for Scientists and Engineers
Summer 2002
Assignments
Last update: Thu Aug 15 06:59:34 PDT 2002

-
It is expected
that students will discuss the assignments. But do
not turn in code written by another person. If that happens, both
persons are violating the ethics of this course.
It is unadvisable for you to allow another student to have an electronic
copy of your work, as then you would unwittingly be a party to a breach
of ethics. Showing the other student a hard copy is far less dangerous.
The above rule does not apply to copying files that I have made publicly
available. I expect that you will use those in their original form or
with appropriate modifications (made by just you, of course).
-
Wednesday July 17, 2002.
Read Chapter 1 of your textbook.
Read the first four sections of Chapter 2 in your textbook, pages 43 to 69.
Work the practice quizzes on pages 16, 36, 53, 61, and 66. I will not
collect these practice quizzes as homework, but I will model the test on
Friday on the practice quizzes.
Homework due.
Please email Project 1 to the grader by 5:00 today.
-
Thursday July 18, 2002.
Read sections 4 and 5 of Chapter 2 in your textbook, pages 69 to 78.
Work the practice quiz on page 77.
By this time, you should have succeeded in logging into your account,
creating, compiling and running a Fortran 90 program, emailing it to the
grader, and logging out. You should also be able to copy or delete files in
your account, and be able to organize your files using directories. If you
still cannot do all those things, you must learn them today.
-
Friday July 19, 2002.
Homework due.
Please email Project 2 to the grader by 5:00 today.
Plain text version.
Read the remaining sections of Chapter 2 of your textbook, up to
page 117. Study the Fortran summary, pages 100 to 105, very carefully.
There will be a test in class today. It will be given
at the beginning of the class period and not take the entire class period.
The test could contain
questions about any of the material in Chapters 1 and 2. There will be
no questions about variables, constants, or operators of logical type on
this test.
After the test, we will begin to discuss material in Chapter 3, starting
with a discussion of control structures and logical type.
-
Monday July 22, 2002.
I will hand back the graded tests today.
We will continue the discussion of control structures and the logical type.
Read the first five sections of Chapter 3 of the textbook, pages 118 to 160,
and work the practice quizzes on pages 126 and 156.
-
Tuesday July 23, 2002.
Today we will review Chapter 3. You should be able to work Exercises 3.1
on pages 126-127 and Exercises 3.5 on pages 158-159. Any of those questions
could appear on the quiz tomorrow.
Homework due.
Please email Project 3 to the grader by midnight today.
HTML version.
Plain text version.
If you want a slightly greater challenge, try
improving the project by using a loop.
-
Wednesday July 24, 2002.
There will be a 15-minute quiz at the beginning of class today.
It will consist of short questions taken from the lecture, projects, and
reading assignment.
Today we will review Chapter 3. Work Quiz 3.7 on page 165 of your textbook,
and Quiz 3.9 on page 172 of your textbook. You should be able to work
Exercises 3.7 on page 166 and Exercises 3.9 on pages 173-175. Any of those
questions could appear on the quiz tomorrow.
-
Thursday July 25, 2002.
There will be a 15-minute quiz at the beginning of class today.
It will consist of short questions taken from the lecture, projects, and
reading assignment.
Quiz and Answers.
Today we will review Chapter 4, sections 4.1, 4.2, and 4.3. Work Quiz 4.1
on page 97 of your textbook. You should be able to work Exercises 4.1 on
pages 197-199.
Homework due.
Please email Project 4 to the grader by midnight today.
HTML version.
Plain text version.
-
Friday July 26, 2002.
There will be a test in class today.
Test and Answers.
-
Tuesday July 30, 2002.
There will be a 25-minute quiz at the beginning of class today.
The test will emphasize Formatting, and will be "open book, open notes."
Answers.
After the quiz we will begin discussing functions.
Today's handout. If you run that program,
here is the output.
-
Wednesday July 31, 2002.
Today we will continue the discussion of subprograms.
-
Thursday August 1, 2002.
There will be a 40-minute quiz at the beginning of class today.
It will consist of short questions about functions.
-
Friday August 2, 2002.
Today's handout.
Today we our discussion will be primarily about functions and subroutines.
Please read Chapters 6 and 7 of your textbook.
Homework due.
Please email Project 5 to the grader by midnight today.
HTML version.
Plain text version.
-
Saturday August 3, 2002.
-
Monday August 5, 2002.
There will be a test in class today. The primary topics of the test
will be formatted output, functions, and subroutines, although knowledge
of earlier material may also be needed.
practice test.
plain text version of practice test.
Answers to the test.
-
Tuesday August 6, 2002.
We will discuss input format descriptors.
We will discuss subprograms.
Today's handout, its
input file in01, and its
output.
The program
handout2
produces the same output, but its execution requires the the unix redirect
command
a.out < in01
-
Wednesday August 7, 2002.
There will be a short quiz at the beginning of class today.
The quiz will be closed book.
-
Thursday August 8, 2002.
There will be a 25-minute quiz at the beginning of class today.
The quiz will emphasize input formatting, and will be "open book, open notes."
After the quiz, we will introduce arrays (Chapter 8 of your textbook).
The sorting program handed out in class (corrected).
'unsorted'
Please email Project 6 to the grader by midnight today.
-
Friday August 9, 2002.
Today, we will continue the discussion on arrays.
-
Monday August 12, 2002.
There will be a short quiz at the beginning of class today.
The quiz will be closed book.
The program that goes with quiz, and
its output.
Today's handout.
Please email Project 7 to the grader by midnight today.
Html version. Plain text version.
-
Tuesday August 13, 2002.
Read Chapter 9 of your textbook before class today.
Today's handout. Here is the
output, which requires input from the
file p2, using the unix redirect command
a.out < p2
System Issues. If you are having any trouble with
the College Computing system, such as in A311, please send me email detailing
the troubles you're having. Alternatively (actually better), send email to
staff@egr.unlv.edu.
They want to know the details so that they can
look into the problems you're having.
-
Wednesday August 14, 2002.
There will be a short quiz at the beginning of class today.
The quiz will be closed book.
Practice quiz.
Answer to question 1.
Answer to question 2.
Answer to question 3.
Answer to question 4.
Answer to question 5.
Answers to the quiz.
Please email Project 8 to the grader by midnight today.
-
Thursday August 15, 2002.
-
Final Examination: Friday, August 16, 8:00 AM
Some things that will be on the final exam.
