Discussion 4 handout

Group members (names & NetIDs)

Objectives

Prepration: Demo code and word hunt files

Please download dis04-release.zip, extract it to a known location on your computer, and open it as a project in IDEA. This discussion is more lecture-heavy than usual, so slides have been posted in advance to help you follow along. The classes ReadLineDemo and ClosingDemo should be similar to the later examples your TA will demonstrate and can be referenced along with the slides during the activity.

Task 1: Word hunt

One group member, the driver, should open “WordHunt.java” in their “dis04” IDEA project. They will be responsible for writing and running code. The other group members will serve as navigators, double-checking what is typed and suggesting solution structures to efficiently achieve the desired goal.

mplement WordHunt.main() to perform the following task:

Run WordCount and record both the index entry and the final word on your worksheet.

You may not have time to finish this exercise in class this week. In that case, complete your WordCount program for homework, making sure all group members agree on the target word before submiting.

Submission

  1. Open the assignment page for “Discussion activity 4” in CMSX
  2. [Recorder] Find the “Group Management” section and invite each group member
  3. [Others] Refresh the page and accept your invitation
  4. [Recorder] Take a picture of your work and save as either a JPEG or a PDF file named “discussion_responses” (you do not need to submit your test code). After all invitations have been accepted, upload your picture along with your code as your group’s submission.
    • Recommended scanning apps: Microsoft Office Lens, Adobe Scan, Genius Scan, Evernote Scannable

Ensure that your group is formed and your work submitted before the Friday evening deadline.

Tips and reminders