Hello, if you have any need, please feel free to consult us, this is my wechat: wx91due
INF 102 Concepts of Programming Languages II
Homework Project 1
Using your favorite programming language (other than Python), implement the term frequency program that is the basis for the exercises in the book – see Prologue in the book. There is no need to follow any specific style; just make it work as best as you can. Your program should:
- Consist of only one source file, not several
- Use the list of stop words provided at
https://github.com/crista/exercises-in-programming-style/blob/master/stop_words.txt
Assume that the file with stop words is in the parent directory (“../stop_words.txt”)
- Run from the command line and take the name of a file as input, like this:
$ [language_interpreter] your_program some_text_file
- Successfully run over Pride and Prejudice available at
https://github.com/crista/exercises-in-programming-style/blob/master/pride-and-prejudice.txt
- Successfully pass the unit test available at
https://github.com/crista/exercises-in-programming-style/tree/master/test
Specifically, the output of your program over the book Pride and Prejudice should be this:
https://github.com/crista/exercises-in-programming-style/blob/master/test/pride-andprejudice.txt
What to submit:
- One single file, with the proper extension -- your program’s source code – submitted to “Homework 1” DropBox. No need to zip it. If you need to convey information to the TA, include that information in comments.
- Signed course policies submitted to “Policies” DropBox.
1. Course policies document: submitted on time, initialed and signed? (10 points)
2. Correctness: does your program produce the correct output for Pride and Prejudice? (40 points)
3. Form: is it only one file? (10 points)
4. Operation:
a. Does it run from the command line? (20 points)
b. Does it take a file name as argument? (10 points)
c. Does it read the file of stop words from the parent directory? (10 points)