CPSC 3400 Assignment #1 solved

$35.00

Category: You will receive a download link of the .ZIP file upon Payment

Description

5/5 - (1 vote)

P1 exercises your understanding of Python and Python constructs.

Submitted programs must:
1) provide the requested functionality
2) be appropriately documented (thorough but concise)
3) use Python constructs as intended (do NOT write a C-style program)

ALL ASSUMPTIONS SHOULD BE REASONABLE AND CLEARLY STATED

DO NOT HARD CODE

Write a Python program that:
1) examines the contents of two text files
a. use CL (command line — sys.argv ) to extract filenames
b. do NOT hardcode filenames
c. do NOT prompt the user for filenames
2) extracts words from the files
a. Only alphabetic data should be considered.
b. Punctuation and digits should not be considered.
3) outputs the list of words that appear in both files, sorted by
a. frequency of occurrence
b. alphabetic within equal frequency
4) outputs the words that occur
a. with the greatest frequency
b. only once

Each submitted program will be tested on the same input files
TEST YOUR PROGRAM BEFORE SUBMISSION

Name your Python file: P1.py
Upload to Canvas