Difference between revisions of "NCAA File I/O Assignment"

From WLCS
(New page: '''Objective:''' * You will create a program that allows the user to choose winners of the NCAA tournament. File reading and writing will be involved. '''Directions:''' # Prompt the user...)
 
(No difference)

Latest revision as of 14:22, 19 March 2009

Objective:

  • You will create a program that allows the user to choose winners of the NCAA tournament. File reading and writing will be involved.

Directions:

  1. Prompt the user for a file name
  2. Open the file and read in all the teams
  3. Traverse the list of teams and for every pair of teams, prompt the user to choose a winner. Be sure to store the user's choices in a separate list
  4. Open a new file for writing to output the winners. Write to file all the winners that the user chose.

Additional files: