Write a program that reads two files named firstFile.txt and secondFile.txt

Write a program that reads two files named firstFile.txt and secondFile.txt

Write a program that reads two files named firstFile.txt and secondFile.txt. The program should compare the text in the files in the following ways:

  • It should display a list of all the unique words contained in both files
  • It should display a list of the words that appear in both files
  • It should display a list of the words that appear in the first file but not in the second file
  • It should display a list of the words that appear in the second file but not in the first file
  • It should display a list of the words that appear in either the first or second file but not both.

YOU ARE REQUIRED TO USE SETS TO COMPLETE THE ABOVE. DO NOT USE ANY OTHER DATA TYPE OR DATA STRUCTURE.

Add the following comments to the beginning of the program.

Name: Your Name

Class and Section: CS 222 01

Assignment: Program Assignment 01 Extra Credit

Due Date: See above

Date Turned in:

Program Description: You write a short description of what the program will do

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper