[SOLVED] COP290 Major Exam

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Major-ujoemr.zip (779.6 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)

Your program should take as input the names of 2 text documents. Write a program which lists the information for each of those documents-

  1. The number of single-letter words in each document (e.g. ‘I’, ‘a’) (#a1,#a2)
    • marks)
  2. The number of 3 letter words (e.g. ‘put’, ‘let’) (#b1,#b2)
    • marks) c. The number of words that contain say upto 3 letters from your first name (any permutation is valid). For example- If your name is ‘Daniel Radcliffe’, then find the number of words having any 3 letters from the set [‘d’, ‘a’, ‘n’, ‘i’, ‘e’, ‘l’] in them in any permutation. (#c1,#c2)

(6 marks) d. The number of punctuation symbols that are present in sentences that are greater than 10 words. (#d1,#d2)

(2 marks) e. List of common occurrences of words in both the documents from part (a), (b), and (c) mentioned above. Example- list of common single-letter words in both documents, list of common 3-letter words in both documents and so on.

(3marks) f. Draw a bar chart (shown below) to visually present this data. The data to be plotted is the set {(a,#a1,#a2),(b,#b1,#b2),(c,#c1,#c2),(d,#d1,#d2)}

  • marks)

 

 

 

 

  • Major-ujoemr.zip