Lab 11 Student and TA Instructions

docx

School

University of Tulsa *

*We aren’t endorsed by this school

Course

1043

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

1

Uploaded by ChancellorWren3953

Report
Instructions for Students and TA’s CS 1043 Lab 11: Reading and Writing Data Files & Exception Handling Topics covered in this Lab: IO and Exceptions. Note this is NOT a zyBooks Lab assignment. 1. Start the Eclipse IDE, then create a project and class for this assignment. Copy the starter code template provided for this assignment: LabIO. 2. Copy the data file: Lab11data into the Eclipse project you just created. 3. Do not change the main method provided for this assignment. 4. Add code to the readData instance method everywhere you see STUDENT CODE. 5. Add you name to the output in the writeData instance method. 6. Write an instance method and name it toString. This method will return a string containing the 2-D array as a table. Use the String.format( ) method to build your string. The decimal point should be aligned in each column of output. Use "%10.2f" 7. Execute the code. Prompt for the output filename using the JOptionPane.showInputDialog. Note: The output filename must be different than the input file name. If you use the same filename, you will destroy the original file. 8. Submit your output file to Harvey under Lab11 and the TA’s or course instructors will grade it. Note Lab11 is out of order and apperars after Lab 14 in Harvey.
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help