Difference between revisions of "CSC111 Lab 13 2015"

From dftwiki3
Jump to: navigation, search
(Created page with "--~~~~ ---- <br /> __TOC__ <br /> <bluebox> This lab is a preparation for the Final Exam. You will notice that the amount of explanations is limited, and you are asked to sta...")
 
(Problem 2)
Line 21: Line 21:
 
<br />
 
<br />
 
Write a program that will:
 
Write a program that will:
1) Ask the user for the year she was born in, e.g. 1995,
+
# Ask the user for the year she was born in, e.g. 1995,
2) Read the contents of the file at the URL specified above
+
# Read the contents of the file at the URL specified above
3) Find all the movies that were released in the year specified by the user
+
# Find all the movies that were released in the year specified by the user
4) Output the movies sorted by alphabetical order.
+
# Output the movies sorted by alphabetical order.
 
<br />
 
<br />
 
<br />
 
<br />

Revision as of 09:59, 27 April 2015

--D. Thiebaut (talk) 09:59, 27 April 2015 (EDT)




This lab is a preparation for the Final Exam. You will notice that the amount of explanations is limited, and you are asked to start from scratch writing a program. The lab will start with a general discussion about approaching the problems, and getting started with such assignments.
Feel free to work in pair programming mode on this assignment.


Problem 1


Write a graphics program that uses a white background, and makes a fish appear wherever the user clicks the mouse. Once the fish appears on the screen it moves slowly to one side and disappears. While the fish is moving, the user may click on the screen, and make other fish appear. The new fish will then move at the same pace as the first fish, assuming it is still visible.

Problem 2


The file at URL http://cs.smith.edu/dftwiki/media/1000movies.txt contains the list of the best 1000 movies of all times, according to The New York Times.
Write a program that will:

  1. Ask the user for the year she was born in, e.g. 1995,
  2. Read the contents of the file at the URL specified above
  3. Find all the movies that were released in the year specified by the user
  4. Output the movies sorted by alphabetical order.