1 Bookmark
Course Level
CS1
Collection Item Type
Lab
Synopsis
This lab requires students to use file I/O methods to process a text file and make a new copy with some minor changes. In particular, students must write code that looks for particular strings in the original file and then replaces them in the copy. The real-world theme of the assignment is name redaction from sensitive documents.
Recommendations
See I/O - Benford's Law as a follow up to this assignment.
Engagement Highlights
In the original course context, this lab is the first time that students are able to write code that processes a large amount of existing data. Students are engaged when seeing their programs run on large text files and make meaningful changes in very short amounts of time.
Engagement Practices Employed
Materials and Links
Computer Science Details
Programming Language
Java
Material Format and Licensing Information
Creative Commons License
CC BY-SA