[SOLVED] COP290-Main Exam

20.99 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

Rate this product

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)
  2. The number of 3 letter words (e.g. ‘put’, ‘let’) (#b1,#b2)
  3. 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)
  4. The number of punctuation symbols that are present in sentences that are greater than 10 words. (#d1,#d2)
  5. 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.
  6. 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)}

 

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.