Assignment 6 - File Input and Output

Assignment 6 - File Input and Output -...

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

View Full Document Right Arrow Icon
Dr. Karina V. Assiter d203356e542f55ab62f8cda563eebc3c0558e0bb.doc 5/7/2009 Wentworth Institute of Technology Object Oriented Programming Due: November 1, 2004 Objective: Add File IO to you Base ball league program to: o Read in league information (excluding statistic information) from an input text file o Write out league information to an output text file (including setup and statistic information) Topics: 1. File I/O 2. Exceptions Instructions 1. 2. Add methods to all classes for: a. reading in League/Team/Game/BaseballPLayer information from a Text file b. writing out League/Team/Game/BaseballPlayer information to a Text file 3. Write a BaseballFileIODem o class that does the following: League league = new League(“American”); // Create a League object league.readFromFile(); // Read everything from an input text file
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: league.writeToFile(); // Write everything to an output file league.season(); // Simulate the season league.writeToFile(); // Statistics should be filled here. 4. Compile, execute and thoroughly test the BaseballFileIODemo class . Submitting your work: 1. Make sure that your name is in your project source files . 2. If you have more than one source file , make .zip files of your project(s) 3. Send your .zip file as an attachment to assiterk@wit.edu with the assignment number as the subject a. Be sure to include your name in the email body if you have an obscure email address (i.e., if I cannot determine who you are from your username Dr. Karina V. Assiter d203356e542f55ab62f8cda563eebc3c0558e0bb.doc 5/7/2009 _________________________________________________________________...
View Full Document

Page1 / 2

Assignment 6 - File Input and Output -...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online